[clang-tools-extra] r361833 - [clang-tidy] Verify fix description for misc-unused-using-decl.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Tue May 28 07:47:39 PDT 2019


Author: hokein
Date: Tue May 28 07:47:39 2019
New Revision: 361833

URL: http://llvm.org/viewvc/llvm-project?rev=361833&view=rev
Log:
[clang-tidy] Verify fix description for misc-unused-using-decl.

Reviewers: gribozavr

Subscribers: xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62522

Modified:
    clang-tools-extra/trunk/test/clang-tidy/misc-unused-using-decls.cpp

Modified: clang-tools-extra/trunk/test/clang-tidy/misc-unused-using-decls.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/misc-unused-using-decls.cpp?rev=361833&r1=361832&r2=361833&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/misc-unused-using-decls.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/misc-unused-using-decls.cpp Tue May 28 07:47:39 2019
@@ -79,6 +79,7 @@ T ff() { T t; return t; }
 // eol-comments aren't removed (yet)
 using n::A; // A
 // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: using decl 'A' is unused
+// CHECK-MESSAGES: :[[@LINE-2]]:10: note: remove the using
 // CHECK-FIXES: {{^}}// A
 using n::B;
 using n::C;




More information about the cfe-commits mailing list