Skip to content

Commit

Permalink
Rename Adiar's clang-format and clang-tidy targets to be less generic
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed Feb 12, 2024
1 parent fb2c4f1 commit 4cf2c47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/clang-cxx-dev-tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ file(GLOB_RECURSE ALL_TEST_FILES
find_program(CLANG_FORMAT "clang-format")
if(CLANG_FORMAT)
add_custom_target(
clang-format
adiar_clang-format
COMMAND /usr/bin/clang-format
${ALL_SRC_FILES} ${ALL_TEST_FILES}
-i
Expand All @@ -38,7 +38,7 @@ endif()
find_program(CLANG_TIDY "clang-tidy")
if(CLANG_TIDY)
add_custom_target(
clang-tidy
adiar_clang-tidy
COMMAND /usr/bin/clang-tidy
${ALL_SRC_SOURCE_FILES} ${ALL_TEST_SOURCE_FILES}
-config=''
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ clean: | clean/files
# ============================================================================ #
format:
@mkdir -p build/ && cd build/ && cmake -D CMAKE_BUILD_TYPE=$(BUILD_TYPE) ..
@cd build/ && make clang-format
@cd build/ && make adiar_clang-format

# ============================================================================ #
# UNIT TESTING
Expand Down

0 comments on commit 4cf2c47

Please sign in to comment.