c++ - How can I get the name of the file I'm currently visiting with Clang? -
When I'm going, we say, a declaration ( Decl
in the Clang library), How can I get the name of this file, where is it written DCL
?
is a class, but I can not find any other class, so that I get this You can ask the Source File Manager for FileEntry from SourceManager. For example, in a Mater Callback: file data
Zero MyMatcher :: run (const MatchFinder :: MatchResult and results) {ASTContext * Context = Result.Context; If (Const Deckl * D = Result. Nodes.GetnodeAS
Comments
Post a Comment