diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake --- a/libc/cmake/modules/LLVMLibCObjectRules.cmake +++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake @@ -232,6 +232,7 @@ # 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} diff --git a/libc/src/.clang-tidy b/libc/src/.clang-tidy --- a/libc/src/.clang-tidy +++ b/libc/src/.clang-tidy @@ -1,6 +1,16 @@ -Checks: '-*,llvmlibc-*' +Checks: '-*,llvmlibc-*,readability-identifier-naming' HeaderFilterRegex: '.*' WarningsAsErrors: 'llvmlibc-*' CheckOptions: - key: llvmlibc-restrict-system-libc-headers.Includes value: '-*, linux/*, asm/*.h, asm-generic/*.h' + - key: readability-identifier-naming.VariableCase + value: lower_case + - key: readability-identifier-naming.FunctionCase + value: lower_case + - key: readability-identifier-naming.GlobalFunctionCase + value: aNy_CasE + - key: readability-identifier-naming.ConstexprVariableCase + value: UPPER_CASE + - key: readability-identifier-naming.ClassCase + value: CamelCase