<div dir="ltr">I have this working well now. Thanks for your input.<div><br></div><div>I recall seeing a list of checks in development but I can't find it any more.</div><div><br></div><div>How would I go about submitting my new check(s) for inclusion in clang-tools-extra?</div><div><br></div><div>Thanks again,</div><div><br></div><div>Jon</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 February 2015 at 19:44, 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:2A81C75A-0E4C-448D-A98E-A538EA32DF27@gmail.com">2A81C75A-0E4C-448D-A98E-A538EA32DF27@gmail.com</a>>,<br>
<span class="">    Jonathan Coe <<a href="mailto:jonathanbcoe@gmail.com">jonathanbcoe@gmail.com</a>> writes:<br>
<br>
> I'm struggling to see how I can find the location for the replacement text.<br>
> I want the start of the initialisers but I don't see how to get a location fo<br>
r that.<br>
<br>
</span>From CXXConstructorDecl::init_begin() you can get the first<br>
initializer.<br>
<br>
>From FunctionDecl::parameters() you can get the parameters.<br>
<br>
So you should be able to look at the source location of the last<br>
parameter and the source location of the first initializer.  There<br>
doesn't seem to be any function for explicitly locating the ':' that<br>
begins the initializer list, but it will be between the above two<br>
source ranges.<br>
<div class="HOEnZb"><div class="h5">--<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>
_______________________________________________<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>