diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-07-24 19:53:39 -0700 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-07-24 19:54:12 -0700 |
commit | 1e24b4d3fdf1ba31cdae4d46435d1cfa5e516cd5 (patch) | |
tree | b5071ec848b4792bfcd337c8aec1137b7726769e /libcxx/.clang-tidy | |
parent | 3326feb39729e04b5bfdb9f87c8118573451b501 (diff) | |
download | llvm-1e24b4d3fdf1ba31cdae4d46435d1cfa5e516cd5.zip llvm-1e24b4d3fdf1ba31cdae4d46435d1cfa5e516cd5.tar.gz llvm-1e24b4d3fdf1ba31cdae4d46435d1cfa5e516cd5.tar.bz2 |
[libc++] Fix template parameter naming and enforce it through readability-identifier-naming
Reviewed By: #libc, Mordante
Spies: Mordante, aheejin, libcxx-commits
Differential Revision: https://reviews.llvm.org/D156059
Diffstat (limited to 'libcxx/.clang-tidy')
-rw-r--r-- | libcxx/.clang-tidy | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/.clang-tidy b/libcxx/.clang-tidy index 8f7cef9..2146617 100644 --- a/libcxx/.clang-tidy +++ b/libcxx/.clang-tidy @@ -50,6 +50,14 @@ CheckOptions: value: lower_case - key: readability-identifier-naming.LocalVariablePrefix value: __ + - key: readability-identifier-naming.TemplateParameterCase + value: CamelCase + - key: readability-identifier-naming.TemplateParameterPrefix + value: _ + - key: readability-identifier-naming.TemplateParameterIgnoredRegexp + value: (.*\:auto|expr-type) # This is https://llvm.org/PR56464 + - key: readability-identifier-naming.ValueTemplateParameterIgnoredRegexp # TODO: enforce naming of variable parameters + value: .* # TODO: investigate these checks # bugprone-branch-clone, |