[cfe-dev] Running ASTMatcher over main file only

Kirk Fertitta kirk at pacificmindworks.com
Sun Oct 13 10:59:13 PDT 2013


Yes, absolutely.  And that fact is what prompted me to believe that everyone else doing non-trivial matchers would surely face the same question.

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

From: Sean Silva [mailto:silvas at purdue.edu]
Sent: Saturday, October 12, 2013 1:37 PM
To: Edwin Vane
Cc: Kirk Fertitta; cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] Running ASTMatcher over main file only



On Sat, Oct 12, 2013 at 8:51 AM, Edwin Vane <revane at gmail.com<mailto:revane at gmail.com>> wrote:
Unless your translation unit is absolutely massive and most of it comes from files you don't care about I can't see there being much of a difference.

Unfortunately, "absolutely massive and most of it comes from files you don't care about" is the current state of affairs for C++ :(

-- Sean Silva


On Fri, Oct 11, 2013 at 11:50 AM, Kirk Fertitta <kirk at pacificmindworks.com<mailto:kirk at pacificmindworks.com>> wrote:
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<tel:858-207-6198>
fax: 858-521-1385<tel:858-521-1385>


_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu>
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



--
Edwin V

_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu>
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

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


More information about the cfe-dev mailing list