summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/select-checks.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-07-17 15:22:14 +0000
committerIlya Biryukov <ibiryukov@google.com>2019-07-17 15:22:14 +0000
commitf81ee439a409973279244f093dd0264592b74a38 (patch)
tree8dd46b02baea2fe88e5c0ed1558be80fa9020fcc /clang-tools-extra/test/clang-tidy/select-checks.cpp
parent552c2c09d354a3ad9c1c9647e0a3bb5099c31088 (diff)
downloadbcm5719-llvm-f81ee439a409973279244f093dd0264592b74a38.tar.gz
bcm5719-llvm-f81ee439a409973279244f093dd0264592b74a38.zip
[clang-tidy] Adjust location of namespace comment diagnostic
Summary: If there is no comment, place it at the closing brace of a namespace definition. Previously it was placed at the next character after the closing brace. The new position produces a better location for highlighting in clangd and does not seem to make matters worse for clang-tidy. Reviewers: alexfh, hokein Reviewed By: alexfh, hokein Subscribers: xazax.hun, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64861 llvm-svn: 366337
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/select-checks.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/select-checks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/select-checks.cpp b/clang-tools-extra/test/clang-tidy/select-checks.cpp
index 791def75b18..46bf43ca0c3 100644
--- a/clang-tools-extra/test/clang-tidy/select-checks.cpp
+++ b/clang-tools-extra/test/clang-tidy/select-checks.cpp
@@ -5,7 +5,7 @@
namespace i {
}
-// CHECK: :[[@LINE-1]]:2: warning: namespace 'i' not terminated with a closing comment [llvm-namespace-comment]
+// CHECK: :[[@LINE-1]]:1: warning: namespace 'i' not terminated with a closing comment [llvm-namespace-comment]
// Expect no warnings from the google-explicit-constructor check:
class A { A(int i); };
OpenPOWER on IntegriCloud