xref: /freebsd/sys/contrib/openzfs/config/CppCheck.am (revision a0409676120c1e558d0ade943019934e0f15118d)
1#
2# Default rules for running cppcheck against the 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