I am still struggling with my tool and I need some advice:
I have defined my own pragma, which enables/disables certain functionality.
The PragmaHandler is called, but I have no idea how to pass the state of the pragma into my RecursiveASTVisitor.
From my understanding the PragmaHandler is called by the Preprocessor for all found #pragma instances and after
that my Visitor is executed. But the pragma state changes
PUSH/POP/enable are lost at this point.
How can I pass the pragma state to my Visitor? I want to attach an implicit attribute to the affected AStNodes.
I have attached a stripped version of the problem.
<-- code snippet -->
mypragma_enabled = false;
mypragma_enabled = true;
to attach the pragma information to an ASTContext here?
// How the get current state of the pragma here?
// This is
cfe-dev mailing list
|Free forum by Nabble||Edit this page|