diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-07-08 18:17:26 +0200 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-07-08 18:17:47 +0200 |
commit | b48c5010a46246cc3337244f7e2736dacf5889dc (patch) | |
tree | 56dec04d8c76d6fb6f85e2711cdbe803b9d9998c /libcxx/.clang-tidy | |
parent | 02769f2b3fdebb5066d7a973b171d2873a804560 (diff) | |
download | llvm-b48c5010a46246cc3337244f7e2736dacf5889dc.tar.gz |
[libc++] Make parameter names consistent and enforce the naming style using readability-identifier-naming
Ensure that parameter names have the style `__lower_case`
Reviewed By: ldionne, #libc
Spies: aheejin, sstefan1, libcxx-commits, miyuki
Differential Revision: https://reviews.llvm.org/D129051
Diffstat (limited to 'libcxx/.clang-tidy')
-rw-r--r-- | libcxx/.clang-tidy | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/.clang-tidy b/libcxx/.clang-tidy index 9a2c8b328a31..d4fc0b8c5e33 100644 --- a/libcxx/.clang-tidy +++ b/libcxx/.clang-tidy @@ -17,6 +17,7 @@ Checks: > modernize-redundant-void-arg, readability-duplicate-include, + readability-identifier-naming, readability-function-cognitive-complexity, readability-function-size, readability-misplaced-array-index, @@ -31,6 +32,12 @@ CheckOptions: value: 143 # TODO: bring that number down - key: readability-function-size.LineThreshold value: 194 # TODO: bring that number down + - key: readability-identifier-naming.GetConfigPerFile + value: false + - key: readability-identifier-naming.ParameterCase + value: lower_case + - key: readability-identifier-naming.ParameterPrefix + value: __ # TODO: investigate these checks # bugprone-branch-clone, |