Skip to content

Commit

Permalink
Simplify clang-format command
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Feb 19, 2024
1 parent b4cae51 commit 8d87930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ if(ARGON_BUILD_TESTING)
endif()

add_custom_target(format
COMMAND clang-format -i `git ls-files *.hpp *.cpp`
COMMAND git clang-format -f
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
add_custom_target(tidy COMMAND run-clang-tidy -p ${CMAKE_BINARY_DIR})

0 comments on commit 8d87930

Please sign in to comment.