From 43e2f7cd248acf799bf97af2388940c9c39151e0 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Fri, 19 Nov 2021 13:54:35 -0800 Subject: [libc] update tidy rules to fix variable formatting This commit changes the clang-tidy rules for LLVM-libc to follow the new format. The next commit applies these rules to the codebase. The rules are as follows: CamelCase for classes lower_case for variables lower_case for functions UPPER_CASE for constexpr variables There are also some exceptions, but the most important one is that any function or variable that starts with an underscore is exempt from the formatting. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D114301 --- libc/cmake/modules/LLVMLibCObjectRules.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'libc/cmake/modules/LLVMLibCObjectRules.cmake') diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake index 69ec2160f1c0..68dcbc685162 100644 --- a/libc/cmake/modules/LLVMLibCObjectRules.cmake +++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake @@ -232,6 +232,7 @@ function(add_entrypoint_object target_name) # these. COMMAND $ "--extra-arg=-fno-caret-diagnostics" --quiet + "--export-fixes=${CMAKE_CURRENT_BINARY_DIR}/${target_name}.yaml" # Path to directory containing compile_commands.json -p ${PROJECT_BINARY_DIR} ${ADD_ENTRYPOINT_OBJ_SRCS} -- cgit v1.2.3