Daniel Marjamäki
|
fad65663e5
|
tokenizer: tokenize ## better
|
2009-01-20 17:26:16 +00:00 |
Daniel Marjamäki
|
45661fed21
|
tokenizer: added testcase with include files. It should be fixed.
|
2009-01-20 17:05:42 +00:00 |
Reijo Tomperi
|
df5adc5f4f
|
Added test case preprocessor_doublesharp, executed ./runastyle for errormessage.h
|
2009-01-19 21:45:59 +00:00 |
Reijo Tomperi
|
4d0e3dac45
|
Added a test case and fixed bug. If #include was inside a string, cppcheck hanged in preprocessor.
|
2009-01-19 19:24:41 +00:00 |
Reijo Tomperi
|
de28502bb1
|
Fixed bug in line numbers and enabled test case that spots it.
|
2009-01-19 18:51:27 +00:00 |
Daniel Marjamäki
|
7b90246198
|
testtokenize: Added test "file1". It currently fails.
|
2009-01-19 18:40:24 +00:00 |
Daniel Marjamäki
|
835fa1f007
|
testtokenize: Removed unneeded test case "define1"
|
2009-01-19 17:47:12 +00:00 |
Daniel Marjamäki
|
a9851f44c1
|
testpreprocessor: Removed test that doesn't work now that the preprocessor handles includes
|
2009-01-19 16:42:20 +00:00 |
Nicolas Le Cam
|
f6d121443e
|
unreachableCode: Moved warning of a break statement following a return in --style; Added a test case; Minor optimization.
|
2009-01-18 21:19:02 +00:00 |
Leandro Penz
|
e930525aa4
|
functionVariableUsage: no longer SIGSEGVs on unfinished struct. Fixes Ticket #31.
|
2009-01-18 19:45:43 +00:00 |
Daniel Marjamäki
|
f409861492
|
strPlusChar: Fixed false positives
|
2009-01-18 17:42:41 +00:00 |
Daniel Marjamäki
|
c7311b4b3c
|
preprocessor: make sure macros are not expanded when they are found in strings
|
2009-01-18 16:58:57 +00:00 |
Daniel Marjamäki
|
965daabe60
|
preprocessor: Make sure that "#define ABC (a+b+c)" is expanded correctly
|
2009-01-18 16:56:12 +00:00 |
Daniel Marjamäki
|
ea686a1da9
|
preprocessor: fixed so the TestPreprocessor::preprocessor_undef succeeds
|
2009-01-18 16:37:40 +00:00 |
Reijo Tomperi
|
d31e0ae8a1
|
Fix compile warning signed-unsigned
|
2009-01-18 11:14:35 +00:00 |
Reijo Tomperi
|
8155b9272f
|
Refactoring: Style applied
|
2009-01-18 11:13:25 +00:00 |
Daniel Marjamäki
|
4ee4645858
|
Preprocessor: Reverted [1008] - The old expandMacros was readded
|
2009-01-18 10:54:07 +00:00 |
Daniel Marjamäki
|
e315595c36
|
Tokenizer: Added unit test to check that define is tokenized correctly
|
2009-01-18 08:52:20 +00:00 |
Daniel Marjamäki
|
a269cfc8d9
|
tokenizer: The tokenizer shouldn't handle comments nor preprocessor directives. The preprocessor will take care of
that
|
2009-01-18 08:38:25 +00:00 |
Daniel Marjamäki
|
86c95c27d2
|
Preprocessor: Removed "Preprocessor::expandMacros" and commented all its tests
|
2009-01-18 07:32:06 +00:00 |
Reijo Tomperi
|
58b398a4a8
|
Fix Ticket #32 False positive with --style: Uninitialized member variable (when stream is used)
|
2009-01-17 20:17:57 +00:00 |
Reijo Tomperi
|
f6452e3613
|
Test case for Ticket #32
|
2009-01-17 19:26:58 +00:00 |
Daniel Marjamäki
|
b9b250f4cc
|
unused var: fixed false positives when using shift operator
|
2009-01-17 14:32:02 +00:00 |
Daniel Marjamäki
|
8780fbf8bb
|
bounds checking: Added error message "snprintf size is out of bounds"
|
2009-01-17 13:09:02 +00:00 |
Daniel Marjamäki
|
a5e2787f72
|
errmsg: added varname to the message "deallocating a deallocated pointer"
|
2009-01-17 11:15:46 +00:00 |
Daniel Marjamäki
|
121c0ee58f
|
unused variable: reading the value of variable in a for loop.. "for(;a;)" see ticket #18
|
2009-01-17 11:12:15 +00:00 |
Daniel Marjamäki
|
f562f588fb
|
memory leak: detect memory leak (#6)
|
2009-01-17 07:55:40 +00:00 |
Daniel Marjamäki
|
666fc82011
|
Memory leak: Fixed false positives about deallocating pointer that has already been deallocated
|
2009-01-16 16:29:41 +00:00 |
Daniel Marjamäki
|
4cfb8ad1cb
|
memory leaks: Added checking of deallocate to see that the pointer isn't deallocated already
|
2009-01-15 20:34:39 +00:00 |
Daniel Marjamäki
|
66e93b24e2
|
str plus char: added simple variable handling
|
2009-01-15 17:12:33 +00:00 |
Daniel Marjamäki
|
8bbd4b9401
|
str plus char: Added check and error message for str + ch
|
2009-01-15 16:57:51 +00:00 |
Daniel Marjamäki
|
03cfe18c9b
|
errmsg: Added 'condition is always true/false'
|
2009-01-14 19:43:28 +00:00 |
Daniel Marjamäki
|
22583269c1
|
Uninitialized member variables: Checking enum variables
|
2009-01-14 19:34:10 +00:00 |
Daniel Marjamäki
|
97a7bc383d
|
memory leak: Added test case
|
2009-01-14 16:40:07 +00:00 |
Daniel Marjamäki
|
a604f56f19
|
buffer overruns: added sprintf checking
|
2009-01-14 06:29:35 +00:00 |
Daniel Marjamäki
|
f7e4f13ecd
|
Memory leak: Readded some checking to classes
|
2009-01-14 05:58:20 +00:00 |
Leandro Penz
|
1a14cd527c
|
functionVariableUsage: support for nested struct/union declaration.
|
2009-01-14 00:45:44 +00:00 |
Daniel Marjamäki
|
e664f255a4
|
Memory leak: Fixed a false positive
|
2009-01-13 18:30:39 +00:00 |
Daniel Marjamäki
|
c1a4e9b000
|
testpreprocessor: commented the "undef" test that doesn't work
|
2009-01-12 19:23:01 +00:00 |
Reijo Tomperi
|
ee54d4da91
|
Added test case which currently fails, #undef is not handled
|
2009-01-12 18:23:53 +00:00 |
Daniel Marjamäki
|
15a32103e2
|
testdivision: The 'unsigned division' is a style check
|
2009-01-12 17:20:32 +00:00 |
Daniel Marjamäki
|
980b10bfc9
|
errmsg: Added 'unsigned division'
|
2009-01-12 17:12:14 +00:00 |
Daniel Marjamäki
|
153487d504
|
preprocessor: Style updates
|
2009-01-12 06:43:56 +00:00 |
Daniel Marjamäki
|
eb8675ab76
|
preprocessor: Handle newlines better
|
2009-01-12 06:33:06 +00:00 |
Daniel Marjamäki
|
ea6c48b2bd
|
preprocessor: fixed a small bug when expanding macro without parameter
|
2009-01-11 16:06:37 +00:00 |
Daniel Marjamäki
|
da881fdd0a
|
preprocessor: Fixed bug when expanding macros without parameters
|
2009-01-11 15:51:46 +00:00 |
Daniel Marjamäki
|
ecdfee850d
|
preprocessor: expand macro without parameters
|
2009-01-11 15:07:13 +00:00 |
Daniel Marjamäki
|
da46e4bd96
|
struct member usage: bail out the check if the struct contain any functions
|
2009-01-11 14:39:52 +00:00 |
Daniel Marjamäki
|
2e77f3bf04
|
setVarId: Fixed bug (variable id for struct member not correctly set)
|
2009-01-11 10:03:21 +00:00 |
Daniel Marjamäki
|
e42953bd3b
|
preprocessor: Added a test to see that "<backslash><newline>" is handled correctly inside strings
|
2009-01-11 08:16:15 +00:00 |