[cfe-dev] ASTMatcher for assert()

Richard legalize at xmission.com
Fri Jun 6 12:04:00 PDT 2014


In article <CAN1LFUMPxQHi8rzft-j50NDPJkJeet6zkPqLGhxfV35wM3LW+w at mail.gmail.com>,
    Alex Horn <alex.horn at cs.ox.ac.uk> writes:

> A few notes:
> 
> Each ASTMatcher checks whether
> Result.Context->getSourceManager().isInWrittenMainFile(); otherwise,
> the tool would try to rewrite system headers etc.

I'm thinking of contributing a matcher that allows you to match nodes
based on the associated source file so that you can easily discard
matches outside the directory hierarchy(ies) of interest.  This seems
like a common problem that all refactoring tool authors will encounter
sooner or later.
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>



More information about the cfe-dev mailing list