[cfe-dev] Header Pasting and ASTMatchers
Farzad Sadeghi via cfe-dev
cfe-dev at lists.llvm.org
Sun Dec 11 13:23:36 PST 2016
I have an ASTFronendAction that runs some matchers and has some PPCallbacks.
Ever since i added the PPCallbacks, I'm getting the AST of a source
file that has the headers actually pasted at the top of it, so if
something's in an included file, i'm matching it twice.
is there a way to check for that when a MatchFinder::Callback is
called or is there a way to tell the Preprocessor to not paste the
headers at the top of the source files that included them?
--
Farzad Sadeghi
More information about the cfe-dev
mailing list