aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-17 18:28:59 +0000
committerChris Lattner <sabre@nondot.org>2007-10-17 18:28:59 +0000
commite5956bd2730c051835f9acd9e957c5d79f99e7c3 (patch)
tree6047cc11bba00a37fa86899309abacc5d50825cb
parent3b8e891be648481b68439c01eff509775214067c (diff)
add some comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43079 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Lex/Lexer.h2
-rw-r--r--include/clang/Lex/Preprocessor.h2
2 files changed, 3 insertions, 1 deletions
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.