]> granicus.if.org Git - clang/commitdiff
allow clearing this value.
authorChris Lattner <sabre@nondot.org>
Fri, 18 Sep 2009 20:39:46 +0000 (20:39 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Sep 2009 20:39:46 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82271 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Lexer.h

index cd1c49d5d61c107f51cad1f7967a37ba2dda41ed..c2db4d357c5179e2d44e0cdd14b99c546ef31125 100644 (file)
@@ -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; }