Commit Graph

693 Commits

Author SHA1 Message Date
Matthias Krüger aa3f1db33c Add internal check that checks for redundant non-nullness checks in Token::(simple)Match checks.
In code like
if (tok && Token::simpleMatch(tok, "bla")) {}
or
if (tok->previous() && Token::Match(tok->previous(), "foo")) {},
the first check is redundant because Token::(simple)Match already checks if the argument token is null.
2017-05-18 22:12:33 +02:00
Daniel Marjamäki 8d75d1b920 Partial fix for #8028 (ValueFlow: Origin/callstack of value) 2017-05-15 20:05:11 +02:00
Daniel Marjamäki 1f4dc201a9 Makefile: set debug mode 2017-05-13 11:40:03 +02:00
Daniel Marjamäki f769a65cdf 1.79: Update Makefile 2017-05-13 11:27:11 +02:00
Matthias Krüger 0090cd9ce5 run dmake 2017-05-11 19:01:41 +02:00
Daniel Marjamäki f2719ec6ca Refactoring CheckString::sprintfOverlappingData. Use AST, isSameExpression(), getArguments(), .. 2017-04-23 10:51:31 +02:00
Matthias Krüger d2b85316e6 run dmake 2017-04-23 10:40:26 +02:00
Daniel Marjamäki a14c82ec54 updated Makefile 2017-04-20 20:37:18 +02:00
Matthias Krüger c883f850f5 run dmake 2017-04-01 19:28:06 +02:00
Daniel Marjamäki 1faca91c1d Added 'endsWith' utility function. This will make compiling the democlient easier. 2017-04-01 18:14:18 +02:00
Daniel Marjamäki 4bf439936c Makefile: Set debug mode 2017-04-01 11:06:22 +02:00
Daniel Marjamäki e0d225325b 1.78: Updated Makefile 2017-04-01 11:05:13 +02:00
Matthias Krüger 6a718baae5 run dmake 2017-03-05 09:08:16 +01:00
Matthias Krüger 1e5e32c4a2 testrunner: remove non-gcc-style output format 2017-02-26 21:39:06 +01:00
Daniel Marjamäki a21af406cb Makefile: set debug mode 2016-12-31 19:03:52 +01:00
Daniel Marjamäki b3b4406482 1.77: update Makefile 2016-12-31 18:37:23 +01:00
Daniel Marjamäki 7b22ed276e Auto generate Makefile with dmake 2016-12-08 23:39:29 +01:00
Daniel Marjamäki b607e83648 Try to fix travis 2016-11-05 21:45:31 +01:00
Frank Zingsheim d4f01583b6 Fixed TODO (check if function parameter is non-const reference etc..) by common function 2016-11-01 14:06:30 +01:00
Daniel Marjamäki 853ea69629 run dmake 2016-10-29 12:38:10 +02:00
Daniel Marjamäki 9ff3e85899 Added --cppcheck-build-dir flag 2016-10-29 12:18:11 +02:00
Matthias Krüger 5189dec343 run dmake 2016-10-02 16:20:48 +02:00
Daniel Marjamäki fff8aa8590 dmake: pathmatch was moved from cli to lib 2016-10-02 13:32:39 +02:00
Daniel Marjamäki e8b6235e23 dmake: pathmatch was moved from cli to lib 2016-10-02 13:15:51 +02:00
Daniel Marjamäki 3605457cbe CLI: Fix exclude of absolute path. #4399 2016-10-02 12:38:44 +02:00
Daniel Marjamäki 0126421711 Makefile: Run dmake 2016-08-20 13:22:46 +02:00
Matthias Krüger 032d2e5cd1 CXXFLAGS: remove -Winline (ticket #7693)
The debug build (with -Winline) has no optimizations and when setting optimizations for a release builds, CXXFLAGS are overridden.
So we either do a non-optimized debug build (where no inlining takes place which makes -Winline redundant) or do a release build without -Warning flags which means we would never see -O2 and -Winline together.
2016-08-19 11:19:15 +02:00
Matthias Krüger e5ee61aed7 run dmake 2016-08-19 11:13:56 +02:00
Daniel Marjamäki 606e31602c Fixed #7177 (Support compile_commands.json) 2016-08-13 10:50:03 +02:00
Daniel Marjamäki 016bcaf9fe dmake: Disable compiler warnings for external files 2016-07-28 13:54:08 +02:00
Daniel Marjamäki 03d2829fb9 Merge simplecpp branch 2016-07-20 12:21:00 +02:00
Daniel Marjamäki a87b4368cb Revert "Preprocessor: Start replacing our Preprocessor code with simplecpp"
This reverts commit 9820783b60.

There was Travis errors I'll need to look more at.
2016-07-07 23:45:42 +02:00
Daniel Marjamäki 9820783b60 Preprocessor: Start replacing our Preprocessor code with simplecpp 2016-07-07 22:58:56 +02:00
Daniel Marjamäki bd8fa0dde9 Makefile: Set debug mode 2016-06-05 18:29:08 +02:00
Daniel Marjamäki e6d8a7e0d0 1.74: Updated Makefile 2016-06-05 18:25:34 +02:00
Matthias Krüger 173132453a run dmake 2016-05-26 19:44:15 +02:00
Matthias Krüger 9bcb36e0bb dmake: disable -Wsign-promo 2016-05-07 19:38:40 +02:00
Alexander Mai 4e9afac92f Update Makefile. Replace another NULL by nullptr 2016-05-07 17:35:00 +02:00
Daniel Marjamäki 529c853d84 Makefile: Set debug mode 2016-04-08 20:49:18 +02:00
Daniel Marjamäki f0b9d5c216 1.73: Update Makefile for release 2016-04-08 20:47:43 +02:00
Alexander Mai 0533d7bf9c Run astyle + minor refactoring 2016-02-27 16:03:50 +01:00
Daniel Marjamäki 8d30670bc8 run dmake 2016-02-05 16:10:06 +01:00
Matthias Krüger c676f626b9 run dmake 2016-01-16 19:13:53 +01:00
Daniel Marjamäki d54f4f9c65 Fix TestAstUtils 2016-01-16 19:08:51 +01:00
Albert ARIBAUD (3ADEV) 38e70dfb74 Preprocessor directives for addons
This patch augments the XML dumps with a 'directivelist'
subnode which lists all raw preprocessor directives met
while reading the source code in each configuration.

Also, the addons/cppcheckdata.py file has been extended
to give easy access to the list of directives and to
provide Python support for the --template (or short -t)
option.

Finally, an new addon, addons/y2038/y2038.py, is created
to detect when a glibc symbol might be Y2038-sensitive,
based on whether and how _TIME_BITS and _USE_TIME_BITS64
are defined when meeting the symbol.
2016-01-15 12:36:35 +01:00
Daniel Marjamäki 4d7ac522aa Makefile: Set debug mode 2016-01-09 15:12:11 +01:00
Daniel Marjamäki 36ec2ec421 1.72: Updated Makefile 2016-01-09 14:50:01 +01:00
Martin Ettl 7cb27d91c4 dmake: Added -Wno-multichar flag. 2016-01-08 11:40:54 +01:00
Alexander Mai f5194accfd Run dmake. Add missing include to lib/checkinternal.cpp 2015-11-29 11:09:21 +01:00
Alexander Mai b1385dd951 Run dmake to update Makefile etc. 2015-11-22 10:40:48 +01:00
Matthias Krüger fdadb3e7a9 run dmake 2015-11-20 15:49:59 +01:00
Alexander Mai 65666a1ba4 Makefile: explicit list directories which should be used with ctags. Run astyle. 2015-11-15 19:03:18 +01:00
Alexander Mai bda9c8c2d5 --exception-handling now prints callstack on SIGINT, allows to debug program hangs. Also add handler for some more signals. 2015-11-14 19:59:22 +01:00
Daniel Marjamäki 5cc2b38767 Makefile: Set debug mode 2015-11-14 19:00:25 +01:00
Daniel Marjamäki dd6c242339 Makefile: 1.71 release 2015-11-14 18:58:50 +01:00
Simon Martin 14d2830e49 Restore build on OSX, where make defines CXX as "c++" by default. 2015-11-14 07:53:34 +01:00
orbitcowboy ab90a7eb49 Fixed broken HAVE_RULE support. Updated Makefile. Added override keyword when HAVE_RULES is set. 2015-11-13 11:38:06 +01:00
Daniel Marjamäki 630ba1086c Update Makefile 2015-11-11 14:16:07 +01:00
Matthias Krüger 11915f84e2 dmake: force-add -std=c++0x if we compile with g++ or clang++ 2015-11-10 21:07:06 +01:00
Daniel Marjamäki 64f3007d9e updated Makefile 2015-11-08 17:37:21 +01:00
Alexander Mai 445907d930 Makefile: Move -std=c++0x to CXXFLAGS to allow using other compilers 2015-11-08 12:52:56 +01:00
Matthias Krüger ab89e85ce5 run dmake 2015-10-07 23:53:11 +02:00
Matthias Krüger 1d7c3c3db0 run dmake 2015-10-07 18:19:28 +02:00
Matthias Krüger 73b088a6dd dmake: don't compile clang build with -D_GLIBCXX_DEBUG since it breaks the build. 2015-10-05 09:50:18 +02:00
Alexander Mai 0d7d1e8350 Add 'run-dmake' as PHONY target to Makefile to avoid linking dmake always 2015-09-05 17:12:15 +02:00
Daniel Marjamäki 34793ee7ce Makefile: debug 2015-09-04 20:25:10 +02:00
Daniel Marjamäki 6479256f11 1.70: Updated Makefile 2015-09-04 19:39:01 +02:00
Dmitry Marakasov 3bf737acbd Make DB2MAN overridable
On different systems it may point to different locations, e.g. FreeBSD uses ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
2015-08-17 19:31:08 +03:00
Matthias Krüger c1f719aa68 run dmake 2015-08-11 13:02:38 +02:00
Daniel Marjamäki 30c7b58e4c Updated Makefile 2015-08-10 16:05:38 +02:00
Daniel Marjamäki 25d09b34fd update Makefile 2015-08-08 09:20:33 +02:00
Daniel Marjamäki e598b07a6d Moved functions to astutils 2015-08-03 09:20:50 +02:00
Matthias Krüger d1d25234c1 run dmake 2015-08-02 22:46:30 +02:00
Alexander Mai 96c3c111fc Refactoring: Move some AST related functions to distinct source file 2015-08-02 21:57:32 +02:00
Daniel Marjamäki 234669b02b Removed the UninitVar::analyseFunctions(). This was written for multifile checking however it did not work as it should => no multifile errors can be detected. 2015-07-24 08:30:38 +02:00
Daniel Marjamäki c2a15ac286 Removed ExecutionPath 2015-07-23 19:01:12 +02:00
Daniel Marjamäki 631db1551a Updated Makefile 2015-07-23 17:43:04 +02:00
Daniel Marjamäki 856d496c71 fix dmake 2015-07-23 15:02:32 +02:00
PKEuS 91c7361034 Fixed dmake and travis build 2015-07-23 14:53:18 +02:00
Daniel Marjamäki 678d755ce5 disable -Woverloaded-virtual warnings to avoid a few FPs 2015-06-30 20:38:15 +02:00
Alexander Mai 4172011e78 Missing update for Makefile. CheckMemoryLeakInFunction::getcode(): skip some C++ token matching in C mode. Minor refactoring 2015-06-20 22:49:28 +02:00
Alexander Mai b3c7a3f798 Fix more (potential) multi-threading issues 2015-06-20 22:26:51 +02:00
Matthias Krüger 2edf133d07 run dmake 2015-06-14 16:03:23 +02:00
Alexander Mai a7b82b5c28 Refactoring to address some issues from #5895 (handling of unsigned numbers). Also adding a TODO testcase since the real issue (FP) is still not fixed 2015-06-13 18:08:13 +02:00
Daniel Marjamäki f540484d38 Makefile: Set debug mode 2015-05-01 20:21:10 +02:00
Daniel Marjamäki b548b3da9e 1.69: Updated Makefile 2015-05-01 18:53:19 +02:00
Daniel Marjamäki 066b24dc9c dmake: disable -Wconversion to avoid false positives when compiling 2015-04-15 11:32:52 +02:00
Matthias Krüger 85a88c4a31 run dmake 2015-03-12 00:06:18 +01:00
Matthias Krüger 958c05cec4 run dmake 2015-03-11 21:28:26 +01:00
Matthias Krüger da5874fc99 run dmake 2015-01-28 22:39:06 +01:00
Matthias Krüger e56671101e tests: add a script which runs test/cfg tests.
add new make target (checkcfg) which builds cppcheck and executes the script
       make travis run checkcfg
2015-01-27 19:46:52 +01:00
Matthias Krüger 25cdeeeea3 run dmake 2015-01-08 19:55:41 +01:00
Daniel Marjamäki 451e0725ff Makefile: debug 2015-01-03 13:32:43 +01:00
Daniel Marjamäki cbc385ec06 1.68: Updated Makefile 2015-01-03 13:22:25 +01:00
Matthias Krüger 9ee1b80539 run dmake 2014-12-27 11:45:53 +01:00
Matthias Krüger 33be0f4cb9 run dmake 2014-12-02 08:33:39 +01:00
Matthias Krüger 9233e79390 run dmake 2014-11-24 07:42:54 +01:00
Daniel Marjamäki 1a98e0add4 ran dmake 2014-11-15 18:45:18 +01:00
Daniel Marjamäki 625da8b721 ran dmake 2014-11-15 10:56:26 +01:00
Matthias Krüger 19e0e3da1b run dmake 2014-10-31 11:58:08 +01:00
Daniel Marjamäki 28444a522b Makefile: restore debug mode after 1.67 release 2014-10-18 11:46:57 +02:00
Daniel Marjamäki d4fa8c3e12 1.67: Updated Makefile 2014-10-18 11:37:24 +02:00
Daniel Marjamäki 14ee7dad0a Cleanup: Remove redundant #includes 2014-09-30 09:22:33 +02:00
orbitcowboy fa7645ec71 Added CheckStl to garabage code testing. 2014-09-30 08:36:55 +02:00
Matthias Krüger 3a14441699 run dmake 2014-09-29 22:00:38 +02:00
Gianfranco Costamagna 3eafb2b5c4 Makefile: Fix DESTDIR handling 2014-09-25 18:50:48 +02:00
Matthias Krüger 7d85cb37ed run dmake 2014-09-24 13:50:57 +02:00
PKEuS 1e8c7e102d Revert "run dmake"
This reverts commit 8ccf9eed09.
2014-09-23 21:04:31 +02:00
Matthias Krüger 8ccf9eed09 run dmake 2014-09-23 16:20:19 +02:00
Lauri Nurmi 1cc872f5b2 Change "obsolete" in all filenames into "obsolescent", and also update all references to such files.
Neither the C standard, the C++ standard, or POSIX talks about "obsolete". All of them use the word "obsolescent", which is a different word with a different meaning.
2014-09-23 16:18:04 +02:00
Daniel Marjamäki 0e55f12140 Fixed #6165 (Remove old checkUnsignedDivision checker that uses neither AST nor ValueFlow. The CheckType::checkSignConversion should be much more accurate) 2014-09-12 16:59:16 +02:00
Matthias Krüger dd5f41f01d dmake: update makefile 2014-09-11 18:33:19 +02:00
Daniel Marjamäki 7847263451 Fixed #6158 (New check: dangerous sign conversion) 2014-09-11 18:10:19 +02:00
Daniel Marjamäki 3ac5f16668 Makefile: generate new Makefile with dmake 2014-08-29 18:32:50 +02:00
Matthias Krüger cd33d784d5 run dmake 2014-08-27 09:45:50 +02:00
Matthias Krüger b5cf56790c dmake: update 2014-08-06 14:25:49 +02:00
Matthias Krüger 083b660de3 dmake: update 2014-08-05 11:59:39 +02:00
Daniel Marjamäki 56797182c4 Makefile: Set debug mode after release 2014-08-02 13:07:16 +02:00
Daniel Marjamäki 80eef66d6d 1.66: Update Makefile 2014-08-02 12:39:20 +02:00
orbitcowboy 5c2ed8450e Revert my previous fix 28763fa020 and suppress gcc false positive warnings. 2014-06-13 15:46:43 +02:00
Alexander Mai 5198c05f35 --exception-handling now takes optional argument to choose between stdout and stderr for its output. stdout is new default value 2014-05-25 08:47:37 +02:00
Daniel Marjamäki bb8973aac7 Updated Makefile 2014-05-24 12:54:16 +02:00
Alexander Mai 16aa891da2 #5798 cfg files are not installed to CFGDIR. Extend patch to update dmake.cpp. Also fix some g++ compiler warnings 2014-05-17 11:05:42 +02:00
Matthias Krüger 52ba857f8d dmake: make clean: also remove objects files inside tools/ (dmake.o, reduce.o) 2014-05-14 13:20:24 +02:00
Daniel Marjamäki 46b303e055 Makefile: Set debug flags again 2014-05-10 12:06:45 +02:00
Daniel Marjamäki 9d3359177d 1.65: Update Makefile 2014-05-10 12:03:36 +02:00
Matthias Krüger f138bf004b dmake: make clean: remove dmake binary as well. 2014-05-09 08:45:25 +02:00
Alexander Mai 417a916ece Use CXXFLAGS upon linking dmake for consistency 2014-05-04 20:52:54 +02:00
amai a5aac3b551 Add missing dependencies for dmake 2014-05-03 20:05:58 +02:00
amai 3bdfad0b73 reduce and dmake now use existing object files as dependencies whenever possible. Fix compilation for reduce on cygwin. 2014-05-03 18:54:48 +02:00
Alexander Mai 9e9bc1e457 Since reduce shares object files with cppcheck it should use the same compiler and linker flags 2014-04-27 18:56:30 +02:00
Alexander Mai bf549d8883 Update for Makefile 2014-04-26 19:20:15 +02:00
Alexander Mai 290f0ef022 #5644 Compilation failure on Cygwin - related to tinyxml2 (#undefine __STRICT_ANSI__ on cygwin). Patch by ir0nh34d 2014-04-24 22:22:43 +02:00
Daniel Marjamäki 442b272b3f Updated Makefile 2014-04-21 10:12:46 +02:00
Alexander Mai 547803f581 #5592 - crash: gcc: testsuit: gcc.c-torture/compile/limits-declparen.c (Limit stack depth below createAst() 2014-04-13 12:47:54 +02:00
Matthias Krüger 71b306ff64 Ran dmake 2014-04-13 00:03:15 +02:00
Alexander Mai 9ac83d7624 reduce is linking against LIBS as well, to keep build scripts e.g. on travis working 2014-04-11 23:24:47 +02:00
Alexander Mai fb13c56ef0 Makefile: reduce now also depends on LIBOBJ: command not found 2014-04-11 22:27:29 +02:00
Matthias Krüger 4481015bdc dmake: "make dmake" now also runs the binary after compilation. 2014-04-03 16:41:58 +02:00
Alexander Mai 0242a3c188 -rdynamic cannot be used on mingw 2014-03-30 20:50:03 +02:00
PKEuS c078b3fced Added testing of samples/ to testrunner (#3515). 2014-03-28 13:06:38 +01:00
Matthias Krüger 5a7a155203 Ran dmake. 2014-03-26 10:25:34 +01:00
Alexander Mai 29165f3e5f Add -rdynamic to the linker flags to allow obtaining a bracktrace 2014-03-21 22:33:07 +01:00
Matthias Krüger ebb6dc3388 update Makefile with dmake. 2014-03-03 12:32:19 +01:00
Daniel Marjamäki f5cec6ea57 Makefile: use debug mode 2014-03-02 14:57:29 +01:00
Daniel Marjamäki a0c84d144f 1.64: Updated Makefile 2014-03-02 09:59:34 +01:00
Lauri Nurmi 91340d4043 Emulate the C++11 'nullptr' and 'static_assert' 2014-02-15 07:52:17 +01:00
Pavel Roschin 19a8cfd960 Library: add new "define" tag
This tag will allow to add some preprocessor defs into library.
It would be useful to provide more information about libraries
implementation details. As example GLib's library include tag
was added that helps to detect more memory leaks.
2014-02-07 10:13:36 +04:00
Daniel Marjamäki 5b479cc841 Updated Makefile with dmake 2014-01-22 21:26:50 +01:00
Daniel Marjamäki 79a1244a54 Updated Makefile with dmake 2014-01-20 20:55:17 +01:00
Daniel Marjamäki a7146916b1 Makefile: added -Wno-sign-compare. I don't like this warning 2014-01-18 09:51:48 +01:00
Ryan Pavlik 065db3d9f6 Add a rule to the cli makefile to actually build TinyXML2 2014-01-17 15:52:05 -06:00
Daniel Marjamäki 424675982a dmake: use -std=c++0x instead of -std=c++11 as it's supported by earlier gcc 2014-01-12 15:38:51 +01:00
Daniel Marjamäki 4224f873fd dmake: added -std=c++11 flag 2014-01-12 13:14:46 +01:00
Daniel Marjamäki a1a40ac034 updated Makefile with dmake 2014-01-12 13:13:29 +01:00
Daniel Marjamäki 91f7de047e value flow: Updated Makefile with dmake 2014-01-06 10:10:35 +01:00
Daniel Marjamäki f8e4426310 Updated Makefile 2014-01-04 21:09:02 +01:00
Daniel Marjamäki d8270c710a Add new experimental value flow analysis 2014-01-04 20:57:02 +01:00
Daniel Marjamäki f4c1aa5d58 Updated Makefile 2014-01-04 15:23:25 +01:00
Daniel Marjamäki 3941f08eb4 Makefile: Restore debug mode 2014-01-04 09:40:02 +01:00
Daniel Marjamäki 1b0dd00d81 1.63: Updated Makefile for release 2014-01-04 09:35:28 +01:00
Daniel Marjamäki 9e0d7d86e9 dmake: Improved handling of CFGDIR 2013-12-28 12:15:08 +01:00
Daniel Marjamäki d3a848f2e6 Makefile: Added optional CFGDIR parameter that allows user to specify where Cppcheck will look for cfg files. 2013-12-26 18:41:51 +01:00
Daniel Marjamäki 826ddf8a6d Updated Makefile with dmake 2013-12-26 17:42:23 +01:00
Daniel Marjamäki 569a29bc4a Library: Added simple testing 2013-10-27 17:10:43 +01:00
Daniel Marjamäki 6d982b823d update Makefile with dmake 2013-10-27 16:35:37 +01:00
Daniel Marjamäki 1fa5b5ffd5 Makefile: Set debug mode 2013-10-12 12:50:49 +02:00
Daniel Marjamäki 51f83fc772 1.62: Updated Makefile for release 2013-10-12 12:26:38 +02:00
Matthias Krüger 074f195f7b make install: install cppcheck-htmlreport as well. 2013-10-08 19:33:36 +02:00
Daniel Marjamäki 56680ef399 Makefile: auto-updated by dmake 2013-09-05 15:55:34 +02:00
Daniel Marjamäki d41e0f82cf reduce: Fix compilation problems 2013-08-17 19:20:47 +02:00
Daniel Marjamäki b485033fb8 Makefile: Set debug mode 2013-08-03 18:20:52 +02:00
Daniel Marjamäki 9e16abeb42 1.61: Updated Makefile 2013-08-03 18:16:17 +02:00
Daniel Marjamäki 66e406fe43 Makefile: update by dmake 2013-07-30 08:47:27 +02:00
Daniel Marjamäki 7d47fd65a2 Renamed --environment to --library. Added --check-library. Renamed Environment to Library 2013-07-08 18:26:18 +02:00
Daniel Marjamäki d96fb577cd CLI: Added --environment flag 2013-07-02 07:18:19 +02:00
Andreas Bießmann 90a6472af9 dmake: fix for local includes
When building cppcheck we may pull in conflicting global definitions before
local ones, rearrange include order to prevent this.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
2013-06-03 19:45:29 +02:00
Daniel Marjamki 2b453e7a55 Makefile: Set debug mode 2013-06-02 13:18:30 +02:00
Daniel Marjamki ecb45042e6 Makefile: Set release mode 2013-06-02 13:14:07 +02:00
Daniel Marjamäki d2091f4bd3 Makefile: Set debug mode 2013-06-01 15:29:40 +02:00
Daniel Marjamäki 449b3bc7da 1.60: Updated Makefile 2013-06-01 15:28:25 +02:00
Daniel Marjamäki e1fd003e2d makefile: make it possible to turn on matchcompiler verifications with 'VERIFY=1' 2013-05-15 13:04:19 +02:00
Lena Herscheid e23038c4de Fixed #4775 (Check for assert() with side effects) 2013-05-07 21:35:16 +02:00
Daniel Marjamäki 3f5a858800 dmake: update Makefile 2013-05-05 09:22:04 +02:00
Daniel Marjamäki ac811e41a4 Makefile: Set debug mode 2013-03-29 19:50:28 +01:00
Daniel Marjamäki 2596b720b8 1.59: Updated Makefile 2013-03-29 19:32:26 +01:00
Alexander Mai 9a0688bf6c Updated makefile 2013-02-16 21:12:08 +01:00
Daniel Marjamki 944b756a76 updated Makefile with dmake 2013-02-09 19:36:24 +01:00
Stefan Naewe 9c68aa0a94 Makefile: set LDFLAGS correct when built with MINGW32
Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>
2013-02-08 11:32:06 +01:00
Daniel Marjamäki 0e82ca764a Makefile: restore to debug mode 2013-01-12 15:40:59 +01:00
Daniel Marjamäki 75bb4a96cb 1.58: Updated Makefile for release 2013-01-12 14:51:49 +01:00
Thomas Jarosch 241d23ba8e Remove reduce tool in 'make clean' 2013-01-03 21:59:28 +01:00
Daniel Marjamäki 28d5ad9d21 dmake: fixed reduce compilation 2013-01-02 15:36:17 +01:00
Daniel Marjamäki 7f2d9cb7eb dmake: fixed compilation of reduce 2013-01-02 14:43:31 +01:00
Daniel Marjamäki 9877b77291 dmake: use 'make reduce' to compile the reduce program 2013-01-02 13:30:06 +01:00
Marc-Antoine Perennou cd9782472f build: rename LIBDIR to SRCDIR
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2012-12-11 09:30:37 +01:00
Daniel Marjamäki 514d06b015 Makefile: minor cleanup 2012-12-03 06:34:43 +01:00
Daniel Marjamäki 94930c3bd7 Compiled Token::Match patterns: let 'make clean' cleanup compiled patterns 2012-12-02 13:42:48 +01:00
Daniel Marjamäki d630d34b62 Compiled Token::Match patterns. Added python script solution. Python is required to build with compiled patterns. To build cppcheck with compiled patterns use 'make LIBDIR=build'. 2012-12-02 12:36:55 +01:00
Daniel Marjamäki 16faf3f738 Makefile: Set debug mode 2012-11-04 14:12:20 +01:00
Daniel Marjamäki d8d9a7c3c6 1.57: Updated Makefile 2012-11-04 13:57:49 +01:00
Edoardo Prezioso 9e147c4a0a Makefile: update with 'dmake'; gui: run 'lupdate gui.pro ; lrelease gui.pro'. 2012-10-15 02:25:26 +02:00
Daniel Marjamäki 295ba9cc4f Fixed #2709 (Negative times in --showtime summary) 2012-09-15 19:49:48 +02:00
Daniel Marjamäki ce862e02aa dmake: New version of TinyXml needs -DTIXML_USE_STL define in linux 2012-09-09 13:08:04 +02:00
Daniel Marjamäki edb9989545 Makefile: Set debug mode again after 1.56 release. 2012-09-01 12:45:42 +02:00
Daniel Marjamäki dbdfed17fb 1.56: Updated Makefile 2012-09-01 11:06:52 +02:00
Daniel Marjamäki b50a36e3f9 updated Makefile with dmake 2012-08-09 20:13:51 +02:00
Edoardo Prezioso 826d5bb00b Since the GCC -Wconversion warnings are fixed (at least on a x86-64 environment), enable it in the Makefile. 2012-07-18 00:50:30 +02:00
Daniel Marjamäki 0b37f4044b Makefile: Set debug mode 2012-06-30 18:12:15 +02:00
Daniel Marjamäki 2cd4d9f508 1.55: Updated Makefile 2012-06-30 18:10:27 +02:00
Daniel Marjamäki bc9e419615 run dmake 2012-06-22 11:59:56 +02:00
Edoardo Prezioso 4987f6a4a9 running dmake 2012-06-22 00:29:38 +02:00
Edoardo Prezioso 4390df75b9 Run dmake. 2012-06-17 20:19:37 +02:00
Kimmo Varis db587794c9 Update Makefile. 2012-06-11 22:16:12 +03:00
Daniel Marjamäki b9e35b8516 Makefile: updated by dmake 2012-06-08 19:37:06 +02:00
Daniel Marjamäki bd8fb0a6b5 Memory leaks: Added new checking for memory leaks 2012-05-26 08:53:46 +02:00
Edoardo Prezioso 1f13e74182 Run dmake. 2012-05-20 22:19:10 +02:00
Daniel Marjamäki aebedfb123 dmake: updated Makefiles 2012-05-20 12:04:47 +02:00
Daniel Marjamäki 58bee0afde Makefile: generated new Makefiles since the Tokenizer has been split up 2012-05-05 18:39:29 +02:00
Daniel Marjamäki cf5abc8eb1 Makefile: Updated Makefile with dmake 2012-04-30 16:31:02 +02:00
Daniel Marjamäki 12ed4e8448 Makefile: Set debug mode 2012-04-15 07:26:49 +02:00
Daniel Marjamäki 10e6828fa9 1.54: Updated Makefile 2012-04-15 07:25:08 +02:00
Daniel Marjamäki 16427b40b9 dmake: move . this fixes compiler errors when compiling with some old gcc 3.X compiler 2012-02-26 10:18:21 +01:00
Edoardo Prezioso f37f13c3ad Fixed typo in make file generation. 2012-02-17 20:12:41 +01:00
Daniel Marjamäki f183954150 dmake: keep some dummy debug code in release Makefiles to make the debug/release more similar 2012-02-12 03:30:58 +01:00
Daniel Marjamäki 15669d20b4 Makefile: Set debug mode 2012-02-11 08:27:10 +01:00
Daniel Marjamäki 2e492eb835 1.53: Updated Makefile 2012-02-11 08:23:45 +01:00
Reijo Tomperi be7691c7b4 Refactoring: Move rest of the template simplification into TemplateSimplifier
simplifyCalculations() was temporarily moved into TemplateSimplifier also, it should be moved to a better place.
2012-01-09 21:33:11 +02:00
Reijo Tomperi 194327048a Add InternalError and change MathLib to throw it in case of an error.
- Previously MathLib errors did not provide a filename, but after this change at least source file name should be printed
and if token is provided, also line number should be printed.
- Change also Token to use InternalError
- Modify Cppcheck-class to catch InternalError instead of Token
- Run dmake to update Makefile
2012-01-08 22:19:44 +02:00
Reijo Tomperi e33b80329b Refactoring: Rerun dmake to update makefile, related to previous commit. 2012-01-01 23:03:23 +02:00
Reijo Tomperi aa927d5aa3 Refactoring: Add new file lib/templatesimplifier.cpp
The plan is to move template simplification into this new class to take some lines from 10 000 line tokenizer.
2012-01-01 22:55:05 +02:00
Daniel Marjamäki 3d5539a7dc Makefile: Set debug mode 2011-12-10 13:02:03 +01:00
Daniel Marjamäki 6f2bbc0ba6 1.52: Updated Makefile 2011-12-10 13:00:45 +01:00
Akio Idehara baa97d53fc Fixed #3346 (cygwin detection for _GLIBCXX_DEBUG in Makefile) 2011-11-29 20:35:56 +01:00
Thomas Jarosch f6e68914ea Add check for cppcheck's internal API usage (#3263)
First checks:
- Simple pattern used inside Token::Match()
- Complex pattern used inside Token::simpleMatch()

The checks get enabled by passing "--enable=internal".
It's not included in "--enable=all".

If you see something that needs further tweaking, just go for it!
2011-10-28 22:46:07 +02:00
Ville Skyttä b69ad0fefc Makefile: Use pcre-config to get include/lib paths etc 2011-10-28 21:20:19 +02:00
Daniel Marjamäki 17aea0a997 dmake: disabled -Wunreachable-code because there was too many warnings 2011-10-24 07:09:14 +02:00
Edoardo Prezioso df5d26901c Add new warning option to check for dead code and change the order of some struct members to reduce structure padding. 2011-10-24 03:02:00 +02:00
Thomas Jarosch db8c7deb30 Fixed #3232 (Check if container is modified inside BOOST_FOREACH) 2011-10-23 13:07:43 +02:00
Edoardo Prezioso 12f6ce46f8 Add more warnings and fix the ones reported by them. 2011-10-22 15:05:43 +02:00
Edoardo Prezioso 84cd0bd585 Run tools/dmake. 2011-10-22 13:40:08 +02:00
Daniel Marjamäki 34e2a2ad66 Makefile: Disable rules by default 2011-10-17 20:18:36 +02:00
Daniel Marjamäki 47d8752098 Makefile: Set debug mode 2011-10-08 08:06:24 +02:00
Daniel Marjamäki d32b288e4e 1.51: Updated Makefile for release 2011-10-08 07:55:54 +02:00
Kimmo Varis 716679ec7d Move Suppressions class to own source files.
I want to use Suppressions class also in GUI. And that is easier
to do when it is not internal class of Settings class. And in
general is it more natural that Settings class only contains list
of suppressions and implementation is separate.
2011-08-22 19:57:28 +03:00
Robert Reif 2dd93dff75 move unused variable checks from checkother to checkunusedvar 2011-08-19 14:35:25 -04:00
Edoardo Prezioso f62d1d0122 Fixed #3017 (set HAVE_RULES to yes only if HAVE_RULES is undefined when executing make.) 2011-08-19 00:28:31 +02:00
Daniel Marjamäki d336e91049 Makefile: Added the -D_GLIBCXX_DEBUG flag again to get checked stl during debug 2011-08-14 18:57:48 +02:00
Daniel Marjamäki c2b32bcfe5 Makefile: Set debug mode 2011-08-14 10:46:56 +02:00
Daniel Marjamäki 315112314c 1.50: Updated Makefile 2011-08-14 08:13:02 +02:00
Daniel Marjamäki 47f13860b7 AssignIf: Added new check. Ticket: #2909 2011-07-30 21:43:21 +02:00
Ettl Martin 35bb5dffa4 Added a new check for finding non-reentrant functions 2011-07-28 23:29:16 +02:00
Daniel Marjamäki 4d76085757 Makefile: auto-update by dmake 2011-07-24 14:54:54 +02:00
Robert Reif fd40e6a362 fix some development stuff that snuck in by mistake 2011-07-21 19:05:50 -04:00
Robert Reif cc1ecccd01 fix #2928 (False positive (static variable misinterpreted as auto variable)) 2011-07-21 18:20:19 -04:00
Daniel Marjamäki 8f0f184058 64-bit checking: Added simple check for assigning pointer address to int/long. Ticket: #2791 2011-07-06 08:55:17 +02:00
Felix Geyer e49763b14f Ticket: #2823 (cppcheck fails to build with system tinymxl and -Wl,--as-needed) 2011-06-19 20:56:12 +03:00
Daniel Marjamäki f04f060e71 Makefile: Set debug mode 2011-06-12 18:37:01 +02:00
Daniel Marjamäki 301429d151 1.49: Updated Makefile for release 2011-06-12 18:28:04 +02:00
Greg Hewgill 8dd4eb39a1 Revert "Remove the testsuppressions because it doesn't contain any unit tests. A testsuppressions would be nice if it was more specific. Ticket: #2748"
This reverts commit 6bf5eb67be.
2011-05-03 10:18:05 +00:00
Daniel Marjamäki 67ef647262 Makefile: updated with dmake 2011-05-01 07:50:45 +02:00
Daniel Marjamäki 6bf5eb67be Remove the testsuppressions because it doesn't contain any unit tests. A testsuppressions would be nice if it was more specific. Ticket: #2748 2011-04-30 13:05:21 +02:00
Kimmo Varis c7d99fe9a7 Remove ErrorLogger::reportStatus() method.
The ErrorLogger::reportStatus() is not lib code interface. The CLI
code does the looping through file list and gives one file at a
time for the core code. Hence lib has no any idea about the
progress and it can't provide such information.

Also the recent commit (6d858b6) caused a GUI build failure by
adding CLI code dependency to GUI. Which is big no-no.

This is admittedly a hack. But it allow us to build all modules
again.
2011-04-27 23:27:02 +03:00
Greg Hewgill d80fc17ed9 Makefile: handle case where LDFLAGS is already defined 2011-04-22 11:07:49 +12:00
Daniel Marjamäki 712e285bd6 Makefile: added option for compiling with/without rules 2011-04-19 20:53:40 +02:00
Reijo Tomperi 485ff0b472 "#ifndef" can't be used in Makefile (it is considered a commented line). Replaced it with "ifndef". 2011-04-11 22:54:29 +03:00
Daniel Marjamäki 8c6d61ede3 Makefile: Set debug mode 2011-04-09 12:56:32 +02:00
Daniel Marjamäki e984e59ee2 Release: Updated Makefile for release 2011-04-09 12:41:50 +02:00
Daniel Marjamäki 6f7e9a67b0 Fixed #2684 (TestFileLister test assumes there are source files in the same directory) 2011-04-07 17:36:42 +02:00
Daniel Marjamäki 8caf96be63 FileLister: Moved back the code into a single cpp file 2011-03-20 14:25:11 +01:00
Greg Hewgill 5bbf39d094 Refactor ThreadExecutor::check() to handle child failures more gracefully 2011-03-05 16:43:22 +13:00
Daniel Marjamäki 0e34b8bee5 Makefile: updated with dmake 2011-02-17 22:32:22 +01:00
Daniel Marjamäki f5ebd779f8 GCC: Disabled the -Wsign-conversion. It is quite noisy. 2011-02-17 22:28:36 +01:00
Greg Hewgill 5d74325015 implement unmatchedSuppression information message 2011-02-16 23:02:37 +13:00
Daniel Marjamäki 805773663e Build: Renamed HAVE_DEPENDENCIES to HAVE_RULES 2011-02-14 19:37:58 +01:00
Daniel Marjamäki 27febb062b cppcheck: Added HAVE_DEPENDENCIES define. Cppcheck cli can be compiled without dependencies. 2011-02-12 08:06:59 +01:00
Reijo Tomperi a71204b8e3 Change "tinyxml/tinyxml.h" includes into <tinyxml.h> and modify dmake to work with it.
This should allow usage of libtinyxml-dev or such libraries without modifications to code or makefile.
2011-02-10 22:35:48 +02:00
Reijo Tomperi 73e746cfd8 Change Makefile to allow another external library to be used instead of bundled one.
E.g. make TINYXML="-ltinyxml" can be used to compile with libtinyxml-dev instead of
externals/tinyxml (but won't compile yet, because of #include "tinyxml/tinyxml.h" in the code).
2011-02-09 01:06:51 +02:00
Daniel Marjamäki 72aca46a6e Makefile: set debug mode 2011-02-06 12:33:05 +01:00
Daniel Marjamäki efaeb0a5e9 1.47: Updated Makefile for release 2011-02-06 12:14:09 +01:00
Kimmo Varis 3fc0d0f03e Run dmake to update Makefile. 2011-02-02 14:36:45 +02:00
Kimmo Varis 800d8d1e05 Cleanup makefile a bit.
Align object file lists first line. Remove excessive use of tabs.
2011-01-31 09:18:35 +02:00
Daniel Marjamäki 07e097561c dmake and Makefile updates 2011-01-21 20:51:01 +01:00
Daniel Marjamäki 8cec4e6de6 Makefile: updated with dmake 2011-01-21 07:43:04 +01:00
Kimmo Varis b8b2e3fae9 Move filelister* to cli.
Ticket #2445 (Move FileLister classes from LIB to CLI).
2011-01-18 19:58:49 +02:00
Daniel Marjamäki a9aa6375b7 gcc: disabled -Wconversion again - too many warnings 2011-01-01 09:16:31 +01:00
Daniel Marjamäki eb59bd5fd6 Added -Wconversion compiler flag. The ASSERT_EQUALS_DOUBLE was added that can be used when comparing double values. 2010-12-30 22:56:53 +01:00
Pete Johns 2e61736c73 Refactoring following #2377 (Technically the member function xxx can be const)
symboldatabase now recognises variables with arbitrarily many scopes.

Extracted method isVariableDeclaration()

Added unit tests for isVariableDeclaration in new file testsymboldatabase.cpp

Extracted givenACodeSampleToTokenize helper class into testutils.h to reduce duplication.
2010-12-30 19:46:44 +11:00
Peter Pentchev 121cb043a7 Makefile: honor the C preprocessor flags in CPPFLAGS. Ticket: #2254 2010-12-26 18:12:14 +01:00
Pete Johns 64e2c8668c Fixed #2358 (Compilation fail on Mac)
Added test case to prove it works. Not a true unit-test as it accesses the file-system.
2010-12-26 23:04:07 +11:00
Kimmo Varis 1d349bf4cf Update Makefile. 2010-12-18 17:12:27 +02:00
Daniel Marjamäki 2d3865a671 Add support for user defined rules 2010-12-12 11:56:22 +01:00
Daniel Marjamäki 1ece516816 Makefile: switch back to debug mode 2010-12-12 09:46:59 +01:00
Daniel Marjamäki f2fac1fe70 1.46: updated Makefile for release 2010-12-12 08:41:19 +01:00
Kimmo Varis d977e1b2bd Update Makefile. 2010-12-05 23:06:36 +02:00
Daniel Marjamäki 8b45a0e3b5 Makefile: updated with dmake 2010-11-29 19:55:04 +01:00
Daniel Marjamäki 42fcebf3b9 Makefile: updated the Makefile. addon to my commit yesterday where I added new leak checking 2010-11-13 07:40:32 +01:00
Robert Reif 894586f4dd Fixed #2198 (SymbolDatabase: separate SymbolDatabase from CheckClass) 2010-11-13 07:31:56 +01:00
Daniel Marjamäki bc283d8b99 Uninitialized variables: Broke out the checking into separate file 2010-10-31 12:31:11 +01:00
Daniel Marjamäki df8a93bf97 Null pointers: Broke out the checking into separate file 2010-10-31 11:51:25 +01:00