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.
13 lines
394 B
13 lines
394 B
// RUN: %check_clang_tidy %s misc-unused-alias-decls %t
|
|
|
|
namespace my_namespace {
|
|
class C {};
|
|
}
|
|
|
|
namespace unused_alias = ::my_namespace; // eol-comments aren't removed (yet)
|
|
// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: namespace alias decl 'unused_alias' is unused
|
|
// CHECK-FIXES: {{^}}// eol-comments aren't removed (yet)
|
|
|
|
namespace used_alias = ::my_namespace;
|
|
void f() { used_alias::C c; }
|