refactor: diagnostic handling (#337)

This commit is contained in:
ykiko
2026-01-03 16:23:06 +08:00
committed by GitHub
parent dee5e136b7
commit dd8f0dd90d
62 changed files with 948 additions and 914 deletions

View File

@@ -110,7 +110,7 @@ struct Token {
return is_at_start_of_line && kind == clang::tok::hash;
}
/// The tokens after the include diretive are regarded as
/// The tokens after the include directive are regarded as
/// a whole token, whose kind is `header_name`. For example
/// `<iostream>` and `"test.h"` are both header name.
bool is_header_name() const {