]> granicus.if.org Git - clang/commitdiff
add some comments.
authorChris Lattner <sabre@nondot.org>
Wed, 17 Oct 2007 18:28:59 +0000 (18:28 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Oct 2007 18:28:59 +0000 (18:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43079 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Lexer.h
include/clang/Lex/Preprocessor.h

index b17bb36003a7354e790fbf3a2f95d9f8cdf097f2..a66a4284f2df0e2655ed180d47867b3ee7e92d35 100644 (file)
@@ -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; 
   }
   
index 4778d1ff4fef49953eb462b99014347c326409e8..707a93243fe393b8c2c83fe2765bf4a919213f5a 100644 (file)
@@ -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.