422 Commits

Author SHA1 Message Date
Daniel Marjamäki
6fc59b0257 Fixed (inline cmd // cppcheck-suppress does not work anymore for 1.48) 2011-04-22 20:25:17 +02:00
Martin Exner
2b08744b97 Fixed (setVarId: variables with global scope qualification :: don't get varids) 2011-04-18 06:56:39 +02:00
Daniel Marjamäki
58dbbb0cab Inconclusive checking: Report inconclusive errors with reportInconclusiveError. It takes the same parameters as reportError. 2011-04-14 18:02:01 +02:00
Daniel Marjamäki
e5d43d4ed2 Renamed Settings::stupid to Settings::experimental 2011-04-10 15:55:08 +02:00
Daniel Marjamäki
30ee9ba6e4 Added Settings::stupid flag that can be used to hide checking that generates false positives. 2011-04-10 13:23:45 +02:00
Daniel Marjamäki
76679255a3 Preprocessor: Use %oror% in multiCompare pattern 2011-04-10 11:50:19 +02:00
Daniel Marjamäki
e94e3eca82 Preprocessor: Use %oror% in multiCompare pattern 2011-04-10 11:47:49 +02:00
Daniel Marjamaki
fbc8223a6b Preprocessor: Fixed expandMacros problem. Ticket: 2011-04-07 16:53:42 +02:00
Daniel Marjamäki
b5bdb9eeae fixed gcc compiler warning 2011-04-06 21:40:50 +02:00
Daniel Marjamaki
cb473a48b7 Preprocessor: Use Settings::debugwarnings instead of NDEBUG to determine if 'missing system include' should be reported or not 2011-04-06 19:49:04 +02:00
Stefan Weil
675e63b6a7 Spell checks 2011-03-30 16:45:31 +02:00
Daniel Marjamäki
a177fc4b24 Preprocessor: made sure string::iterator is valid after string::erase 2011-03-07 22:00:30 +01:00
Daniel Marjamäki
80235b0d53 astyle formatting 2011-03-06 21:15:58 +01:00
Greg Hewgill
7daa6b9370 Always pass unsigned char to ::isspace to prevent runtime error in MSVC 2011-03-07 07:58:44 +13: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 ) 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
cc7e05a5b0 fix case where fall through comment precedes preprocessor line 2011-03-05 00:45:58 +13:00
Greg Hewgill
1a606a57fd slightly more flexible detection of 'fall through' comment 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
93ea774484 initial simplistic implementation of switchCaseFallThrough 2011-03-05 00:45:57 +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
Daniel Marjamäki
96c85104ab astyle formatting 2011-02-26 20:09:14 +01:00
Daniel Marjamäki
ab2bf0ee0c Fixed (false positive: Preprocessor does not ignore #include within #if 0 block) 2011-02-26 10:04:38 -08:00
Daniel Marjamäki
32a49235e3 Fixed (Preprocessor does not correctly handle #define A 0 / #if A) 2011-02-23 13:08:24 -08:00
Daniel Marjamäki
9983aa5721 Fixed (cppcheck hangs with 100% cpu load ( #define = )) 2011-02-22 19:55:02 +01:00
Daniel Marjamäki
c52704e636 astyle formatting 2011-02-20 21:00:03 +01:00
Daniel Marjamäki
c3fba356c0 Fixed (#if equality testing does not ignore parentheses) 2011-02-20 20:57:28 +01:00
Greg Hewgill
98ab34b2b5 Support cppcheck-suppression in C style comments 2011-02-20 11:44:42 +13:00
Ettl Martin
d2a1d3f14a fixed pre/post increment warings, found during selfcheck 2011-02-13 23:57:07 +01:00
Daniel Marjamäki
227a6100f7 astyle formatting 2011-02-11 19:31:37 +01:00
Greg Hewgill
f2f2d1f885 Fixed (Preprocessor: better handling for #undef) 2011-02-11 18:51:22 +01:00
Greg Hewgill
751f8d46e5 Fixed (Preprocessor: #define parsing when there is no whitespace between a macro symbol and its double-quoted string expansion) 2011-02-11 18:01:27 +01:00
Erik Lax
b3e8ef9d48 Fixed (Refactoring Preprocessor::read) 2011-02-11 06:30:42 +01:00
Daniel Marjamäki
7c9e52546d Fixed (preprocessor check XX is already guaranteed to be defined -- too eager?) 2011-02-07 20:26:29 +01:00
Raphael Geissert
8d5863133c Use Token::simpleMatch where no patterns are used 2011-02-02 13:27:01 -06:00
Raphael Geissert
386de53ff7 Formatting, sorry 2011-01-30 20:37:37 -06:00
Raphael Geissert
29ca5fbe1e Minor optimisations to the preprocessor 2011-01-30 18:47:49 -06:00
Raphael Geissert
b4a249f26e Reduce std::string::find() abuse 2011-01-30 18:40:59 -06:00
Raphael Geissert
66253af1e5 Handle "#endif !defined" conditionals 2011-01-30 17:33:44 -06:00
Raphael Geissert
b944168bdc Check for cpp conditionals where a define is already guaranteed 2011-01-30 12:47:17 -06:00
Raphael Geissert
49848fd752 Remove duplicated defines
After simplifying define(A) conditionals, the final list of
configurations could end up containing duplicate items.

Ticket 
2011-01-30 02:13:32 -06:00
Pete Johns
9c300813a4 Fixed gcc warning. 2011-01-17 08:52:26 +11:00
Kimmo Varis
846d3dae99 Accept include paths ending with backslash.
Convert include path to use internal path separators when parsing
command line. Convert back to native separators when using paths.

Ticket  (Error in handling -I command line parameter)
2011-01-11 21:04:21 +02:00
Reijo Tomperi
226b605774 Change year 2010 -> 2011 in license texts. 2011-01-09 21:33:36 +02:00
Daniel Marjamäki
d27b6a1598 astyle formatting 2011-01-07 20:48:02 +01:00
Daniel Marjamäki
989e0e7ccb Preprocessor: fix bug when determining location when there is a missing include. ticket: 2011-01-07 19:48:51 +01:00