From: Argyrios Kyrtzidis Date: Thu, 12 Aug 2010 12:31:25 +0000 (+0000) Subject: Add a comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f573084db5807f6003282bdf53ca9d58bab1ddc4;p=clang Add a comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110913 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h index cbc2d01202..fa1b149e39 100644 --- a/include/clang/Basic/IdentifierTable.h +++ b/include/clang/Basic/IdentifierTable.h @@ -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;