[PATCH] D149948: [include-cleaner] Treat references to nested types implicit

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 06:29:21 PDT 2023


hokein accepted this revision.
hokein added a comment.
This revision is now accepted and ready to land.

thanks, this solution makes sense!



================
Comment at: clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp:361
+      struct Derived : public Base {};)cpp",
+           "void fun() { Derived::^a x; }");
+  testWalk("struct Base { struct $implicit^a {}; };",
----------------
Maybe add a test for two-level nested specifier (`Derived2::Derived1::a x`)?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149948/new/

https://reviews.llvm.org/D149948



More information about the cfe-commits mailing list