Cross-references among translation units in a project #171
Unanswered
hongxuchen
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi, I'm quite interested in this project and I think it provides an easy way to using clang-based analysis result as a standalone tool. I read a few code segments, and I wonder whether this could be used for cross-references among different translation units. What I care most is like "where is the definition rather than the declaration of the called function, which may reside in another .cpp file", and other similar scenarios where I need the definition rather than the declarations.
I notice that
cpp_entity_id detail::get_entity_id(const CXCursor& cur)
inparse_functions.cpp
uses ``USR(unified symbol resource)
to generate entity ids by calculating USR's hashes. My question is: can cpp_entity_id be used for cross-file references?Beta Was this translation helpful? Give feedback.
All reactions