]> granicus.if.org Git - clang/commitdiff
Add a comment.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 12 Aug 2010 12:31:25 +0000 (12:31 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 12 Aug 2010 12:31:25 +0000 (12:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110913 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/IdentifierTable.h

index cbc2d01202d3e1a0eea2d49d32e7047b45b509bb..fa1b149e39b1aff8f461fd9cd9ec992e2e5b0143 100644 (file)
@@ -141,7 +141,11 @@ public:
   bool hasRevertedTokenIDToIdentifier() const { return RevertedTokenID; }
 
   /// \brief Revert TokenID to tok::identifier; used for GNU libstdc++ 4.2
-  /// compatibility. 
+  /// compatibility.
+  ///
+  /// TokenID is normally read-only but there are 2 instances where we revert it
+  /// to tok::identifier for libstdc++ 4.2. Keep track of when this happens
+  /// using this method so we can inform PCH about it.
   void RevertTokenIDToIdentifier() {
     assert(TokenID != tok::identifier && "Already at tok::identifier");
     TokenID = tok::identifier;