You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// RUN: %check_clang_tidy -expect-clang-tidy-error %s misc-unused-using-decls %t
|
|
|
|
namespace n {
|
|
class C;
|
|
}
|
|
|
|
using n::C;
|
|
|
|
void f() {
|
|
for (C *p : unknown()) {}
|
|
// CHECK-MESSAGES: :[[@LINE-1]]:15: error: use of undeclared identifier 'unknown' [clang-diagnostic-error]
|
|
}
|