[PATCH] D97753: [clang-tidy] Add a check for enforcing minimum length for variable names

Florin Iucha via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 12 05:07:11 PDT 2021


0x8000-0000 added a comment.

The diff was generated with format-patch, so can be applied with "git am".

The envelope:

> commit d98d336b452876cfbc32ad1b76319912c45b646b (HEAD -> readability-variable-name-length-main)
> Author: Florin Iucha <florin at signbit.net>
> Date:   Mon Mar 1 00:57:01 2021 -0500
>
>   Add a checker for variable name length
>   
>   It requires regular variables and parameters names to be at least
>   three characters long, and loop variables and exception names to be at
>   least two characters long. Exceptions to these minimums can be added
>   via regular expressions.




CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97753/new/

https://reviews.llvm.org/D97753



More information about the cfe-commits mailing list