xref: /freebsd/sys/contrib/openzfs/config/CppCheck.am (revision d485c77f203fb0f4cdc08dea5ff81631b51d8809)
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