Skip to content

Commit

Permalink
Update cmake and clang-tidy config
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jun 27, 2018
1 parent 9e39f01 commit c751ec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Checks: '*,-*readability-*,-cppcoreguidelines-pro-bounds-pointer-arithmetic'
Checks: '*,-cppcoreguidelines-pro-type-vararg,-google-readability-braces-around-statements,-google-readability-todo,-llvm-include-order,-fuchsia-default-arguments,-hicpp-vararg,-google-default-arguments'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
Expand Down
4 changes: 2 additions & 2 deletions CMakeModules/clang-tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ execute_process(COMMAND sh -c "git ls-tree -r HEAD --name-only | grep -E '(\\.cp
OUTPUT_VARIABLE ALL_CXX_SOURCE_FILES
)

############ clang-tidy ############
############ clang-format ############

# Try to find clang-format and add target if successful
find_program(CLANG_FORMAT "clang-format")
Expand All @@ -26,7 +26,7 @@ find_program(CLANG_TIDY "clang-tidy")
if(CLANG_TIDY)
add_custom_target(
clang-tidy
COMMAND sh -c "/usr/bin/clang-tidy ${ALL_CXX_SOURCE_FILES} -- -std=c++11 ${CMAKE_INCLUDE_PATH}"
COMMAND sh -c "/usr/bin/clang-tidy amici/src/*.cpp -- -std=c++11 ${CMAKE_INCLUDE_PATH}"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
else()
Expand Down

0 comments on commit c751ec1

Please sign in to comment.