[cfe-dev] Improvements to AST Matcher tooling and auto usage

Stephen Kelly via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 23 14:56:13 PDT 2019


On 23/10/2019 18:16, Roman Lebedev wrote:
>
>>>> If the rule should be "auto must not be used if the type is not on the
>>>> right side", I'm sure I can write a clang-tidy check to convert most of
>>>> the code. Such a tool would also enforce that new code follows the same
>>>> rule.
> Ignoring the question of "more auto",
> strong +1 to having such a clang-tidy check regardless.
> (it shouldn't be llvm-specific, but it for sure should know about llvm
> type system.)


I'm happy to help you make such a tool, but only if it will be applied 
to llvm in some regular way (such as failing an automatic test if it 
generates a fixit).

Thanks,

Stephen.





More information about the cfe-dev mailing list