<div dir="ltr">Thanks Dmitri and Matthieu,<div><br></div><div>At the moment I am not doing anything like this. I am simply inserting the "override" keyword in AddOverrideActions. Should I be appling a similar technique to find an appropriate macro to apply instead of the raw override keyword?</div>

<div><br></div><div>Looking at how it is done for the fix-it hints for [[clang::fallthrough]] I appear to need to access a Preprocessor object. Is that still available at the time the AST matchers MatchCallback is run and what is the recommended way to access it?</div>

<div><br></div><div class="gmail_extra"><div>Phil<br>--<br>Philip Dunstan<br><a href="mailto:phil@philipdunstan.com" target="_blank">phil@philipdunstan.com</a><br><a href="http://www.philipdunstan.com" target="_blank">www.philipdunstan.com</a></div>


<br><br><div class="gmail_quote">On Mon, Feb 4, 2013 at 8:03 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Mon, Feb 4, 2013 at 8:24 PM, Matthieu Monrocq<br>
<<a href="mailto:matthieu.monrocq@gmail.com">matthieu.monrocq@gmail.com</a>> wrote:<br>
> I seem to remember there was some magic in the [[clang::fallthrough]]<br>
> attribute that allowed one to find the last macro that evaluated to this<br>
> attribute (should one exist), and thus allowed the fix-it hints to use the<br>
> macro spelling instead of the "pure" spelling.<br>
<br>
</div>Philip,<br>
<br>
You can find an example of that in r164892.<br>
<div class="HOEnZb"><div class="h5"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br></div></div>