Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2021-11-20 00:54:35 +0300
committerMichael Jones <michaelrj@google.com>2021-12-07 21:49:45 +0300
commit43e2f7cd248acf799bf97af2388940c9c39151e0 (patch)
tree4b47bf3fda0fea5a590ef950902262fbee6bdaca /libc/cmake/modules/LLVMLibCObjectRules.cmake
parentb5c42ef3da4ddf32a57781b8a44c30eee3dc0545 (diff)
[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
Diffstat (limited to 'libc/cmake/modules/LLVMLibCObjectRules.cmake')
-rw-r--r--libc/cmake/modules/LLVMLibCObjectRules.cmake1
1 files changed, 1 insertions, 0 deletions
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 $<TARGET_FILE:clang-tidy>
"--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}