[cfe-commits] r82271 - /cfe/trunk/include/clang/Lex/Lexer.h
Chris Lattner
sabre at nondot.org
Fri Sep 18 13:39:46 PDT 2009
Author: lattner
Date: Fri Sep 18 15:39:46 2009
New Revision: 82271
URL: http://llvm.org/viewvc/llvm-project?rev=82271&view=rev
Log:
allow clearing this value.
Modified:
cfe/trunk/include/clang/Lex/Lexer.h
Modified: cfe/trunk/include/clang/Lex/Lexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Lexer.h?rev=82271&r1=82270&r2=82271&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Lexer.h (original)
+++ cfe/trunk/include/clang/Lex/Lexer.h Fri Sep 18 15:39:46 2009
@@ -184,8 +184,8 @@
///
/// 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; }
More information about the cfe-commits
mailing list