aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-18 20:39:46 +0000
committerChris Lattner <sabre@nondot.org>2009-09-18 20:39:46 +0000
commit0369297684c13d5495ab490d46ed9d14ef235ce3 (patch)
treef4354583e481c0343cbfac8ed2d4fd7827f7f9f5
parent2ee3fca27ab8e6254586c5b42efb086df4bf76ac (diff)
allow clearing this value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82271 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Lex/Lexer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h
index cd1c49d5d6..c2db4d357c 100644
--- a/include/clang/Lex/Lexer.h
+++ b/include/clang/Lex/Lexer.h
@@ -184,8 +184,8 @@ public:
///
/// When in this mode, the end-of-file token will be immediately preceded
/// by a code-completion token.
- void SetEofIsCodeCompletion() {
- IsEofCodeCompletion = true;
+ void SetEofIsCodeCompletion(bool Val = true) {
+ IsEofCodeCompletion = Val;
}
const char *getBufferStart() const { return BufferStart; }