From e35c71493b3a191b7a836d62feb0039b79b0b428 Mon Sep 17 00:00:00 2001 From: Tue Ly Date: Tue, 14 Mar 2023 10:50:02 -0400 Subject: [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 --- libc/.clang-tidy | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libc/.clang-tidy') 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 -- cgit v1.1