[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / clang-tools-extra / test / clang-tidy / infrastructure / clean-up-code.cpp
blobbb2230803cea9b1ef2a10d1abc7efa0b4593fcf7
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;
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.