Reimplement Token::isAnnotation() using TokenKinds.def. No functionality change.

llvm-svn: 126045
This commit is contained in:
Peter Collingbourne 2011-02-19 20:06:59 +00:00
parent 72a35fb974
commit 5de2850efb
1 changed files with 5 additions and 3 deletions

View File

@ -103,9 +103,11 @@ public:
} }
bool isAnnotation() const { bool isAnnotation() const {
return is(tok::annot_typename) || #define ANNOTATION(NAME) \
is(tok::annot_cxxscope) || if (is(tok::annot_##NAME)) \
is(tok::annot_template_id); return true;
#include "clang/Basic/TokenKinds.def"
return false;
} }
/// getLocation - Return a source location identifier for the specified /// getLocation - Return a source location identifier for the specified