mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 06:29:03 +08:00
👷 overworked clang-tidy target
This commit is contained in:
parent
9f26dac9b3
commit
df0f7f2b5d
23
.clang-tidy
Normal file
23
.clang-tidy
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
Checks: '-*,
|
||||||
|
bugprone-*,
|
||||||
|
cert-*,
|
||||||
|
clang-analyzer-*,
|
||||||
|
google-*,
|
||||||
|
-google-runtime-references,
|
||||||
|
hicpp-*,
|
||||||
|
-hicpp-no-array-decay,
|
||||||
|
-hicpp-uppercase-literal-suffix,
|
||||||
|
misc-*,
|
||||||
|
-misc-non-private-member-variables-in-classes,
|
||||||
|
llvm-*,
|
||||||
|
-llvm-header-guard,
|
||||||
|
modernize-*,
|
||||||
|
performance-*,
|
||||||
|
portability-*,
|
||||||
|
readability-*,
|
||||||
|
-readability-magic-numbers,
|
||||||
|
-readability-uppercase-literal-suffix'
|
||||||
|
|
||||||
|
CheckOptions:
|
||||||
|
- key: hicpp-special-member-functions.AllowSoleDefaultDtor
|
||||||
|
value: 1
|
9
Makefile
9
Makefile
@ -192,9 +192,11 @@ pedantic_gcc:
|
|||||||
-Wdouble-promotion \
|
-Wdouble-promotion \
|
||||||
-Wduplicated-branches \
|
-Wduplicated-branches \
|
||||||
-Wduplicated-cond \
|
-Wduplicated-cond \
|
||||||
|
-Weffc++ \
|
||||||
-Wempty-body \
|
-Wempty-body \
|
||||||
-Wendif-labels \
|
-Wendif-labels \
|
||||||
-Wenum-compare \
|
-Wenum-compare \
|
||||||
|
-Wexpansion-to-defined \
|
||||||
-Werror \
|
-Werror \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
-Wextra-semi \
|
-Wextra-semi \
|
||||||
@ -249,13 +251,9 @@ pedantic_gcc:
|
|||||||
-Wmultistatement-macros \
|
-Wmultistatement-macros \
|
||||||
-Wnarrowing \
|
-Wnarrowing \
|
||||||
-Wno-deprecated-declarations \
|
-Wno-deprecated-declarations \
|
||||||
-Wno-effc++ \
|
|
||||||
-Wno-expansion-to-defined \
|
|
||||||
-Wno-ignored-qualifiers \
|
|
||||||
-Wno-long-long \
|
-Wno-long-long \
|
||||||
-Wno-namespaces \
|
-Wno-namespaces \
|
||||||
-Wno-padded \
|
-Wno-padded \
|
||||||
-Wno-switch-default \
|
|
||||||
-Wno-switch-enum \
|
-Wno-switch-enum \
|
||||||
-Wno-system-headers \
|
-Wno-system-headers \
|
||||||
-Wno-templates \
|
-Wno-templates \
|
||||||
@ -332,6 +330,7 @@ pedantic_gcc:
|
|||||||
-Wsuggest-override \
|
-Wsuggest-override \
|
||||||
-Wswitch \
|
-Wswitch \
|
||||||
-Wswitch-bool \
|
-Wswitch-bool \
|
||||||
|
-Wswitch-default \
|
||||||
-Wswitch-unreachable \
|
-Wswitch-unreachable \
|
||||||
-Wsync-nand \
|
-Wsync-nand \
|
||||||
-Wsynth \
|
-Wsynth \
|
||||||
@ -457,7 +456,7 @@ cpplint:
|
|||||||
third_party/cpplint/cpplint.py --filter=-whitespace,-legal,-readability/alt_tokens,-runtime/references,-runtime/explicit --quiet --recursive include
|
third_party/cpplint/cpplint.py --filter=-whitespace,-legal,-readability/alt_tokens,-runtime/references,-runtime/explicit --quiet --recursive include
|
||||||
|
|
||||||
clang_tidy:
|
clang_tidy:
|
||||||
$(COMPILER_DIR)/clang-tidy -checks='-*, readability-*, -readability-magic-numbers, -readability-uppercase-literal-suffix, modernize-*, bugprone-*, performance-*, clang-analyzer-*, portability-*, cert-*, hicpp-*, -hicpp-no-array-decay, -hicpp-uppercase-literal-suffix, google-*, -google-runtime-references' $(SRCS) -- -Iinclude -std=c++11
|
$(COMPILER_DIR)/clang-tidy $(SRCS) -- -Iinclude -std=c++11
|
||||||
|
|
||||||
pvs_studio:
|
pvs_studio:
|
||||||
rm -fr pvs_studio_build
|
rm -fr pvs_studio_build
|
||||||
|
Loading…
Reference in New Issue
Block a user