diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2021-12-08 10:02:48 +0300 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2021-12-09 03:19:25 +0300 |
commit | a5a79f69d6262e46f38126198be7f58932e11080 (patch) | |
tree | b172e07e355e7c636148b696609174ceeb3f14a4 /libc/cmake/modules/LLVMLibCObjectRules.cmake | |
parent | f75cce0be861b9dc7370590265036c9a9027bdc7 (diff) |
[libc] Add a .clang-tidy file for the toplevel libc directory.
Generation of the .yaml has been removed to prevent lint from
running with every ninja invocation. The new .clang-tidy file is copied
to the libc build directory so that generated files also get checked.
Reviewed By: michaelrj
Differential Revision: https://reviews.llvm.org/D115405
Diffstat (limited to 'libc/cmake/modules/LLVMLibCObjectRules.cmake')
-rw-r--r-- | libc/cmake/modules/LLVMLibCObjectRules.cmake | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake index b1a22ba321ac..69ec2160f1c0 100644 --- a/libc/cmake/modules/LLVMLibCObjectRules.cmake +++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake @@ -232,7 +232,6 @@ 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} @@ -249,7 +248,6 @@ function(add_entrypoint_object target_name) COMMENT "Linting... ${target_name}" DEPENDS clang-tidy ${internal_target_name} ${ADD_ENTRYPOINT_OBJ_SRCS} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${target_name}.yaml ) add_custom_target(${fq_target_name}.__lint__ |