[cfe-dev] How to get (lowest) AST node for given location
d82ks8djf82msd83hf8sc02lqb5gh5 at gmail.com
Sat Jun 27 15:58:05 PDT 2015
I have precise location information (source file name, offset/line+column number) and initialized CompilationDatabase (in RefactoringTool).
I want to get AST node for this location.
The problem I'm trying to solve is to answer question: "What is here?" in source code.
The other (but connected) question: Can I reuse AST nodes from different ClangTool invocations? (To such big extent to assume that addresses of these nodes can be compared)
This time we have node from the first question and want to use this node in second query.
More information about the cfe-dev