brintos

brintos / llvm-project-archived public Read only

0
0
Text · 644 B · bb22308 Raw
15 lines · cpp
1// RUN: %check_clang_tidy %s misc-unused-using-decls %t -- --fix-notes2// 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: namespace12// CHECK-FIXES: {{^namespace c {}$}}13// FIXME: cleanupAroundReplacements leaves whitespace. Otherwise we could just14// check the next line.15