diff --git a/Makefile b/Makefile index e84ea6b0e..956c7e030 100644 --- a/Makefile +++ b/Makefile @@ -28,8 +28,8 @@ LIBOBJ = lib/checkautovariables.o \ lib/checkexceptionsafety.o \ lib/checkmemoryleak.o \ lib/checkobsoletefunctions.o \ - lib/checkpostfixoperator.o \ lib/checkother.o \ + lib/checkpostfixoperator.o \ lib/checkstl.o \ lib/checkunusedfunctions.o \ lib/cppcheck.o \ @@ -66,9 +66,9 @@ TESTOBJ = test/options.o \ test/testmathlib.o \ test/testmemleak.o \ test/testobsoletefunctions.o \ - test/testpostfixoperator.o \ test/testoptions.o \ test/testother.o \ + test/testpostfixoperator.o \ test/testpreprocessor.o \ test/testrunner.o \ test/testsettings.o \ @@ -143,12 +143,12 @@ lib/checkmemoryleak.o: lib/checkmemoryleak.cpp lib/checkmemoryleak.h lib/check.h lib/checkobsoletefunctions.o: lib/checkobsoletefunctions.cpp lib/checkobsoletefunctions.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/errorlogger.h $(CXX) $(CXXFLAGS) -Ilib -c -o lib/checkobsoletefunctions.o lib/checkobsoletefunctions.cpp -lib/checkpostfixoperator.o: lib/checkpostfixoperator.cpp lib/checkpostfixoperator.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/errorlogger.h - $(CXX) $(CXXFLAGS) -Ilib -c -o lib/checkpostfixoperator.o lib/checkpostfixoperator.cpp - lib/checkother.o: lib/checkother.cpp lib/checkother.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/errorlogger.h lib/mathlib.h lib/executionpath.h $(CXX) $(CXXFLAGS) -Ilib -c -o lib/checkother.o lib/checkother.cpp +lib/checkpostfixoperator.o: lib/checkpostfixoperator.cpp lib/checkpostfixoperator.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/errorlogger.h + $(CXX) $(CXXFLAGS) -Ilib -c -o lib/checkpostfixoperator.o lib/checkpostfixoperator.cpp + lib/checkstl.o: lib/checkstl.cpp lib/checkstl.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/errorlogger.h lib/executionpath.h $(CXX) $(CXXFLAGS) -Ilib -c -o lib/checkstl.o lib/checkstl.cpp @@ -251,15 +251,15 @@ test/testmemleak.o: test/testmemleak.cpp lib/tokenize.h lib/checkmemoryleak.h li test/testobsoletefunctions.o: test/testobsoletefunctions.cpp lib/tokenize.h lib/checkobsoletefunctions.h lib/check.h lib/token.h lib/settings.h lib/errorlogger.h test/testsuite.h test/redirect.h $(CXX) $(CXXFLAGS) -Ilib -Icli -c -o test/testobsoletefunctions.o test/testobsoletefunctions.cpp -test/testpostfixoperator.o: test/testpostfixoperator.cpp lib/tokenize.h lib/checkpostfixoperator.h lib/check.h lib/token.h lib/settings.h lib/errorlogger.h test/testsuite.h test/redirect.h - $(CXX) $(CXXFLAGS) -Ilib -Icli -c -o test/testpostfixoperator.o test/testpostfixoperator.cpp - test/testoptions.o: test/testoptions.cpp test/options.h test/testsuite.h lib/errorlogger.h test/redirect.h $(CXX) $(CXXFLAGS) -Ilib -Icli -c -o test/testoptions.o test/testoptions.cpp test/testother.o: test/testother.cpp lib/tokenize.h lib/checkother.h lib/check.h lib/token.h lib/settings.h lib/errorlogger.h test/testsuite.h test/redirect.h $(CXX) $(CXXFLAGS) -Ilib -Icli -c -o test/testother.o test/testother.cpp +test/testpostfixoperator.o: test/testpostfixoperator.cpp lib/tokenize.h lib/checkpostfixoperator.h lib/check.h lib/token.h lib/settings.h lib/errorlogger.h test/testsuite.h test/redirect.h + $(CXX) $(CXXFLAGS) -Ilib -Icli -c -o test/testpostfixoperator.o test/testpostfixoperator.cpp + test/testpreprocessor.o: test/testpreprocessor.cpp test/testsuite.h lib/errorlogger.h test/redirect.h lib/preprocessor.h lib/tokenize.h lib/token.h lib/settings.h $(CXX) $(CXXFLAGS) -Ilib -Icli -c -o test/testpreprocessor.o test/testpreprocessor.cpp diff --git a/lib/lib.pri b/lib/lib.pri index d24bd436e..10c4fb3be 100644 --- a/lib/lib.pri +++ b/lib/lib.pri @@ -8,6 +8,7 @@ HEADERS += $$PWD/check.h \ $$PWD/checkmemoryleak.h \ $$PWD/checkobsoletefunctions.h \ $$PWD/checkother.h \ + $$PWD/checkpostfixoperator.h \ $$PWD/checkstl.h \ $$PWD/checkunusedfunctions.h \ $$PWD/cppcheck.h \ @@ -31,6 +32,7 @@ SOURCES += $$PWD/checkautovariables.cpp \ $$PWD/checkmemoryleak.cpp \ $$PWD/checkobsoletefunctions.cpp \ $$PWD/checkother.cpp \ + $$PWD/checkpostfixoperator.cpp \ $$PWD/checkstl.cpp \ $$PWD/checkunusedfunctions.cpp \ $$PWD/cppcheck.cpp \