Daniel Marjamäki
|
f53ff27b71
|
Tokenizer::simplifyTemplates: better handling of '(foo<double>())'. Ticket: #2631
|
2011-03-06 21:15:42 +01:00 |
Daniel Marjamäki
|
6648267ab8
|
Revert "Tokenizer::simplifyTemplates: better handling of '(foo<double>())'. Ticket: #2631"
This reverts commit de31ec1e44 .
|
2011-03-06 21:07:06 +01:00 |
Daniel Marjamäki
|
de31ec1e44
|
Tokenizer::simplifyTemplates: better handling of '(foo<double>())'. Ticket: #2631
|
2011-03-06 10:28:51 -08:00 |
Daniel Marjamäki
|
779dba9160
|
Fixed #2612 (segmentation fault of cppcheck ( <><< ))
|
2011-03-06 09:33:46 +01:00 |
Robert Reif
|
0debba4409
|
finish fixing #2624 (better function pointer support needed)
|
2011-03-05 21:41:58 -05:00 |
Robert Reif
|
7d2fb2ecde
|
partial fix for #2624 (better function pointer support needed)
|
2011-03-05 20:48:28 -05:00 |
Greg Hewgill
|
b9df7735c5
|
switchCaseFallThrough is now an inconclusive check
|
2011-03-06 13:06:30 +13:00 |
Greg Hewgill
|
c8394909c0
|
Relax detection of 'fall through' comment so it only adds a suppression if it immediately precedes 'case' or 'default'
|
2011-03-06 12:14:10 +13:00 |
Greg Hewgill
|
8c245cfd2f
|
switchCaseFallThrough is now a coding style check (ticket #2623)
|
2011-03-06 09:43:27 +13:00 |
Greg Hewgill
|
e12ae654a8
|
Support a few more common styles of "fall through" comment
|
2011-03-05 18:02:38 +13:00 |
Greg Hewgill
|
c30125111a
|
Merge branch 'switch-case-fall-through'
|
2011-03-05 00:55:33 +13:00 |
Greg Hewgill
|
c5f8a06a97
|
add TODO for case where simplifyGoto() does the wrong thing
|
2011-03-05 00:45:59 +13:00 |
Greg Hewgill
|
cc7e05a5b0
|
fix case where fall through comment precedes preprocessor line
|
2011-03-05 00:45:58 +13:00 |
Greg Hewgill
|
8e839a46e8
|
add TODO for pathological case
|
2011-03-05 00:45:58 +13:00 |
Greg Hewgill
|
70fcbe94f4
|
avoid warning on first case (in case there are declarations before first case)
|
2011-03-05 00:45:58 +13:00 |
Greg Hewgill
|
610d2efaea
|
recognise fall through in c style comments
|
2011-03-05 00:45:58 +13:00 |
Greg Hewgill
|
a532a9690e
|
full implementation of switch case fall through
|
2011-03-05 00:45:57 +13:00 |
Greg Hewgill
|
93ea774484
|
initial simplistic implementation of switchCaseFallThrough
|
2011-03-05 00:45:57 +13:00 |
Robert Reif
|
f3b2acf585
|
really fix #2620 reference of typedef of array not simplified properly
|
2011-03-03 20:32:10 -05:00 |
Daniel Marjamäki
|
d7a6e729b8
|
Tokenizer::simplifyKnownVariables: Don't simplify 'strcpy(a,"ab"); b=a;'. Ticket: #2031
|
2011-03-03 20:07:56 +01:00 |
Robert Reif
|
3f0d0446e0
|
revert previous commit: simplified code isn't correct
|
2011-03-03 07:40:43 -05:00 |
Robert Reif
|
ee4b4f62d8
|
fix #2620 reference of typedef of array not simplified properly
|
2011-03-03 07:27:53 -05:00 |
Robert Reif
|
c9b2ab3c26
|
add debug message for function argument missing varid
|
2011-03-02 21:08:27 -05:00 |
Daniel Marjamäki
|
8e9a1c33ad
|
Fixed #2618 (Tokenizer::simplifyKnownVariables: Don't use known string value if address is wanted)
|
2011-03-01 20:20:48 +01:00 |
Daniel Marjamäki
|
db04d7b71e
|
Fixed #2616 (Segmentation fault with unknown macro)
|
2011-03-01 18:02:50 +01:00 |
Daniel Marjamäki
|
a2d2d93958
|
astyle formatting
|
2011-03-01 17:58:15 +01:00 |
Greg Hewgill
|
baf50c6db1
|
add TODO for #elif inside #if 0 processing, also for #if 1
|
2011-03-01 20:24:03 +13:00 |
Greg Hewgill
|
2efb2efaca
|
refactor #if 0 handling to leave preprocessor statements alone
|
2011-03-01 20:04:11 +13:00 |
Greg Hewgill
|
a331516735
|
handle #if (0) after removing parentheses
|
2011-03-01 19:50:17 +13:00 |
Greg Hewgill
|
31c56d7353
|
handle embedded whitespace in #if 0 processing
|
2011-03-01 19:32:47 +13:00 |
Greg Hewgill
|
87fd55b155
|
test case for #if 0 exclusion
|
2011-03-01 19:30:42 +13:00 |
Robert Reif
|
92efbd748e
|
fix #2595 bitfield fix for case x: break; and default: break;
|
2011-02-28 19:35:00 -05:00 |
Daniel Marjamäki
|
893b84a87c
|
Fixed #2615 (Segmentation fault in cppcheck 1.47)
|
2011-02-28 20:29:34 +01:00 |
Zachary Blair
|
e1b2569b81
|
Fixed #432 (New check: wrong usage of ! operator in conditions)
|
2011-02-27 12:30:22 -08:00 |
Robert Reif
|
962183f964
|
add an array flag to symbol database Variable class
|
2011-02-27 10:21:14 -05:00 |
Daniel Marjamäki
|
c1c9b96bb6
|
Fixed #2031 (Tokenizer: simplify known value (string has known value after strcpy))
|
2011-02-26 21:11:56 +01:00 |
Daniel Marjamäki
|
92ab1ef8e7
|
fix
|
2011-02-26 20:08:37 +01:00 |
Daniel Marjamäki
|
ab2bf0ee0c
|
Fixed #2575 (false positive: Preprocessor does not ignore #include within #if 0 block)
|
2011-02-26 10:04:38 -08:00 |
Daniel Marjamäki
|
32a49235e3
|
Fixed #2578 (Preprocessor does not correctly handle #define A 0 / #if A)
|
2011-02-23 13:08:24 -08:00 |
Daniel Marjamäki
|
daf0e7c37d
|
Fixed #2604 (Segmentation fault of cppcheck ( sizeof <= A ))
|
2011-02-23 20:44:14 +01:00 |
Greg Hewgill
|
b26777c962
|
Merge branch 'cmdline-suppress'
|
2011-02-23 21:34:09 +13:00 |
Greg Hewgill
|
22210e0255
|
add --suppress= command line option
|
2011-02-23 20:10:32 +13:00 |
Robert Reif
|
d1f7a8aca4
|
fix #2403 (simplifyTypedef: array of function pointers) Internal error message
|
2011-02-22 22:11:17 -05:00 |
Reijo Tomperi
|
7f9dc42ff1
|
Fix test array_index_24() to share code with environments where plain char is either signed or unsigned.
This was done, because that particular test has been already fixed a couple of times and it is still broken in some systems.
|
2011-02-22 21:46:12 +02:00 |
Daniel Marjamäki
|
9983aa5721
|
Fixed #2605 (cppcheck hangs with 100% cpu load ( #define = ))
|
2011-02-22 19:55:02 +01:00 |
Robert Reif
|
dd12fc177f
|
fix #2603 (segmentation fault of cppcheck ( typedef constexpr))
|
2011-02-22 07:48:34 -05:00 |
Robert Reif
|
703448171a
|
fix #2601 (segmentation fault of cppcheck)
|
2011-02-22 07:02:15 -05:00 |
Robert Reif
|
ba6c2ca310
|
fix #2602 (segmentation fault of cppcheck ( class A {A& operator=(const A&); }; ))
|
2011-02-22 06:47:28 -05:00 |
Robert Reif
|
4e1ce93104
|
fix #2600 (segmentation fault of cppcheck ( enum{const} ))
|
2011-02-21 19:30:40 -05:00 |
Robert Reif
|
999646fca6
|
fix #2599 (segmentation fault of cppcheck ( sizeof ))
|
2011-02-21 17:49:30 -05:00 |