[PATCH] D27166: [clang-tidy] Enhance modernize-use-auto to templated function casts

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 13 13:54:54 PST 2016


malcolm.parsons added inline comments.


================
Comment at: clang-tidy/modernize/UseAutoCheck.cpp:173-177
+/// Matches the type that was substituted for the template parameter.
+AST_MATCHER_P(SubstTemplateTypeParmType, hasReplacementType,
+              ast_matchers::internal::Matcher<QualType>, InnerMatcher) {
+  return InnerMatcher.matches(Node.getReplacementType(), Finder, Builder);
+}
----------------
Prazek wrote:
> alexfh wrote:
> > Ideally, this should go to ASTMatchers.h (with a proper test and documentation).
> I agree 
@Prazek Are you talking about `hasReplacementType` or `hasExplicitTemplateArgs`?


https://reviews.llvm.org/D27166





More information about the cfe-commits mailing list