-
Notifications
You must be signed in to change notification settings - Fork 1.9k
C/C++ overlay: Add multiloc declaration to Overlay.qll #20995
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
base: main
Are you sure you want to change the base?
Conversation
3cd6fd0 to
596061c
Compare
596061c to
fcd7ea4
Compare
fcd7ea4 to
61823ea
Compare
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.
Pull request overview
This PR extends the C++ overlay discard predicates in Overlay.qll to properly handle multi-location entities by adding support for functions, types, namespaces, macros, and preprocessor directives.
- Expands
getSingleLocationFilePathto handle function declarations, type declarations, namespace declarations, macro invocations, and preprocessor directives - Expands
getMultiLocationFilePathto handle function declarations, type declarations, and namespace declarations with multiple locations - Removes TODO comments that are now addressed by the implementation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
LGTM. Please run a traced DCA experiment.
This PR extends the C++ overlay discard predicates in
Overlay.qllto handle multi-location entities correctly.