aboutsummaryrefslogtreecommitdiff
path: root/libc/.clang-tidy
diff options
context:
space:
mode:
authorTue Ly <lntue@google.com>2023-03-14 10:50:02 -0400
committerTue Ly <lntue@google.com>2023-03-15 18:47:31 -0400
commite35c71493b3a191b7a836d62feb0039b79b0b428 (patch)
tree1009ba1e2d56bdb54892bad9de82f4214808c773 /libc/.clang-tidy
parentbba6ca4bfbacdeca05bd9b5eb2f390a0300445a9 (diff)
downloadllvm-e35c71493b3a191b7a836d62feb0039b79b0b428.zip
llvm-e35c71493b3a191b7a836d62feb0039b79b0b428.tar.gz
llvm-e35c71493b3a191b7a836d62feb0039b79b0b428.tar.bz2
[libc][NFC] Clean up clang-tidy warnings for `src/__support` and `src/math`.
Clean up some warnings from running libc-lint for these folders. Reviewed By: michaelrj, sivachandra Differential Revision: https://reviews.llvm.org/D146048
Diffstat (limited to 'libc/.clang-tidy')
-rw-r--r--libc/.clang-tidy10
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/.clang-tidy b/libc/.clang-tidy
index 741b63b..5adada9 100644
--- a/libc/.clang-tidy
+++ b/libc/.clang-tidy
@@ -9,17 +9,21 @@ CheckOptions:
- key: readability-identifier-naming.MemberCase
value: lower_case
- key: readability-identifier-naming.MemberIgnoredRegexp
- value: "^_[A-Za-z0-9_]+$"
+ value: "_?(_[A-Za-z0-9]+)*"
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.VariableIgnoredRegexp
- value: "^_[A-Za-z0-9_]+$"
+ value: "_?(_[A-Za-z0-9]+)*"
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.FunctionIgnoredRegexp
- value: "^_[A-Za-z0-9_]+$"
+ value: "_?(_[A-Za-z0-9]+)*"
- key: readability-identifier-naming.GlobalConstantCase
value: UPPER_CASE
+ - key: readability-identifier-naming.LocalConstantIgnoredRegexp
+ value: "[A-Z]+[A-Z0-9]*(_[A-Z0-9]+)*"
+ - key: readability-identifier-naming.ClassConstantCase
+ value: UPPER_CASE
- key: readability-identifier-naming.ConstexprVariableCase
value: UPPER_CASE
- key: readability-identifier-naming.GetConfigPerFile