[clang-tools-extra] [include-cleaner] Report refs for enum constants used through namespace aliases (PR #106706)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 30 07:04:48 PDT 2024
================
@@ -534,6 +534,8 @@ TEST(WalkAST, Enums) {
testWalk(R"(namespace ns { enum E { A = 42 }; }
struct S { using ns::E::A; };)",
"int e = S::^A;");
+ testWalk(R"(namespace ns { enum E { $explicit^A = 42 }; })",
+ "namespace z = ns; int e = z::^A;");
----------------
ilya-biryukov wrote:
so it was a good test case! thanks, LG!
https://github.com/llvm/llvm-project/pull/106706
More information about the cfe-commits
mailing list