VitaNuo added a comment. Thanks for the comments!
================ Comment at: clang-tools-extra/include-cleaner/lib/WalkAST.cpp:51 Type = Type->getPointeeType(); + if (const TemplateSpecializationType *TST = + Type->getAs<TemplateSpecializationType>()) { ---------------- hokein wrote: > nit: we can use `const auto*` here as the type is explicitly spelled in the > `getAs<XXX>` Seems to be obsolete with the above patch. ================ Comment at: clang-tools-extra/include-cleaner/lib/WalkAST.cpp:52 + if (const TemplateSpecializationType *TST = + Type->getAs<TemplateSpecializationType>()) { + return TST->getTemplateName().getAsTemplateDecl(); ---------------- hokein wrote: > nit: remove the {} around the if statement Seems to be obsolete with the above patch. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139409/new/ https://reviews.llvm.org/D139409 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits