[clang-tidy] Move the missing namespace comment warnings to the closing brace
authorAlexander Kornienko <alexfh@google.com>
Mon, 17 Nov 2014 17:32:32 +0000 (17:32 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 17 Nov 2014 17:32:32 +0000 (17:32 +0000)
commitb23eb5e3f7c43c40fe7e5ede5484285becd2f14e
tree72abbd32624e50c0d68c0ec76057beac646b5ca6
parent0837f63fd2f00ab32b98ec18ba6adf6be7fa003e
[clang-tidy] Move the missing namespace comment warnings to the closing brace

Summary:
The google-readability-namespace-comments/llvm-namespace-comment
warnings are quite confusing when they appear at the beginning of a long
namespace and the closing brace is not in sight.

For convenience added notes pointing to the start of the namespace.

Reviewers: klimek

Reviewed By: klimek

Subscribers: curdeius, cfe-commits

Differential Revision: http://reviews.llvm.org/D6251

llvm-svn: 222145
clang-tools-extra/clang-tidy/readability/NamespaceCommentCheck.cpp
clang-tools-extra/test/clang-tidy/basic.cpp
clang-tools-extra/test/clang-tidy/google-readability-namespace-comments.cpp
clang-tools-extra/test/clang-tidy/select-checks.cpp