forked from OSchip/llvm-project
Reimplement Token::isAnnotation() using TokenKinds.def. No functionality change.
llvm-svn: 126045
This commit is contained in:
parent
72a35fb974
commit
5de2850efb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue