1 | // RUN: %check_clang_tidy %s misc-unused-alias-decls %t |
---|---|
2 | |
3 | namespace my_namespace { |
4 | class C {}; |
5 | } |
6 | |
7 | namespace unused_alias = ::my_namespace; // eol-comments aren't removed (yet) |
8 | // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: namespace alias decl 'unused_alias' is unused |
9 | // CHECK-FIXES: {{^}}// eol-comments aren't removed (yet) |
10 | |
11 | namespace used_alias = ::my_namespace; |
12 | void f() { used_alias::C c; } |
13 |