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 --
4namespace a { class A {}; }
5namespace b {
6using a::A;
7}
8namespace 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

source code of clang-tools-extra/test/clang-tidy/infrastructure/clean-up-code.cpp