[clang-tidy] Support IgnoredRegexp configuration to selectively suppress identifier...
authorsmhc <shanehird@gmail.com>
Wed, 25 Nov 2020 01:18:38 +0000 (01:18 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Wed, 25 Nov 2020 01:18:44 +0000 (01:18 +0000)
commit9c4df9eecb6ca6b53d919cec9b460de46dd40302
tree5e0997a1602dab83c0aa119d2077112d48236e5c
parent5c4e397e6ce5c89d63f590857e5cb0e80237de62
[clang-tidy] Support IgnoredRegexp configuration to selectively suppress identifier naming checks

The idea of suppressing naming checks for variables is to support code bases that allow short variables named e.g 'x' and 'i' without prefix/suffixes or casing styles. This was originally proposed as a 'ShortSizeThreshold' however has been made more generic with a regex to suppress identifier naming checks for those that match.

Reviewed By: njames93, aaron.ballman

Differential Revision: https://reviews.llvm.org/D90282
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-ignored-regexp.cpp [new file with mode: 0644]