[cfe-commits] r38772 - /cfe/cfe/trunk/include/clang/Lex/IdentifierTable.h

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:24:29 PDT 2007


Author: sabre
Date: Wed Jul 11 11:24:29 2007
New Revision: 38772

URL: http://llvm.org/viewvc/llvm-project?rev=38772&view=rev
Log:
add method to unpoison something for __VA_ARGS__.

Modified:
    cfe/cfe/trunk/include/clang/Lex/IdentifierTable.h

Modified: cfe/cfe/trunk/include/clang/Lex/IdentifierTable.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Lex/IdentifierTable.h?rev=38772&r1=38771&r2=38772&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/Lex/IdentifierTable.h (original)
+++ cfe/cfe/trunk/include/clang/Lex/IdentifierTable.h Wed Jul 11 11:24:29 2007
@@ -71,7 +71,7 @@
   
   /// setIsPoisoned - Mark this identifier as poisoned.  After poisoning, the
   /// Preprocessor will emit an error every time this token is used.
-  void setIsPoisoned() { IsPoisoned = true; }
+  void setIsPoisoned(bool Value = true) { IsPoisoned = Value; }
   
   /// isPoisoned - Return true if this token has been poisoned.
   bool isPoisoned() const { return IsPoisoned; }





More information about the cfe-commits mailing list