diff options
author | John McCall <rjmccall@apple.com> | 2011-04-09 22:50:59 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-04-09 22:50:59 +0000 |
commit | 39439739cf2bef1489c171166ff2e2b8542ab056 (patch) | |
tree | 4b7b4ed36cf9509c33e4acd5e5b957a89a2d1b44 /clang/lib/Basic/IdentifierTable.cpp | |
parent | b799b2d4be5487f864aeabd894683fad67206cd3 (diff) | |
download | llvm-39439739cf2bef1489c171166ff2e2b8542ab056.zip llvm-39439739cf2bef1489c171166ff2e2b8542ab056.tar.gz llvm-39439739cf2bef1489c171166ff2e2b8542ab056.tar.bz2 |
Fix a bunch of major problems with __unknown_anytype and properly test
for them. The only major missing feature is references.
llvm-svn: 129234
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
-rw-r--r-- | clang/lib/Basic/IdentifierTable.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp index cfe8d27..3d08bf807 100644 --- a/clang/lib/Basic/IdentifierTable.cpp +++ b/clang/lib/Basic/IdentifierTable.cpp @@ -162,7 +162,12 @@ void IdentifierTable::AddKeywords(const LangOptions &LangOpts) { #define OBJC2_AT_KEYWORD(NAME) \ if (LangOpts.ObjC2) \ AddObjCKeyword(llvm::StringRef(#NAME), tok::objc_##NAME, *this); +#define TESTING_KEYWORD(NAME, FLAGS) #include "clang/Basic/TokenKinds.def" + + if (LangOpts.ParseUnknownAnytype) + AddKeyword("__unknown_anytype", tok::kw___unknown_anytype, KEYALL, + LangOpts, *this); } tok::PPKeywordKind IdentifierInfo::getPPKeywordID() const { |