diff --git a/.clang-tidy b/.clang-tidy index 0a04d286..feee8194 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -4,14 +4,17 @@ Checks: '-*, clang-analyzer-*, google-*, -google-runtime-references, + -google-explicit-constructor, hicpp-*, -hicpp-no-array-decay, -hicpp-uppercase-literal-suffix, + -hicpp-explicit-conversions, misc-*, -misc-non-private-member-variables-in-classes, llvm-*, -llvm-header-guard, modernize-*, + -modernize-use-trailing-return-type, performance-*, portability-*, readability-*, diff --git a/Makefile b/Makefile index abc97389..4fb303fc 100644 --- a/Makefile +++ b/Makefile @@ -435,7 +435,7 @@ fuzzing-stop: # call cppcheck # Note: this target is called by Travis cppcheck: - cppcheck --enable=warning --inline-suppr --inconclusive --force --std=c++11 $(SRCS) --error-exitcode=1 + cppcheck --enable=warning --inline-suppr --inconclusive --force --std=c++11 $(AMALGAMATED_FILE) --error-exitcode=1 # call Clang Static Analyzer clang_analyze: @@ -457,7 +457,7 @@ cpplint: # call Clang-Tidy clang_tidy: - $(COMPILER_DIR)/clang-tidy $(SRCS) -- -Iinclude -std=c++11 + $(COMPILER_DIR)/clang-tidy $(AMALGAMATED_FILE) -- -Iinclude -std=c++11 # call PVS-Studio Analyzer pvs_studio: