xref: /freebsd/sys/contrib/openzfs/config/CppCheck.am (revision a3266ba2697a383d2ede56803320d941866c7e76)
1#
2# Default rules for running cppcheck against the user space components.
3#
4
5PHONY += cppcheck
6
7CPPCHECKFLAGS  = --std=c99 --quiet --max-configs=1 --error-exitcode=2
8CPPCHECKFLAGS += --inline-suppr -U_KERNEL
9
10cppcheck:
11	$(CPPCHECK) -j$(CPU_COUNT) $(CPPCHECKFLAGS) $(DEFAULT_INCLUDES) $(SOURCES)
12