[all-commits] [llvm/llvm-project] d2c5cb: Add a check for enforcing minimum length for varia...
Florin Iucha via All-commits
all-commits at lists.llvm.org
Thu Aug 12 08:32:20 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d2c5cbc3a856c2f8bbda05540fa761bb94ba32f6
https://github.com/llvm/llvm-project/commit/d2c5cbc3a856c2f8bbda05540fa761bb94ba32f6
Author: Florin Iucha <florin at signbit.net>
Date: 2021-08-12 (Thu, 12 Aug 2021)
Changed paths:
M clang-tools-extra/clang-tidy/readability/CMakeLists.txt
A clang-tools-extra/clang-tidy/readability/IdentifierLengthCheck.cpp
A clang-tools-extra/clang-tidy/readability/IdentifierLengthCheck.h
M clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/docs/clang-tidy/checks/readability-identifier-length.rst
A clang-tools-extra/test/clang-tidy/checkers/readability-identifier-length.cpp
Log Message:
-----------
Add a check for enforcing minimum length for variable names
Add a check for enforcing minimum length for variable names. A default
minimum length of three characters is applied to regular variables
(including function parameters). Loop counters and exception variables
have a minimum of two characters. Additionally, the 'i', 'j' and 'k'
are accepted as legacy values.
All three sizes, as well as the list of accepted legacy loop counter
names are configurable.
More information about the All-commits
mailing list