1 | // RUN: %check_clang_tidy %s misc-unused-using-decls %t -- --fix-notes |
2 | // RUN: %check_clang_tidy %s misc-unused-using-decls %t -- --fix-notes -format-style=none -- |
3 | // RUN: %check_clang_tidy %s misc-unused-using-decls %t -- --fix-notes -format-style=llvm -- |
4 | namespace a { class A {}; } |
5 | namespace b { |
6 | using a::A; |
7 | } |
8 | namespace c {} |
9 | // CHECK-MESSAGES: :[[@LINE-3]]:10: warning: using decl 'A' is unused [misc-unused-using-decls] |
10 | // CHECK-FIXES: {{^namespace a { class A {}; }$}} |
11 | // CHECK-FIXES-NOT: namespace |
12 | // CHECK-FIXES: {{^namespace c {}$}} |
13 | // FIXME: cleanupAroundReplacements leaves whitespace. Otherwise we could just |
14 | // check the next line. |
15 | |