File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,7 @@ inline bool isLiteral(TokenKind K) {
90
90
}
91
91
92
92
// / Return true if this is any of tok::annot_* kinds.
93
- inline bool isAnnotation (TokenKind K) {
94
- #define ANNOTATION (NAME ) \
95
- if (K == tok::annot_##NAME) \
96
- return true ;
97
- #include " clang/Basic/TokenKinds.def"
98
- return false ;
99
- }
93
+ bool isAnnotation (TokenKind K);
100
94
101
95
// / Return true if this is an annotation token representing a pragma.
102
96
bool isPragmaAnnotation (TokenKind K);
Original file line number Diff line number Diff line change @@ -46,6 +46,16 @@ const char *tok::getKeywordSpelling(TokenKind Kind) {
46
46
return nullptr ;
47
47
}
48
48
49
+ bool tok::isAnnotation (TokenKind Kind) {
50
+ switch (Kind) {
51
+ #define ANNOTATION (X ) case annot_ ## X: return true ;
52
+ #include " clang/Basic/TokenKinds.def"
53
+ default :
54
+ break ;
55
+ }
56
+ return false ;
57
+ }
58
+
49
59
bool tok::isPragmaAnnotation (TokenKind Kind) {
50
60
switch (Kind) {
51
61
#define PRAGMA_ANNOTATION (X ) case annot_ ## X: return true ;
You can’t perform that action at this time.
0 commit comments