From: Chris Lattner Date: Wed, 17 Oct 2007 18:28:59 +0000 (+0000) Subject: add some comments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5956bd2730c051835f9acd9e957c5d79f99e7c3;p=clang add some comments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43079 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h index b17bb36003..a66a4284f2 100644 --- a/include/clang/Lex/Lexer.h +++ b/include/clang/Lex/Lexer.h @@ -139,6 +139,8 @@ public: LexingRawMode = true; Lex(Result); LexingRawMode = false; + // Note that lexing to the end of the buffer doesn't implicitly delete the + // lexer when in raw mode. return BufferPtr == BufferEnd; } diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 4778d1ff4f..707a93243f 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -33,7 +33,7 @@ class TargetInfo; class PPCallbacks; class DirectoryLookup; -/// Preprocessor - This object forms engages in a tight little dance to +/// Preprocessor - This object engages in a tight little dance with the lexer to /// efficiently preprocess tokens. Lexers know only about tokens within a /// single source file, and don't know anything about preprocessor-level issues /// like the #include stack, token expansion, etc.