[PATCH] D25316: [clang-tidy] Fix PR25499: Enhance modernize-use-auto to casts
Piotr Padlewski via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 9 07:31:13 PDT 2016
Prazek added a comment.
In https://reviews.llvm.org/D25316#565574, @malcolm.parsons wrote:
> In https://reviews.llvm.org/D25316#565567, @Prazek wrote:
>
> > functionDecl(hasName(LEXICAL_CAST_NAME))))),
>
>
> I was trying to avoid specifying the name of the function so that it works for any templated function/member function that returns its first template type.
Good idea. I am not sure how it will work when you will run it on big codebase, so I wanted to make it configurable for any function name. But if it will work for 99% of useful cases, then it will be great!
https://reviews.llvm.org/D25316
More information about the cfe-commits
mailing list