Daniel Marjamäki
|
4522bcd680
|
reverted accidental changes committed in [1330]
|
2009-03-04 17:10:28 +00:00 |
Daniel Marjamäki
|
8b7a5dd494
|
fixed tokenizer problem when reading char constants
|
2009-03-04 17:02:45 +00:00 |
Daniel Marjamäki
|
5c1d4f2703
|
simplify calculations better
|
2009-03-04 06:24:03 +00:00 |
Daniel Marjamäki
|
547f120ee9
|
known variables: better handling of ++ and --
|
2009-03-04 06:03:51 +00:00 |
Reijo Tomperi
|
832275bc37
|
Fix #132 (False positive returning memcpy())
|
2009-03-03 20:39:17 +00:00 |
Reijo Tomperi
|
69c23301db
|
Fix ticket Add/Change #125 (the printout of the token list is wrong)
|
2009-03-03 20:17:23 +00:00 |
Reijo Tomperi
|
054518f002
|
Refactoring: Combined printOut() and stringifyList() in Token class
|
2009-03-03 19:45:58 +00:00 |
Daniel Marjamäki
|
37c889ab30
|
unused private function: better handling of initialization lists in constructors
|
2009-03-02 20:40:24 +00:00 |
Vesa Pikki
|
e629db6818
|
Now adds directory contents to list of files to check.
Only adds proper (.cpp,.c,.cpp,...) files to the list of files to check.
Modified checkthread to clear results after each file.
|
2009-03-02 19:56:51 +00:00 |
Daniel Marjamäki
|
86050cccdb
|
unused private function: fixed false positive (ticket: 129)
|
2009-03-02 17:16:02 +00:00 |
Daniel Marjamäki
|
87b0314e72
|
memory leak: fixed issue with reporting wrong location
|
2009-03-01 20:34:04 +00:00 |
Reijo Tomperi
|
d4ecddd53c
|
Fixed some compiling warnings by adding more error checking.
|
2009-03-01 20:08:47 +00:00 |
Daniel Marjamäki
|
fdaa1af694
|
removed deprecated flag 'firstMatch'
|
2009-03-01 20:02:24 +00:00 |
Reijo Tomperi
|
015143b56c
|
Copyright fixes
|
2009-03-01 19:59:13 +00:00 |
Reijo Tomperi
|
ea30d78405
|
Fixing compile problem with new gcc
|
2009-03-01 19:56:27 +00:00 |
Reijo Tomperi
|
fc8f47145a
|
Copyrights updated
|
2009-03-01 19:52:33 +00:00 |
Reijo Tomperi
|
f6848f14ad
|
Fixed another --style problem with our code
|
2009-03-01 19:38:17 +00:00 |
Reijo Tomperi
|
6495912d9a
|
Fixed bug, -j option produced duplicate error messages.
|
2009-03-01 19:34:32 +00:00 |
Reijo Tomperi
|
d098b62975
|
Use reference instead of string copy (fixes some --style warnings from our code)
|
2009-03-01 19:30:51 +00:00 |
Daniel Marjamäki
|
60b3bbdea4
|
removed the '--vcl' flag from the console app
|
2009-03-01 19:10:48 +00:00 |
Daniel Marjamäki
|
c7b068c174
|
variable id: fixed so that the variable ids are assigned correctly (ticket:126)
|
2009-03-01 16:37:02 +00:00 |
Daniel Marjamäki
|
4e465f7073
|
variable declarations: don't simplify when declaring and assigning array in the same statement
|
2009-02-28 20:40:37 +00:00 |
Daniel Marjamäki
|
c3bbd603c0
|
variable id: handling 'return' and 'else' better
|
2009-02-28 20:21:48 +00:00 |
Daniel Marjamäki
|
7d9bf491ec
|
sizeof: fixed a problem with 'sizeof(varname)' but there are more to fix with it
|
2009-02-28 08:34:02 +00:00 |
Reijo Tomperi
|
42176f52ca
|
Added Cppcheck::clearFiles() function.
|
2009-02-27 19:39:50 +00:00 |
Daniel Marjamäki
|
6b7b27a2e8
|
simplify known variable: don't simplify this ';i++;'
|
2009-02-27 18:25:47 +00:00 |
Daniel Marjamäki
|
c991aded12
|
unused functions: fixed false positives
|
2009-02-27 16:36:37 +00:00 |
Daniel Marjamäki
|
f4a8bc85f2
|
simplify tokens: fixed bug when removing redundant parantheses around variable
|
2009-02-27 06:07:38 +00:00 |
Daniel Marjamäki
|
c1da4ae57d
|
simplify tokens: remove redundant parantheses around variable.. 'p = (q);'
|
2009-02-25 19:55:24 +00:00 |
Daniel Marjamäki
|
35583293ec
|
memory leak: Fixed a false positive when all is given
|
2009-02-25 19:20:23 +00:00 |
Daniel Marjamäki
|
dac1e91013
|
unused private function: Handle 'embedded' function implementations better
|
2009-02-25 18:03:17 +00:00 |
Daniel Marjamäki
|
4849aaa7ee
|
checkclass: refactoring
|
2009-02-24 17:50:51 +00:00 |
Daniel Marjamäki
|
66c13c7173
|
reverted [1282] because some changes were committed by mistake
|
2009-02-24 17:49:43 +00:00 |
Daniel Marjamäki
|
8c3e3faa07
|
checkclass: refactoring
|
2009-02-24 17:48:11 +00:00 |
Daniel Marjamäki
|
159332fde4
|
sizeof fix. classes and structs are always given the size 100. This removes false positives about mismatching size
|
2009-02-24 16:30:57 +00:00 |
Daniel Marjamäki
|
1e3047b9c2
|
simplify tokens: simplify known variable value handles ++ and -- better
|
2009-02-24 16:11:37 +00:00 |
Daniel Marjamäki
|
d15aea1b0c
|
memory leak: fixed false positive when using 'return strcpy'
|
2009-02-24 06:23:21 +00:00 |
Daniel Marjamäki
|
44a5cecd99
|
memory leaks: improved handling of --vcl
|
2009-02-23 19:32:54 +00:00 |
Reijo Tomperi
|
a7b0c30884
|
Change -w to -j to make it similar with make and scons.
|
2009-02-22 18:38:10 +00:00 |
Kimmo Varis
|
c50493e940
|
Windows RC file is ANSI file, storing as UTF-8 messes it up.
|
2009-02-22 14:55:29 +00:00 |
Reijo Tomperi
|
033a82d3f2
|
Members of ErrorLogger::ErrorMessage made public for better access to them.
|
2009-02-22 11:29:33 +00:00 |
Reijo Tomperi
|
a64f1d6175
|
CppCheck::addFile() accepts paths also now.
|
2009-02-22 11:17:17 +00:00 |
Daniel Marjamäki
|
d8927e720d
|
constructors: don't warn about missing constructor if class only has static variable members
|
2009-02-21 13:35:55 +00:00 |
Daniel Marjamäki
|
08f76279ed
|
buffer overrun: catch cases when using cin to read to a char array
|
2009-02-21 12:22:04 +00:00 |
Daniel Marjamäki
|
5269e38ae2
|
security: renamed classes
|
2009-02-21 12:12:31 +00:00 |
Daniel Marjamäki
|
b826d2e41b
|
security: Renamed files
|
2009-02-21 12:07:19 +00:00 |
Daniel Marjamäki
|
a9009ebf7d
|
TestClass: Added test for uninitialized "mutable int i"
|
2009-02-21 08:24:57 +00:00 |
Daniel Marjamäki
|
ed86d924df
|
buffer overrun: dangerous usage of strncpy+strncat
|
2009-02-20 21:16:07 +00:00 |
Daniel Marjamäki
|
15e86db3ed
|
buffer overrun: Added checking of strncat
|
2009-02-20 21:00:59 +00:00 |
Daniel Marjamäki
|
7f94091b9f
|
g++: fixed compiler errors
|
2009-02-20 19:53:14 +00:00 |
Reijo Tomperi
|
61587c42ae
|
Fix ticket #113 (Add support for multi core CPUs and -w parameter to specifify amount of worker threads)
|
2009-02-20 19:40:42 +00:00 |
Daniel Marjamäki
|
439b8c4051
|
simplify known variables: variable used as array index
|
2009-02-20 17:27:57 +00:00 |
Daniel Marjamäki
|
385be6d0d9
|
memory leak: Added command line flag '--vcl' that is used to suppress error messages for VCL code
|
2009-02-20 06:28:18 +00:00 |
Reijo Tomperi
|
4fc774deda
|
Multicore cpu support for Linux (currently disabled and compiling produces warnings)
"no errors" output removed.
|
2009-02-19 22:21:18 +00:00 |
Daniel Marjamäki
|
efeaac736d
|
security: added simple gui checking
|
2009-02-19 17:57:27 +00:00 |
Daniel Marjamäki
|
4e1f19a366
|
input validation: added checking
|
2009-02-19 08:03:14 +00:00 |
Daniel Marjamäki
|
2b04c94b95
|
stl push_back: Added check (invalid iterator)
|
2009-02-18 19:57:43 +00:00 |
Daniel Marjamäki
|
f30d7db1e8
|
activated the Tokenizer::elseif functionality
|
2009-02-17 20:03:08 +00:00 |
Daniel Marjamäki
|
1043b76d31
|
Added Tokenizer::elseif for breaking up 'else if' into 'else { if ..'
|
2009-02-17 19:18:26 +00:00 |
Daniel Marjamäki
|
4aef89c311
|
tokenizer: fixed issues related to variable ids
* use setVarId in simplifyTokenList
* make sure function parameters and variables declared in for example for loops get variable ids
|
2009-02-16 17:41:33 +00:00 |
Reijo Tomperi
|
ba28c07f9d
|
astyle fix
|
2009-02-15 18:47:24 +00:00 |
Daniel Marjamäki
|
b1982b2041
|
tokenizer: improved the simplification of '*(var+num)' => 'var[num]'
|
2009-02-15 14:02:57 +00:00 |
Daniel Marjamäki
|
56d685c179
|
tokenizer: Remove redundant parantheses around number. Ticket: #105
|
2009-02-15 13:28:54 +00:00 |
Daniel Marjamäki
|
265ef0f4a5
|
Tokenizer: Fixed bug in tokenizer that removed '\' from preprocessor lines
Ticket: #106
|
2009-02-15 11:42:04 +00:00 |
Daniel Marjamäki
|
cc63506b03
|
FileLister: handle '\\' path separator the same way '/' is handled
|
2009-02-15 11:26:00 +00:00 |
Daniel Marjamäki
|
6b52ee03cf
|
filelister: use '\\' instead of '/' in windows paths
|
2009-02-15 07:58:34 +00:00 |
Reijo Tomperi
|
45c30f0c87
|
Code comments updated
|
2009-02-14 22:03:55 +00:00 |
Reijo Tomperi
|
7ef9e870cd
|
Code comments updated
|
2009-02-14 22:00:19 +00:00 |
Reijo Tomperi
|
1e07847ecf
|
Constant variable converting converted struct members (foo.a => foo.45) also, fixed that.
|
2009-02-14 21:33:28 +00:00 |
Reijo Tomperi
|
fba8c54758
|
Fix ticket #107 (Convert + + into + and + - into -) and add test case for it
|
2009-02-14 20:56:08 +00:00 |
Reijo Tomperi
|
997cb071b7
|
astyle fix
|
2009-02-14 18:40:04 +00:00 |
Daniel Marjamäki
|
4a1488b1a9
|
tokenizer: tokenize '++', '--' and '>>' correctly
|
2009-02-14 10:13:50 +00:00 |
Reijo Tomperi
|
d1e9efc66a
|
Fix ticket #104 (Change (error) Uninitialized member variable -> (style) Member variable not initialized in the constructor)
|
2009-02-14 08:52:03 +00:00 |
Daniel Marjamäki
|
6282b5dee8
|
debug output: commented out the code for writing token listing
|
2009-02-14 08:49:20 +00:00 |
Daniel Marjamäki
|
5c1995ca81
|
memory leak: handle 'delete (p)' and 'delete [] (p)'. Fixes ticket 102
|
2009-02-14 06:54:23 +00:00 |
Daniel Marjamäki
|
17fbab018c
|
simplify known value: insert known variable value into calculations
|
2009-02-14 06:11:37 +00:00 |
Leandro Penz
|
de80baeea1
|
Preprocessor: support for ##-comma-eating in variadic macros; passing now fmt2 test.
|
2009-02-13 13:34:24 +00:00 |
Leandro Penz
|
127a910516
|
Tokenizer: fixed ## tokenization.
|
2009-02-13 13:33:12 +00:00 |
Leandro Penz
|
d511863b57
|
Preprocessor: initial variadic macro support; passing now on fmt1 case.
|
2009-02-13 13:31:40 +00:00 |
Daniel Marjamäki
|
8485e95341
|
Token::stringifyList: Added function that stringifies a token list
|
2009-02-13 06:25:29 +00:00 |
Reijo Tomperi
|
030b35c975
|
Added test case double_plus and improved Token::printOut
|
2009-02-12 20:32:59 +00:00 |
Reijo Tomperi
|
5d3574bb03
|
Fix ticket #100 (Simplify constants simplifies leaks out from variable scope and simplifies whole file)
|
2009-02-12 19:26:42 +00:00 |
Daniel Marjamäki
|
4f121daca4
|
buffer overruns: added simple support for initialized array
|
2009-02-12 19:11:52 +00:00 |
Leandro Penz
|
62a49282eb
|
Incomplete statements: removed false positive when setting array of structures or multi-dimensional arrays.
|
2009-02-12 12:59:43 +00:00 |
Daniel Marjamäki
|
f4a3119c18
|
stl dangerous usage of erase: Added test cases about using return and goto
|
2009-02-11 16:20:32 +00:00 |
Daniel Marjamäki
|
ba3752feb6
|
buffer overrun: improved checking of global variables
|
2009-02-11 16:12:29 +00:00 |
Leandro Penz
|
4c93b4928b
|
Incomplete statement: fixed and enabled intarray test case.
|
2009-02-11 15:17:13 +00:00 |
Daniel Marjamäki
|
7858ac9ab8
|
checkbufferoverrun: cleaned up the header includes
|
2009-02-11 05:16:10 +00:00 |
Daniel Marjamäki
|
eda1290e40
|
dangerous usage of erase: added check
|
2009-02-11 05:08:29 +00:00 |
Reijo Tomperi
|
9b9223480d
|
Refactoring: reportErr takes now only one parameter, ErrorLogger::ErrorMessage, which contains all required information and also some help
functions for formatting it for output.
|
2009-02-10 21:51:52 +00:00 |
Daniel Marjamäki
|
71b4e5a912
|
stl: added testcase for bad iterator usage
|
2009-02-10 20:01:39 +00:00 |
Reijo Tomperi
|
4660b7648d
|
Moved stloutofbounds check to CheckStl class.
|
2009-02-10 19:56:00 +00:00 |
Daniel Marjamäki
|
5dd1e84cf3
|
astyle coding style update
|
2009-02-10 19:41:22 +00:00 |
Daniel Marjamäki
|
c1638996f9
|
STL: added check for iterator usage
|
2009-02-10 19:40:21 +00:00 |
Reijo Tomperi
|
5721e4469b
|
stlOutOfBounds error message created
|
2009-02-10 19:36:49 +00:00 |
Reijo Tomperi
|
9dff3f4c52
|
Fix ticket #94 (STL container overrun). Check is currently behind --all
|
2009-02-09 22:25:44 +00:00 |
Reijo Tomperi
|
1373e14bc9
|
Fix ticket #93 (Write xml results into error stream instead of results.xml file.) and also refactor the
code to use ErrorLogger::reportErr() for all errors, for both xml and plain text. And move xml formatting
from Cppcheck to CppcheckExecutor.
|
2009-02-09 20:51:04 +00:00 |
Daniel Marjamäki
|
a5f88862b4
|
memory leak: keep track of --all better
|
2009-02-09 20:16:00 +00:00 |
Daniel Marjamäki
|
574db37a6f
|
uninitialized variables: added testcases and made a fix
|
2009-02-09 07:47:41 +00:00 |
Reijo Tomperi
|
fb3c81dcd9
|
Fix ticket #80 (refactoring: classes ErrorMessage and ErrorLogger), note that errormessage and errorlogger were merged, errormessage.* is no more.
|
2009-02-08 21:20:35 +00:00 |