diff --git a/clang/include/clang/Tooling/Syntax/Tokens.h b/clang/include/clang/Tooling/Syntax/Tokens.h index 1f9eeae203f1b..a210815d49f9d 100644 --- a/clang/include/clang/Tooling/Syntax/Tokens.h +++ b/clang/include/clang/Tooling/Syntax/Tokens.h @@ -240,9 +240,9 @@ class TokenBuffer { /// Lexed tokens of a file before preprocessing. E.g. for the following input /// #define DECL(name) int name = 10 /// DECL(a); - /// spelledTokens() returns {"#", "define", "DECL", "(", "name", ")", "eof"}. - /// FIXME: we do not yet store tokens of directives, like #include, #define, - /// #pragma, etc. + /// spelledTokens() returns + /// {"#", "define", "DECL", "(", "name", ")", "int", "name", "=", "10", + /// "DECL", "(", "a", ")", ";"} llvm::ArrayRef spelledTokens(FileID FID) const; /// Get all tokens that expand a macro in \p FID. For the following input