mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
targets-tools.mk: Add some clang-tidy-xxx targets
Still to be refined Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d71e6f92f5
commit
d8e76b4400
1 changed files with 13 additions and 0 deletions
|
|
@ -52,5 +52,18 @@ clean.link:
|
||||||
rmdir -p $(dir $(HDRDIR_SCOPE_SUFFIX)) 2>/dev/null || : ;\
|
rmdir -p $(dir $(HDRDIR_SCOPE_SUFFIX)) 2>/dev/null || : ;\
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CLANG_TIDY_CHECKS ?= -*,clang-analyzer-*,-clang-analyzer-cplusplus*,modernize-*,portability-*,cppcoreguidelines-*
|
||||||
|
CLANG_TIDY ?= clang-tidy -checks=$(CLANG_TIDY_CHECKS)
|
||||||
|
|
||||||
|
clang-tidy-h:
|
||||||
|
#$(CLANG_TIDY) $(filter-out $(LOCAL_C_HEADER),$(LOCAL_H)) -- $(INCLUDE) -x c++
|
||||||
|
$(CLANG_TIDY) $(wildcard [A-Z]*.h) -- $(INCLUDE) -x c++
|
||||||
|
#$(CLANG_TIDY) $(LOCAL_C_HEADER) -- $(INCLUDE)
|
||||||
|
$(CLANG_TIDY) $(wildcard [a-z]*.h) -- $(INCLUDE)
|
||||||
|
clang-tidy-c:
|
||||||
|
$(CLANG_TIDY) $(LOCAL_C) -- $(INCLUDE) -fix
|
||||||
|
clang-tidy-cpp:
|
||||||
|
$(CLANG_TIDY) $(LOCAL_CPP) -- $(INCLUDE) -x c++ -fix
|
||||||
|
clang-tidy: clang-tidy-h clang-tidy-c clang-tidy-cpp
|
||||||
|
|
||||||
endif # ifndef TARGETS_TOOLS_MK_INCLUDED
|
endif # ifndef TARGETS_TOOLS_MK_INCLUDED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue