diff options
-rw-r--r-- | include/clang/Lex/Token.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/clang/Lex/Token.h b/include/clang/Lex/Token.h index ef4f02cb57..edcfcc10d2 100644 --- a/include/clang/Lex/Token.h +++ b/include/clang/Lex/Token.h @@ -103,9 +103,11 @@ public: } bool isAnnotation() const { - return is(tok::annot_typename) || - is(tok::annot_cxxscope) || - is(tok::annot_template_id); +#define ANNOTATION(NAME) \ + if (is(tok::annot_##NAME)) \ + return true; +#include "clang/Basic/TokenKinds.def" + return false; } /// getLocation - Return a source location identifier for the specified |