<div dir="ltr"><div><div><div><div><div>I'm building a tool with the libtooling API - running an ASTFrontendAction with a RecursiveASTVisitor.<br><br></div>By default, the visitor gets run for all included files, including system headers (<string> and the like).<br>
<br></div>I can ignore all included files (and therefore only run on the files passed on the commandline) by overriding TraversDecl and checking<br><br>context->getSourceManager().isFromMainFile(d->getLocation());<br>
<br></div>Unfortunately, this stops me from traversing user included files.  Ideally, I'd like to traverse non-system headers and ignore system headers.  Is there a way to accomplish this? <br><br></div>Thanks!<br><br>
</div>- Tom<br></div>