1// RUN: %check_clang_tidy %s misc-unused-alias-decls %t
2
3namespace my_namespace {
4class C {};
5}
6
7namespace 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
11namespace used_alias = ::my_namespace;
12void f() { used_alias::C c; }
13

source code of clang-tools-extra/test/clang-tidy/checkers/misc/unused-alias-decls.cpp