[clang-tools-extra] r209146 - Added a comment

Alexander Kornienko alexfh at google.com
Mon May 19 10:46:28 PDT 2014


Author: alexfh
Date: Mon May 19 12:46:28 2014
New Revision: 209146

URL: http://llvm.org/viewvc/llvm-project?rev=209146&view=rev
Log:
Added a comment

Modified:
    clang-tools-extra/trunk/clang-tidy/llvm/NamespaceCommentCheck.cpp

Modified: clang-tools-extra/trunk/clang-tidy/llvm/NamespaceCommentCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/llvm/NamespaceCommentCheck.cpp?rev=209146&r1=209145&r2=209146&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/llvm/NamespaceCommentCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/llvm/NamespaceCommentCheck.cpp Mon May 19 12:46:28 2014
@@ -71,6 +71,8 @@ void NamespaceCommentCheck::check(const
     return;
 
   bool NextTokenIsOnSameLine = Sources.getSpellingLineNumber(Loc) == EndLine;
+  // If we insert a line comment before the token in the same line, we need
+  // to insert a line break.
   bool NeedLineBreak = NextTokenIsOnSameLine && Tok.isNot(tok::eof);
 
   // Try to find existing namespace closing comment on the same line.





More information about the cfe-commits mailing list