clang-tidy: Disable 'readability-identifier-length'
This check complains about any identifier of less than 3 characters. For locals and parameters this is often pointlessly verbose. Disable it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
dc3f200a0b
commit
1fcce70caa
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -237,6 +237,10 @@ docs: README.md
|
||||||
#
|
#
|
||||||
# - concurrency-mt-unsafe
|
# - concurrency-mt-unsafe
|
||||||
# TODO: check again if multithreading is implemented
|
# TODO: check again if multithreading is implemented
|
||||||
|
#
|
||||||
|
# - readability-identifier-length
|
||||||
|
# Complains about any identifier <3 characters, reasonable for
|
||||||
|
# globals, pointlessly verbose for locals and parameters.
|
||||||
|
|
||||||
clang-tidy: $(SRCS) $(HEADERS)
|
clang-tidy: $(SRCS) $(HEADERS)
|
||||||
clang-tidy -checks=*,-modernize-*,\
|
clang-tidy -checks=*,-modernize-*,\
|
||||||
|
@ -260,7 +264,8 @@ clang-tidy: $(SRCS) $(HEADERS)
|
||||||
-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,\
|
||||||
|
-readability-identifier-length \
|
||||||
-config='{CheckOptions: [{key: bugprone-suspicious-string-compare.WarnOnImplicitComparison, value: "false"}]}' \
|
-config='{CheckOptions: [{key: bugprone-suspicious-string-compare.WarnOnImplicitComparison, value: "false"}]}' \
|
||||||
--warnings-as-errors=* $(SRCS) -- $(filter-out -pie,$(FLAGS) $(CFLAGS))
|
--warnings-as-errors=* $(SRCS) -- $(filter-out -pie,$(FLAGS) $(CFLAGS))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue