-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to list the declarations overlapping macro expansion #552
Conversation
ce7960a
to
c006465
Compare
3604669
to
062aebe
Compare
062aebe
to
77106e2
Compare
The changes does not include |
Offline discussions have settled on a design where |
Offline discussions have settled in the design of moving |
9caaf8e
to
22171bf
Compare
Update PR to implement |
|
||
void PrintDeclOverlappingMacroSubstitution(const mx::Fragment &fragment, const mx::Macro ¯o) { | ||
if (auto sub = mx::MacroSubstitution::from(macro)) { | ||
for (auto decl : sub->parsed_tokens().overlapping_declarations()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assign generator return value to local var before iterating.
* Add API to list declarations containing in macro expansions * Update to overlapping and covering implementation * Abstract out the common code to utility function * Update python bindings * address review comments and add checks for macro token reader * Move overlapping APIs to TokenRange and update python bindings
* index: Refactor vast codegen integration. * index: Make codegen use vast visitor list. * git: Bump VAST and use master branch. * Bump vast. * Delete most auto-generated files * Re-generate auto-generated files. * Re-generate Python bindings. * Pass CXX flags to rocksdb build config (#551) * API to list the declarations overlapping macro expansion (#552) * Add API to list declarations containing in macro expansions * Update to overlapping and covering implementation * Abstract out the common code to utility function * Update python bindings * address review comments and add checks for macro token reader * Move overlapping APIs to TokenRange and update python bindings * index: Refactor vast codegen integration. * index: Make codegen use vast visitor list. * git: Bump VAST and use master branch. * Bump vast. * Delete most auto-generated files * Re-generate auto-generated files. * Re-generate Python bindings. * Fix to use entity ids for names. Update code style to match most other code style in mx. * Add aggregate type interface * Bug fix. * Bug fix * Hopeful fix for misidentification of definitions. * Make nested classes in template specializations into nested fragments so that they can be subject to replacement. --------- Co-authored-by: Peter Goodman <[email protected]> Co-authored-by: kumarak <[email protected]>
No description provided.