Replies: 1 comment 2 replies
|
The token representing the value in the parse tree will have a Trivia entry containing the original macro usage syntax node, so you can search through the tree for those and find all of the macro usages. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is there any way to get all constants from an included header file?
say i have a myheader.sv file:
and in test.sv
it uses TEST_OUT1_CONSTANT, in the syntax tree, after reading in the included file from then on every location of
TEST_OUT1_CONSTANTis replaced with the value1.What if i want the original source to show the constant?
All reactions