summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-05-19 17:46:28 +0000
committerAlexander Kornienko <alexfh@google.com>2014-05-19 17:46:28 +0000
commit16ff5c71ba786d52cc47bbc5fe79e654a28308b3 (patch)
tree1da23808f1f8898e2ad2b709a36d3db93493b9f3 /clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp
parent5161db61a9f6fc28d86397a90e1efe772c20c0e6 (diff)
downloadbcm5719-llvm-16ff5c71ba786d52cc47bbc5fe79e654a28308b3.tar.gz
bcm5719-llvm-16ff5c71ba786d52cc47bbc5fe79e654a28308b3.zip
Added a comment
llvm-svn: 209146
Diffstat (limited to 'clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/llvm/NamespaceCommentCheck.cpp2
1 files changed, 2 insertions, 0 deletions
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.
OpenPOWER on IntegriCloud