Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmake/common/clang-tidy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function(sourcemeta_clang_tidy_attempt_enable)
NO_DEFAULT_PATH
PATHS "${PROJECT_BINARY_DIR}/bin"
REQUIRED)
set(CLANG_TIDY_CONFIG "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/clang-tidy.config")

set(CLANG_TIDY_CONFIG "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/clang-tidy.json")
execute_process(COMMAND xcrun --show-sdk-path
OUTPUT_VARIABLE MACOSX_SDK_PATH OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND "${CMAKE_CXX_COMPILER}" -print-resource-dir
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion cmake/common/targets/clang-format.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function(sourcemeta_target_clang_format)
file(GLOB_RECURSE SOURCEMETA_TARGET_CLANG_FORMAT_FILES
${SOURCEMETA_TARGET_CLANG_FORMAT_SOURCES})

set(CLANG_FORMAT_CONFIG "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/clang-format.config")
set(CLANG_FORMAT_CONFIG "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/clang-format.json")
if(CMAKE_SYSTEM_NAME STREQUAL "MSYS")
# Because `clang-format` is typically a Windows `.exe`, transform the path accordingly
execute_process(COMMAND cygpath -w "${CLANG_FORMAT_CONFIG}"
Expand Down
3 changes: 0 additions & 3 deletions cmake/common/targets/clang-format.config

This file was deleted.

4 changes: 4 additions & 0 deletions cmake/common/targets/clang-format.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"BasedOnStyle": "LLVM",
"IndentCaseLabels": true
}
Loading