================ @@ -203,7 +203,7 @@ class ASTWalker : public RecursiveASTVisitor<ASTWalker> { bool VisitUsingDecl(UsingDecl *UD) { for (const auto *Shadow : UD->shadows()) { auto *TD = Shadow->getTargetDecl(); - auto IsUsed = TD->isUsed() || TD->isReferenced(); + auto IsUsed = TD->isUsed() || TD->isReferenced() || !TD->getAsFunction(); ---------------- hokein wrote:
nit: the name `IsUsed` no longer reflects its purpose. Consider renaming it to something more suitable or inlining it. Additionally, it would be helpful to add comments to document the intention behind this code. https://github.com/llvm/llvm-project/pull/106430 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits