Daniel Marjamäki
11c7b8a839
Execution Path: some refactorings of the checking
2009-12-20 19:44:32 +01:00
Daniel Marjamäki
d9cf70c1c6
Fixed #1119 (false positve: uninitialized variable y when y is assigned in inner expression 'x = (y = 10)')
2009-12-20 13:55:17 +01:00
Daniel Marjamäki
191a913ff9
Fixed #1117 (segmentation fault of cppcheck)
2009-12-20 12:45:34 +01:00
Kimmo Varis
eb8c6aec55
CMake - add 'make check' -target.
...
Tests are now excluded from normal targets to make compiling
faster. 'make check' -target will compile and run tests.
2009-12-20 11:16:56 +02:00
Kimmo Varis
9e2a42ebf9
CMake - use more strict compiler flags.
2009-12-20 10:45:57 +02:00
Daniel Marjamäki
d86234b7fd
Preprocessor: Use 'unsigned char' instead of 'char'
2009-12-20 09:35:51 +01:00
Daniel Marjamäki
74b9bccd07
code cleanup
2009-12-20 09:02:25 +01:00
Daniel Marjamäki
813c674611
stl size: minor fix to prevent segmentation fault when token is null
2009-12-19 19:27:12 +01:00
Daniel Marjamäki
ad225ea745
stl size: added documentation
2009-12-19 19:24:48 +01:00
Daniel Marjamäki
e7c0e4d482
Fixed #1093 (False positive: missing constructor)
2009-12-19 17:58:52 +01:00
Daniel Marjamäki
8a1940e043
astyle
2009-12-19 17:57:58 +01:00
Kimmo Varis
c988b14fb5
CMake- fix building GUI from different directory.
2009-12-19 18:15:48 +02:00
Kimmo Varis
59ea59b5be
CMake - disable building GUI for Cygwin.
2009-12-19 17:15:17 +02:00
Kimmo Varis
2fb6c21509
Merge branch 'master' of github.com:danmar/cppcheck
2009-12-19 16:55:15 +02:00
Kimmo Varis
d51520d656
CMake - add Windows resource files to build.
2009-12-19 16:54:38 +02:00
Kimmo Varis
401afea2f2
Fix Windows GUI resource file.
2009-12-19 16:53:47 +02:00
Daniel Marjamäki
95f652a2b4
robert reif: Fixed #1118 (new check: use empty() instead of checking size() against zero)
2009-12-19 15:24:59 +01:00
Kimmo Varis
41eb141e61
CMake - cleaner way to set additional library for Windows.
2009-12-19 16:21:46 +02:00
Daniel Marjamäki
69a98d81fc
Fixed #1107 (False positive: Dangerous usage of erase, when using std::list)
2009-12-18 20:55:51 +01:00
Daniel Marjamäki
8665b36f54
lanurmi: Fixed #1016 (Patch: Refactor #ifdefs in filelister.cpp)
2009-12-18 18:52:09 +01:00
Daniel Marjamäki
b3a055e20a
Fixed #1101 (link error with latest git in Visual Studio)
2009-12-18 18:29:31 +01:00
Daniel Marjamäki
2c2d68a7ef
C++ Builder: updated project file
2009-12-18 18:20:33 +01:00
Daniel Marjamäki
d4adab3e78
added error info about the strncpy check
2009-12-18 17:33:33 +01:00
Daniel Marjamäki
0da0b5ffed
ericsesterhenn: Fixed #1106 (check if buffer is zero terminated after a strncpy)
2009-12-18 17:26:15 +01:00
Kimmo Varis
d70c60b702
CMake - Fix Windows build.
2009-12-17 22:31:13 +02:00
Kimmo Varis
b619538aa3
CMake - add missing file in lib.
2009-12-17 20:19:55 +02:00
Kimmo Varis
a669ef0ed4
CMake - reorder files in lib's makefile.
2009-12-17 20:16:28 +02:00
Kimmo Varis
cf071ccdad
CMake - build GUI translation files.
2009-12-15 22:27:18 +02:00
Kimmo Varis
3437242ea7
CMake GUI build - fix adding resources to GUI.
2009-12-15 22:27:18 +02:00
Kimmo Varis
e010575398
Build GUI using CMake.
...
This is a start for building GUI with CMake. It works but it is a bit ugly.
2009-12-15 22:27:18 +02:00
Kimmo Varis
6e540e615d
Add testsuite to CMake build files.
2009-12-15 22:27:17 +02:00
Kimmo Varis
c85c0fbabc
Add simple CMake build files to build lib and cli.
...
Apparently not everybody wants to use QMake to build cppcheck. Which is
understandable if you only want to hack on/build lib and cli. Qt and QMake are
pretty lot to install for just that.
So lets start using CMake. It is widely used and is "just" build system and not
programming framework. CMake is also easy to use for building Qt software too
so it can replace QMake.
This first commit only builds lib and cli for Linux.
2009-12-15 22:27:17 +02:00
Daniel Marjamäki
1680d1fb42
Fixed #1086 (segmentation fault of cppcheck '#if define(A)+define(B)+define(C)!=1')
2009-12-15 20:18:32 +01:00
Daniel Marjamäki
e03ff727d4
Fixed #1103 (false positive: uninitialized variable when using references)
2009-12-15 19:50:48 +01:00
Daniel Marjamäki
368df4c083
TestLocalLeaks: going out of scope
2009-12-15 19:27:07 +01:00
Henrik Nilsson
c83f446412
cppcheck doesn't always report a filename for an error.
...
Added some error checking so this tool doesn't crash.
2009-12-15 13:28:26 +01:00
Henrik Nilsson
f1ad308f5f
Added a installation script for the cppcheck-htmlreport utility.
...
The script uses distutils to install the script into /usr/bin/.
The following will install the script:
sudo ./setup.py install
2009-12-15 09:03:15 +01:00
Reijo Tomperi
64261e6909
Fix compiler error: cast from 'CheckLocalLeaks*' to 'int' loses precision
2009-12-15 00:57:32 +02:00
Daniel Marjamäki
9cb6102983
fixed #1099 (GUI: unable to build gui from current git-head)
2009-12-14 23:22:27 +01:00
Reijo Tomperi
30f789a168
Fix #1076 (Invalid number of character ({). Can't process file.)
...
http://sourceforge.net/apps/trac/cppcheck/ticket/1076
2009-12-15 00:06:05 +02:00
Daniel Marjamäki
0c13f9ba5c
Added TestLocalLeaks
2009-12-14 20:30:31 +01:00
Reijo Tomperi
42c2437f78
Test case for #1076 (Invalid number of character ({). Can't process file.)
2009-12-13 22:36:42 +02:00
Daniel Marjamäki
4dc8794c69
Fixed #1082 (False positive: Resource leak in loop which exits only after releasing resource)
2009-12-13 19:50:49 +01:00
Daniel Marjamäki
829a4f8453
Fixed #1084 (define configuration lost)
2009-12-13 17:18:27 +01:00
Daniel Marjamäki
b4a454fc47
Fixed #1058 (Preprocessor: extracting configuration for '#if DEF == 1')
2009-12-13 15:23:44 +01:00
Daniel Marjamäki
01cfa3b6bd
Fixed #1072 (False positive: class member initialization with '*p=0;')
2009-12-13 09:36:59 +01:00
Daniel Marjamäki
e3e39fc073
removed deprecated file using_gcov.txt
2009-12-12 21:30:50 +01:00
Daniel Marjamäki
bc808710a0
Fixed #1097 (Internal error: When macro is not expanded 'ABC(for (i=0;i<10;i++) ..);')
2009-12-12 19:58:19 +01:00
Daniel Marjamäki
1002457b17
Fixed #1074 (Exception safety: auto deallocated classes don't leak)
2009-12-12 18:56:26 +01:00
Daniel Marjamäki
c6f913ac3e
Preprocessor: Fixed TODO_ASSERT_EQUALS
2009-12-11 22:32:44 +01:00