Browse Source

Add clang-tidy tests to target checkstyle

master
Robin Krahl 1 year ago
parent
commit
049a90ed8a
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      Makefile

+ 8
- 1
Makefile View File

@@ -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 -


Loading…
Cancel
Save