aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-19 22:21:33 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-19 22:21:33 +0000
commit17ff58a63197b398ae52697b088dc0fb8b255519 (patch)
tree3ec5398531f63a338509278b9d8ce6861047a0b0 /include/clang
parent41938c8493b4380df738263166b746eacb33c309 (diff)
When using a PTHLexer, use DiscardToEndOfLine() instead of ReadToEndOfLine().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Lex/PTHLexer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Lex/PTHLexer.h b/include/clang/Lex/PTHLexer.h
index 2985b24cb5..bdaba760cf 100644
--- a/include/clang/Lex/PTHLexer.h
+++ b/include/clang/Lex/PTHLexer.h
@@ -56,6 +56,10 @@ public:
/// the virtual location encodes where we should *claim* the characters came
/// from. Currently this is only used by _Pragma handling.
SourceLocation getFileLoc() const { return FileLoc; }
+
+ /// ReadToEndOfLine - Read the rest of the current preprocessor line as an
+ /// uninterpreted string. This switches the lexer out of directive mode.
+ void DiscardToEndOfLine();
};
} // end namespace clang