We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84d5421 commit 2d2eecfCopy full SHA for 2d2eecf
chapi-ast-c/src/main/antlr/C.g4
@@ -471,9 +471,11 @@ macroStatement
471
472
singleLineMacroDeclaration
473
: '#' include (StringLiteral | ('<' includeIdentifier '>' )) #includeDeclaration
474
+ | '#' 'define' expression* '#' 'undef' identifierList? #macroExpansionDeclaration
475
+ | '#' ('ifdef' | 'endif') Identifier expression* '#' 'endif' Identifier? #ifdefDeclaration
476
| '#' macroKeywords #defineDeclaration
477
| '#' '#'? Identifier #macroCastDeclaration
- | '#' macroKeywords expression* '#' macroKeywords identifierList? #macroExpansionDeclaration
478
+ | '#' macroKeywords expression* '#' macroKeywords identifierList? #macroExpansionDeclaration2
479
;
480
481
macroKeywords
0 commit comments