[cfe-dev] Running ASTMatcher over main file only

Kirk Fertitta kirk at pacificmindworks.com
Fri Oct 11 08:50:45 PDT 2013


Is there a way to run a matcher directly on just the main source file only, as opposed to all of the includes? I know I can discriminate in my callback, but didn't know if the "penalty" for traversing so much code was negligible or somehow avoidable.

Any advice is much appreciated.

Kirk Fertitta
Chief Technical Officer
Pacific MindWorks, Inc.
ph:  858-207-6198
fax: 858-521-1385

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131011/5529e9a5/attachment.html>


More information about the cfe-dev mailing list