- Commit
- 09bebcb1de0fea76be8653bed427712fb615a610
- Parent
- eb2fe43c5b0bdf11d8b526441b777fb456f108e2
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Added clang-check target.
My personal build of CMark ✏️
Added clang-check target.
1 file changed, 6 insertions, 2 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | Makefile | 8 | 6 | 2 |
diff --git a/Makefile b/Makefile @@ -19,7 +19,7 @@ VERSION?=$(SPECVERSION) RELEASE?=CommonMark-$(VERSION) INSTALL_PREFIX?=/usr/local -.PHONY: all cmake_build spec leakcheck clean fuzztest dingus upload test update-site upload-site debug ubsan asan mingw archive bench astyle update-spec afl +.PHONY: all cmake_build spec leakcheck clean fuzztest dingus upload test update-site upload-site debug ubsan asan mingw archive bench astyle update-spec afl clang-check all: cmake_build man/man3/cmark.3 @@ -36,7 +36,8 @@ $(BUILDDIR): cmake .. \ -G "$(GENERATOR)" \ -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \ - -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX) + -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX) \ + -DCMAKE_EXPORT_COMPILE_COMMANDS=ON install: $(BUILDDIR) make -C $(BUILDDIR) install @@ -77,6 +78,9 @@ afl: -t 100 \ $(CMARK) $(CMARK_OPTS) +clang-check: + find src -name '*.c' | xargs $$CLANG_CHECK_PATH/bin/clang-check -p build -analyze + mingw: mkdir -p $(MINGW_BUILDDIR); \ cd $(MINGW_BUILDDIR); \