<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 6, 2014 at 9:04 PM, Richard <span dir="ltr"><<a href="mailto:legalize@xmission.com" target="_blank">legalize@xmission.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In article <<a href="mailto:CAN1LFUMPxQHi8rzft-j50NDPJkJeet6zkPqLGhxfV35wM3LW%2Bw@mail.gmail.com">CAN1LFUMPxQHi8rzft-j50NDPJkJeet6zkPqLGhxfV35wM3LW+w@mail.gmail.com</a>>,<br>
<div class="">    Alex Horn <<a href="mailto:alex.horn@cs.ox.ac.uk">alex.horn@cs.ox.ac.uk</a>> writes:<br>
<br>
> A few notes:<br>
><br>
> Each ASTMatcher checks whether<br>
> Result.Context->getSourceManager().isInWrittenMainFile(); otherwise,<br>
> the tool would try to rewrite system headers etc.<br>
<br>
</div>I'm thinking of contributing a matcher that allows you to match nodes<br>
based on the associated source file so that you can easily discard<br>
matches outside the directory hierarchy(ies) of interest.  This seems<br>
like a common problem that all refactoring tool authors will encounter<br>
sooner or later.<br></blockquote><div><br></div><div>I think it's a good idea, but will not solve the general problem of surprise when encountering source locations. They are quite hard to understand, and the problem that one needs to decide whether to do something with the expansion of spelling location (or something in between) remains.</div>
<div><br></div><div>Cheers,</div><div>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb">--<br>
"The Direct3D Graphics Pipeline" free book <<a href="http://tinyurl.com/d3d-pipeline" target="_blank">http://tinyurl.com/d3d-pipeline</a>><br>
     The Computer Graphics Museum <<a href="http://ComputerGraphicsMuseum.org" target="_blank">http://ComputerGraphicsMuseum.org</a>><br>
         The Terminals Wiki <<a href="http://terminals.classiccmp.org" target="_blank">http://terminals.classiccmp.org</a>><br>
  Legalize Adulthood! (my blog) <<a href="http://LegalizeAdulthood.wordpress.com" target="_blank">http://LegalizeAdulthood.wordpress.com</a>><br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div></div>