Commit Graph

23 Commits

Author SHA1 Message Date
Daniel Marjamäki 8a02641ffd removeRedundantConditions : Added a simple test case for "else if (false)" 2008-12-26 15:46:59 +00:00
Daniel Marjamäki 79519f5bde removeRedundantConditions : Fixed the test case added in [777] 2008-12-26 15:42:04 +00:00
Daniel Marjamäki 9ae5c15e17 removeReduntantConditions : Added test case 2008-12-26 14:43:16 +00:00
Reijo Tomperi b9494c8081 removeReduntantConditions() can now handle if( true ) else if () conditions also. 2008-12-26 12:55:53 +00:00
Daniel Marjamäki 5a91a2ea12 simplifyIfAddBraces : Further fixes so that braces will be added to an "else" statement too 2008-12-23 08:11:33 +00:00
Daniel Marjamäki 7fda68c662 simplifyIfAddBraces : Added check to cppcheck as it seems to work pretty good now 2008-12-22 20:49:56 +00:00
Reijo Tomperi 85e6ab5226 More improvement to removeReduntantConditions() and few tests for it also 2008-12-21 21:04:58 +00:00
Reijo Tomperi 56c1a91e67 Few tests added for checking simplify of if sentences 2008-12-21 15:10:44 +00:00
Reijo Tomperi e272630604 Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
Nicolas Le Cam a5fa323a0b Formatting: uniformize end of lines. 2008-12-18 21:28:57 +00:00
Nicolas Le Cam 4b04d38867 Refactoring: changed "aaaa" to "str" 2008-12-13 11:52:56 +00:00
Nicolas Le Cam aaabacfe87 Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
Nicolas Le Cam eb80c9786f Revert revisions 627 and 628 2008-12-08 23:41:34 +00:00
Nicolas Le Cam e8d2c7cfb3 Formatting: uniformize end of lines (part 2) 2008-12-08 23:10:13 +00:00
Nicolas Le Cam 625b77ec33 Formatting: uniformize end of lines. 2008-12-08 23:06:19 +00:00
Reijo Tomperi 51024235a3 Refactoring: TOKEN::next renamed to _next, getter and setter functions for it added next() and next(TOKEN*). 2008-12-08 21:49:05 +00:00
Daniel Marjamäki 8845e8bc89 Refactoring: Tokenizer - renaming functions, moved the 'tokenizeCode' to the private section 2008-11-25 18:34:51 +00:00
Daniel Marjamäki bc267bbca5 TOKEN: Refactoring the 'str' member variable 2008-11-24 19:38:08 +00:00
Daniel Marjamäki 07b5ebe72b Check Function Usage: Removed much of the old checking and made some refactoring 2008-11-22 19:39:12 +00:00
Reijo Tomperi 51e9d98a5f Refactoring: Errors are no longer logged via global functions to a global stream. Instead callback function is used via interface.
ErrorLogger interface was added and taken into use.
2008-11-20 22:19:26 +00:00
Reijo Tomperi aa579911ab Refactoring: Global variable tokenes is no more. 2008-11-16 15:58:52 +00:00
Daniel Marjamäki adad786d75 SimplifyTokens: Replace 'sizeof(*abc)' with '100'. This prevents false positives in checks 2008-11-15 17:21:35 +00:00
Daniel Marjamäki 1801f25bce Simplify Tokens: Replace NULL with 0 and '(char *)0' with '0' 2008-11-15 16:27:09 +00:00