From 16ff5c71ba786d52cc47bbc5fe79e654a28308b3 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Mon, 19 May 2014 17:46:28 +0000 Subject: Added a comment llvm-svn: 209146 --- clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang-tools-extra/clang-tidy/llvm') diff --git a/clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp b/clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp index b5dca4ba13f..d9789fe2dda 100644 --- a/clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp +++ b/clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp @@ -71,6 +71,8 @@ void NamespaceCommentCheck::check(const MatchFinder::MatchResult &Result) { 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. -- cgit v1.2.3