From ea4e41207ced679a020cf90a4c69423f6cfa1b97 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 30 Sep 2019 22:13:16 -0700 Subject: [PATCH] Update cppcheck standards that are checked --- Makefile.in | 3 ++- cadpli/Makefile.in | 2 +- driver-vpi/Makefile.in | 2 +- driver/Makefile.in | 2 +- ivlpp/Makefile.in | 2 +- libveriuser/Makefile.in | 5 +++-- tgt-blif/Makefile.in | 3 ++- tgt-fpga/Makefile.in | 3 ++- tgt-null/Makefile.in | 3 ++- tgt-pal/Makefile.in | 3 ++- tgt-pcb/Makefile.in | 3 ++- tgt-sizer/Makefile.in | 3 ++- tgt-stub/Makefile.in | 3 ++- tgt-verilog/Makefile.in | 3 ++- tgt-vhdl/Makefile.in | 3 ++- tgt-vlog95/Makefile.in | 3 ++- tgt-vvp/Makefile.in | 3 ++- vhdlpp/Makefile.in | 2 +- vpi/Makefile.in | 3 ++- vvp/Makefile.in | 3 ++- 20 files changed, 36 insertions(+), 21 deletions(-) diff --git a/Makefile.in b/Makefile.in index fff9534e5..437cec911 100644 --- a/Makefile.in +++ b/Makefile.in @@ -175,7 +175,8 @@ endif rm -rf autom4te.cache cppcheck: $(O:.o=.cc) $(srcdir)/dosify.c $(srcdir)/version.c - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ -UYYPARSE_PARAM -UYYPRINT -Ushort -Usize_t -Uyyoverflow \ -UYYTYPE_INT8 -UYYTYPE_INT16 -UYYTYPE_UINT8 -UYYTYPE_UINT16 \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ diff --git a/cadpli/Makefile.in b/cadpli/Makefile.in index ba347b72c..8d9af5a51 100644 --- a/cadpli/Makefile.in +++ b/cadpli/Makefile.in @@ -59,7 +59,7 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f $(INCLUDE_PATH) $^ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status cd ..; ./config.status --file=cadpli/$@ diff --git a/driver-vpi/Makefile.in b/driver-vpi/Makefile.in index 579780a0a..d93d5a207 100644 --- a/driver-vpi/Makefile.in +++ b/driver-vpi/Makefile.in @@ -66,7 +66,7 @@ distclean: clean rm -f Makefile config.log cppcheck: main.c - cppcheck --enable=all -f $(INCLUDE_PATH) $^ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status cd ..; ./config.status --file=driver-vpi/$@ diff --git a/driver/Makefile.in b/driver/Makefile.in index b2ad7150c..7ec46f529 100644 --- a/driver/Makefile.in +++ b/driver/Makefile.in @@ -67,7 +67,7 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ -UYY_USER_INIT \ -UYYPARSE_PARAM -UYYPRINT -Ushort -Uyyoverflow \ -UYYTYPE_INT8 -UYYTYPE_INT16 -UYYTYPE_UINT8 -UYYTYPE_UINT16 \ diff --git a/ivlpp/Makefile.in b/ivlpp/Makefile.in index 07053c298..2d8de7919 100644 --- a/ivlpp/Makefile.in +++ b/ivlpp/Makefile.in @@ -60,7 +60,7 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f $(INCLUDE_PATH) $^ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status cd ..; ./config.status --file=ivlpp/$@ diff --git a/libveriuser/Makefile.in b/libveriuser/Makefile.in index 989d7c980..461b4a526 100644 --- a/libveriuser/Makefile.in +++ b/libveriuser/Makefile.in @@ -76,8 +76,9 @@ distclean: clean rm -f config.h stamp-config-h cppcheck: $(O:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ - --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ + --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in cd ..; ./config.status --file=libveriuser/$@ diff --git a/tgt-blif/Makefile.in b/tgt-blif/Makefile.in index 850666ad0..51d204c78 100644 --- a/tgt-blif/Makefile.in +++ b/tgt-blif/Makefile.in @@ -58,7 +58,8 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.cc) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-fpga/Makefile.in b/tgt-fpga/Makefile.in index 72546b5a6..2a3310246 100644 --- a/tgt-fpga/Makefile.in +++ b/tgt-fpga/Makefile.in @@ -61,7 +61,8 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-null/Makefile.in b/tgt-null/Makefile.in index c414f2fbe..0bf2434d9 100644 --- a/tgt-null/Makefile.in +++ b/tgt-null/Makefile.in @@ -56,7 +56,8 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-pal/Makefile.in b/tgt-pal/Makefile.in index 291acac9d..f3b06cb81 100644 --- a/tgt-pal/Makefile.in +++ b/tgt-pal/Makefile.in @@ -55,7 +55,8 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-pcb/Makefile.in b/tgt-pcb/Makefile.in index 228ede553..79fb9531f 100644 --- a/tgt-pcb/Makefile.in +++ b/tgt-pcb/Makefile.in @@ -61,7 +61,8 @@ distclean: clean rm -f stamp-pcb_config-h pcb_config.h cppcheck: $(O:.o=.cc) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ -UYY_USER_INIT \ -UYYPARSE_PARAM -UYYPRINT -Ushort -Usize_t -Uyyoverflow \ -UYYTYPE_INT8 -UYYTYPE_INT16 -UYYTYPE_UINT8 -UYYTYPE_UINT16 \ diff --git a/tgt-sizer/Makefile.in b/tgt-sizer/Makefile.in index dad317786..370198ad9 100644 --- a/tgt-sizer/Makefile.in +++ b/tgt-sizer/Makefile.in @@ -56,7 +56,8 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.cc) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-stub/Makefile.in b/tgt-stub/Makefile.in index c136ca37c..f00597ae3 100644 --- a/tgt-stub/Makefile.in +++ b/tgt-stub/Makefile.in @@ -57,7 +57,8 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-verilog/Makefile.in b/tgt-verilog/Makefile.in index 40d6c27d9..b06b4f889 100644 --- a/tgt-verilog/Makefile.in +++ b/tgt-verilog/Makefile.in @@ -55,7 +55,8 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-vhdl/Makefile.in b/tgt-vhdl/Makefile.in index b86c11a98..3d21f057e 100644 --- a/tgt-vhdl/Makefile.in +++ b/tgt-vhdl/Makefile.in @@ -60,7 +60,8 @@ distclean: clean rm -f stamp-vhdl_config-h vhdl_config.h cppcheck: $(O:.o=.cc) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-vlog95/Makefile.in b/tgt-vlog95/Makefile.in index 2bf721115..609a0765f 100644 --- a/tgt-vlog95/Makefile.in +++ b/tgt-vlog95/Makefile.in @@ -56,7 +56,8 @@ distclean: clean rm -f Makefile config.log cppcheck: $(O:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/tgt-vvp/Makefile.in b/tgt-vvp/Makefile.in index d09c9e709..a9b4fd0a6 100644 --- a/tgt-vvp/Makefile.in +++ b/tgt-vvp/Makefile.in @@ -68,7 +68,8 @@ distclean: clean rm -f stamp-vvp_config-h vvp_config.h cppcheck: $(O:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ --relative-paths=$(srcdir) $(INCLUDE_PATH) $^ Makefile: $(srcdir)/Makefile.in ../config.status diff --git a/vhdlpp/Makefile.in b/vhdlpp/Makefile.in index 9bafaf100..348d790bf 100644 --- a/vhdlpp/Makefile.in +++ b/vhdlpp/Makefile.in @@ -85,7 +85,7 @@ distclean: clean rm -f stamp-vhdlpp_config-h vhdlpp_config.h cppcheck: $(O:.o=.cc) - cppcheck --enable=all -f \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ -UYY_USER_INIT \ -UYYPARSE_PARAM -UYYPRINT -Ushort -Usize_t -Uyyoverflow \ -UYYTYPE_INT8 -UYYTYPE_INT16 -UYYTYPE_UINT8 -UYYTYPE_UINT16 \ diff --git a/vpi/Makefile.in b/vpi/Makefile.in index a2ee88145..70f045ce1 100644 --- a/vpi/Makefile.in +++ b/vpi/Makefile.in @@ -101,7 +101,8 @@ distclean: clean # The -U flag is used to skip checking paths that depend on that define having # an explicit value (i.e. the define is expected to be real code). cppcheck: $(O:.o=.c) $(OPP:.o=.cc) $(M:.o=.c) $(V:.o=.c) - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ -UYY_USER_INIT \ -UYYPARSE_PARAM -UYYPRINT -Ushort -Uyyoverflow \ -UYYTYPE_INT8 -UYYTYPE_INT16 -UYYTYPE_UINT8 -UYYTYPE_UINT16 \ diff --git a/vvp/Makefile.in b/vvp/Makefile.in index fc6b88a0e..897aa6e17 100644 --- a/vvp/Makefile.in +++ b/vvp/Makefile.in @@ -108,7 +108,8 @@ distclean: clean rm -f stamp-config-h config.h cppcheck: $(O:.o=.cc) libvpi.c draw_tt.c - cppcheck --enable=all -f --suppressions-list=$(srcdir)/cppcheck.sup \ + cppcheck --enable=all --std=posix --std=c99 --std=c++03 -f \ + --suppressions-list=$(srcdir)/cppcheck.sup \ -UMODULE_DIR1 -UMODULE_DIR2 -UYY_USER_INIT \ -UYYPARSE_PARAM -UYYPRINT -Ushort -Usize_t -Uyyoverflow \ -UYYTYPE_INT8 -UYYTYPE_INT16 -UYYTYPE_UINT8 -UYYTYPE_UINT16 \