diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -40,13 +40,15 @@ LDFLAGS += $(LDFLAGS_SQLITE3) LDFLAGS_LIB += -Wl,-soname,lib$(TARGET_NAME_LIB).so.$(VERSION_MAJOR) LDFLAGS_TEST += -L$(LIBRARY_DIR) -l$(TARGET_NAME_LIB) $(LDFLAGS_GTEST) -Wl,-rpath,$(LIBRARY_DIR) +CLANG_TIDY_CHECKS := "clang*,cppcoreguidelines*,modernize*,readability*" + ifdef VERBOSE QUIET := else QUIET := @ endif -.PHONY = all clean doc memcheck test +.PHONY = all checkstyle clean doc memcheck test all: $(TARGETS) @@ -60,6 +62,11 @@ clean: $(info (RM) $(DOCUMENTATION_DIR)) $(QUIET)$(RM) -r $(DOCUMENTATION_DIR) +checkstyle: + clang-tidy --checks=$(CLANG_TIDY_CHECKS) \ + $(INCLUDES) $(SOURCES_LIB) \ + -- -x c++ $(CPPFLAGS) $(CXXFLAGS) + doc: $(INCLUDES) (cat Doxyfile ; echo "PROJECT_NUMBER=$(VERSION)" ) | doxygen - |