diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2019-07-17 15:22:14 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2019-07-17 15:22:14 +0000 |
commit | f81ee439a409973279244f093dd0264592b74a38 (patch) | |
tree | 8dd46b02baea2fe88e5c0ed1558be80fa9020fcc /clang-tools-extra/test/clang-tidy/select-checks.cpp | |
parent | 552c2c09d354a3ad9c1c9647e0a3bb5099c31088 (diff) | |
download | bcm5719-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.cpp | 2 |
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); }; |