<div dir="ltr"><div style>Thanks Dmitri and Manuel</div><div style><br></div>I've attached a new patch to clang/tools/extra with Dmitri's suggestions to use isWhitespace() from clang/Basic/CharInfo.h and indent the member initializers of AddOverrideFixer.<div>

<br></div><div style>For completeness, I have also re-attached the patch to the clang repository containing the additional matchers. This is unchanged except for it now being a diff against svn revision 175100.</div><div>

<br></div><div style>I'm happy to add the documentation when there is a somewhere to put it.</div><div style><br></div><div style>Philip Dunstan</div><div class="gmail_extra">--<br><div>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 Wed, Feb 13, 2013 at 1:41 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 Fri, Feb 8, 2013 at 11:01 PM, Philip Dunstan <<a href="mailto:phil@philipdunstan.com">phil@philipdunstan.com</a>> wrote:<br>
> Hello<br>
><br>
> These patches continue some work that I started back in July (before RL<br>
> kicked in) to create a C++11 migration tool that would add the override<br>
> specifier to suitable member functions where it could. I have reworked the<br>
> tool to integrate it into the cpp11-migrate tool in the tool/extra<br>
> repository.<br>
<br>
</div>+static bool isWhitespace(char C) {<br>
+  return (C == ' ') || (C == '\t') || (C == '\f') ||<br>
+         (C == '\v') || (C == '\n') || (C == '\r');<br>
+}<br>
<br>
You can use isWhitespace() from clang/Basic/CharInfo.h for this.<br>
<br>
+  AddOverrideFixer(clang::tooling::Replacements &Replace,<br>
+                   unsigned &AcceptedChanges) :<br>
+  Replace(Replace),<br>
+  AcceptedChanges(AcceptedChanges) { }<br>
<br>
Please indent member initializers.<br>
<br>
This LGTM, but there's documentation missing -- obviously because<br>
there's no place to put it currently.  After the patch to add a<br>
documentation page for cpp11-migrate lands, could you write up some<br>
user-visible documentation?<br>
<span class="HOEnZb"><font color="#888888"><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>
</font></span></blockquote></div><br></div></div>