<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 19, 2014 at 6:29 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">lg<br>
<br>
================<br>
Comment at: clang-tidy/llvm/NamespaceCommentCheck.cpp:66<br>
@@ +65,3 @@<br>
+  Token Tok;<br>
+  while (Lexer::getRawToken(Loc, Tok, Sources, Result.Context->getLangOpts())) {<br>
+    Loc = Loc.getLocWithOffset(1);<br>
----------------<br>
Can you add a comment explaining why it's ok to retry on failure with an incremented location?<br>
<br>
================<br>
Comment at: clang-tidy/llvm/NamespaceCommentCheck.cpp:73<br>
@@ +72,3 @@<br>
+  bool NextTokenIsOnSameLine = Sources.getSpellingLineNumber(Loc) == EndLine;<br>
+  bool NeedLineBreak = NextTokenIsOnSameLine && Tok.isNot(tok::eof);<br>
+<br>
----------------<br>
Can you explain why we need this? (I'd have expected the fix-it to not change the number of newlines, thus just inserting the comment between the } and the newline).<br></blockquote><div><br></div><div>Am I missing where you added a comment for this?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href="http://reviews.llvm.org/D3825" target="_blank">http://reviews.llvm.org/D3825</a><br>
<br>
<br>
</blockquote></div><br></div></div>