Skip to content

Commit

Permalink
added more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicham Azimani committed Jun 15, 2021
1 parent 5ec8044 commit 6447dfc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ Checks: '-*,
modernize-use-equals-delete,
modernize-use-noexcept,
modernize-use-nullptr,
modernize-use-auto,
modernize-use-override,
modernize-use-using,
modernize-loop-convert,
bugprone-move-forwarding-reference,
performance-noexcept-move-constructor'
performance-noexcept-move-constructor,
performance-faster-string-find'
HeaderFilterRegex: '*'
AnalyzeTemporaryDtors: false
FormatStyle: file
Expand Down
2 changes: 1 addition & 1 deletion source/autocomplete/autocomplete.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct Autocomplete {
};

Autocomplete(navitia::type::Type_e otype) : object_type(otype) {}
Autocomplete() {}
Autocomplete() {} // NOLINT

/// Type of object
navitia::type::Type_e object_type;
Expand Down
2 changes: 1 addition & 1 deletion source/cmake_modules/EnableClangTidy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if( NOT CLANG_TIDY_BIN STREQUAL "CLANG_TIDY_BIN-NOTFOUND"
# Get all .cpp files in navitia/source/ and remove everything
# From utils and /third_party
file(GLOB_RECURSE FILES_TO_SCAN "${CMAKE_SOURCE_DIR}/*.cpp" "${CMAKE_SOURCE_DIR}/*.h" "${CMAKE_SOURCE_DIR}/*.hpp")
list(FILTER FILES_TO_SCAN EXCLUDE REGEX "(third_party|utils)")
list(FILTER FILES_TO_SCAN EXCLUDE REGEX "(third_party)")
list(APPEND RUN_CLANG_TIDY_BIN_ARGS -header-filter=.* -clang-tidy-binary ${CLANG_TIDY_BIN} "${FILES_TO_SCAN}")

add_custom_target(
Expand Down

0 comments on commit 6447dfc

Please sign in to comment.