Makefile: Allow implicit test for bugprone-suspicious-string-compare checker
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
62c3edd957
commit
33fc2dece2
1 changed files with 1 additions and 4 deletions
5
Makefile
5
Makefile
|
@ -187,9 +187,6 @@ pkgs: static
|
||||||
# - cppcoreguidelines-avoid-non-const-global-variables
|
# - cppcoreguidelines-avoid-non-const-global-variables
|
||||||
# TODO: check, fix, and more in general constify wherever possible
|
# TODO: check, fix, and more in general constify wherever possible
|
||||||
#
|
#
|
||||||
# - bugprone-suspicious-string-compare
|
|
||||||
# Return value of memcmp(), not really suspicious
|
|
||||||
#
|
|
||||||
# - altera-unroll-loops
|
# - altera-unroll-loops
|
||||||
# - altera-id-dependent-backward-branch
|
# - altera-id-dependent-backward-branch
|
||||||
# TODO: check paths where it might make sense to improve performance
|
# TODO: check paths where it might make sense to improve performance
|
||||||
|
@ -224,12 +221,12 @@ clang-tidy: $(wildcard *.c) $(wildcard *.h)
|
||||||
-bugprone-narrowing-conversions,\
|
-bugprone-narrowing-conversions,\
|
||||||
-cppcoreguidelines-narrowing-conversions,\
|
-cppcoreguidelines-narrowing-conversions,\
|
||||||
-cppcoreguidelines-avoid-non-const-global-variables,\
|
-cppcoreguidelines-avoid-non-const-global-variables,\
|
||||||
-bugprone-suspicious-string-compare,\
|
|
||||||
-altera-unroll-loops,-altera-id-dependent-backward-branch,\
|
-altera-unroll-loops,-altera-id-dependent-backward-branch,\
|
||||||
-bugprone-easily-swappable-parameters,\
|
-bugprone-easily-swappable-parameters,\
|
||||||
-readability-function-cognitive-complexity,\
|
-readability-function-cognitive-complexity,\
|
||||||
-altera-struct-pack-align,\
|
-altera-struct-pack-align,\
|
||||||
-concurrency-mt-unsafe \
|
-concurrency-mt-unsafe \
|
||||||
|
-config='{CheckOptions: [{key: bugprone-suspicious-string-compare.WarnOnImplicitComparison, value: "false"}]}' \
|
||||||
--warnings-as-errors=* $(wildcard *.c) -- $(filter-out -pie,$(CFLAGS))
|
--warnings-as-errors=* $(wildcard *.c) -- $(filter-out -pie,$(CFLAGS))
|
||||||
|
|
||||||
ifeq ($(shell $(CC) -v 2>&1 | grep -c "gcc version"),1)
|
ifeq ($(shell $(CC) -v 2>&1 | grep -c "gcc version"),1)
|
||||||
|
|
Loading…
Reference in a new issue