Skip to content

Commit 6447dfc

Browse files
author
Hicham Azimani
committed
added more fixes
1 parent 5ec8044 commit 6447dfc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.clang-tidy

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ Checks: '-*,
1515
modernize-use-equals-delete,
1616
modernize-use-noexcept,
1717
modernize-use-nullptr,
18+
modernize-use-auto,
1819
modernize-use-override,
1920
modernize-use-using,
21+
modernize-loop-convert,
2022
bugprone-move-forwarding-reference,
21-
performance-noexcept-move-constructor'
23+
performance-noexcept-move-constructor,
24+
performance-faster-string-find'
2225
HeaderFilterRegex: '*'
2326
AnalyzeTemporaryDtors: false
2427
FormatStyle: file

source/autocomplete/autocomplete.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ struct Autocomplete {
9898
};
9999

100100
Autocomplete(navitia::type::Type_e otype) : object_type(otype) {}
101-
Autocomplete() {}
101+
Autocomplete() {} // NOLINT
102102

103103
/// Type of object
104104
navitia::type::Type_e object_type;

source/cmake_modules/EnableClangTidy.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if( NOT CLANG_TIDY_BIN STREQUAL "CLANG_TIDY_BIN-NOTFOUND"
2929
# Get all .cpp files in navitia/source/ and remove everything
3030
# From utils and /third_party
3131
file(GLOB_RECURSE FILES_TO_SCAN "${CMAKE_SOURCE_DIR}/*.cpp" "${CMAKE_SOURCE_DIR}/*.h" "${CMAKE_SOURCE_DIR}/*.hpp")
32-
list(FILTER FILES_TO_SCAN EXCLUDE REGEX "(third_party|utils)")
32+
list(FILTER FILES_TO_SCAN EXCLUDE REGEX "(third_party)")
3333
list(APPEND RUN_CLANG_TIDY_BIN_ARGS -header-filter=.* -clang-tidy-binary ${CLANG_TIDY_BIN} "${FILES_TO_SCAN}")
3434

3535
add_custom_target(

0 commit comments

Comments
 (0)