[PATCH] D110216: [clang] retain type sugar in auto / template argument deduction
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 4 11:37:22 PDT 2021
craig.topper added inline comments.
================
Comment at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:1032
if (const auto *S = dyn_cast<DeducedType>(&Node)) {
- EffectiveType = S->getDeducedType().getTypePtrOrNull();
- if (!EffectiveType)
- return false;
+ QualType T = S->getDeducedType();
+ return !T.isNull() ? matchesSpecialized(*T, Finder, Builder) : false;
----------------
gcc 8.4.1 doesn't like `T` being the same name as a template parameter for this class.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110216/new/
https://reviews.llvm.org/D110216
More information about the cfe-commits
mailing list