665 Commits

Author SHA1 Message Date
Daniel Marjamäki
9c74d914d7 Fixed (Tokenizer: simplify 'void (X::*f)()' to 'void *f') 2014-04-27 19:49:21 +02:00
Daniel Marjamäki
aea528c763 enum: don't simplify enum constant that is assigned 2014-04-23 17:10:17 +02:00
Daniel Marjamäki
52e0e4453b Fixed (FP: pointer to array is not assigned a value.) 2014-04-21 16:14:49 +02:00
Daniel Marjamäki
6146c8f5bb Tokenizer: Fixed bad simplifyComma for code 'return a ? b = c , d : e ;' 2014-04-18 13:38:48 +02:00
Daniel Marjamäki
064844f8db Tokenizer: Fixed bad simplifyComma for code 'a ? b = c , d : e ;' 2014-04-17 18:47:55 +02:00
Daniel Marjamäki
9d51bfd015 Fixed (False positive: Same expression on both sides of '&') 2014-04-12 16:06:31 +02:00
PKEuS
d4765bccc3 Refactorized inefficient usage of std::string and const char[] (part 2). 2014-04-03 14:56:14 +02:00
PKEuS
e9411e05ba Refactorized inefficient usage of std::string and const char[]. 2014-04-02 13:56:34 +02:00
PKEuS
efe3f834be Refactorized handling of syntaxError: Print debug output, removed a few return values that are no longer required 2014-03-27 18:41:52 +01:00
PKEuS
7e4081f7f5 Treat syntaxError and cppcheckError as InternalErrors (throw as exception, ) 2014-03-27 13:15:21 +01:00
PKEuS
379807a8ea Fixed TODO_ASSERT_EQUAL and caused by bad simplification of return values. 2014-03-27 11:04:31 +01:00
PKEuS
5f2067e401 Refactorized dead code elimination:
- Use library to get noreturn functions
- Fixed do-while simplification ()
2014-03-23 10:59:41 +01:00
PKEuS
6395cb9b95 Syntax error on invalid enum () 2014-03-22 19:31:01 +01:00
PKEuS
a3f5beb75d Fixed problems with code "enum class { };" (which is valid C) 2014-03-18 16:23:30 +01:00
Lucas Manuel Rodriguez
9a08da17be Fixed (C++ operator aliases result in false 'assigned a value that is never used' warning) 2014-03-16 14:51:05 -03:00
PKEuS
e05fb847df Fixed : Support simplification of C++11 "enum class", fixed existing simplifications 2014-03-16 18:24:46 +01:00
Frank Zingsheim
b1dc51ba9c Fixed (Missing semicolon after simplified template class) 2014-03-12 06:09:45 +01:00
Daniel Marjamäki
fd3a8a2a18 Update copyright 2014-02-15 07:45:39 +01:00
Daniel Marjamäki
43db1ee797 value flow: use more specific bailouts when analysing value flow after assignment 2014-01-22 06:38:25 +01:00
Daniel Marjamäki
0203a4a6f5 Tokenizer: Removed simplifyGoto as it's the cause of various FPs I see 2014-01-17 17:36:45 +01:00
Daniel Marjamäki
4eb746d7cc Tokenizer: Removed simplifyComparisonOrder 2014-01-17 17:25:56 +01:00
Heinrich Schuchardt
f6510a6b45 Fixed (Tokenizer::setVarId : function-pointer function argument not getting variable id, causing FP) 2014-01-12 15:15:09 +01:00
Graham Whitted
86201c13cb Fixed (TemplateSimplifier::expandTemplate assertion failure) 2014-01-05 19:19:52 +01:00
PKEuS
4f0121ee2f Splitted simplification out of tokenize() 2013-12-30 17:45:28 +01:00
Daniel Marjamäki
41e4194573 Tokenizer: set links for <> in 'a=new b<c>;' code 2013-12-29 15:37:27 +01:00
Daniel Marjamäki
762806499f Fixed (Tokenizer::simplifyEnum: template function call as enum value) 2013-12-16 07:07:00 +01:00
Daniel Marjamäki
7938692b01 Fixed (Tokenizer::simplifyEnum bad simplification of enum value (1<<0)|(1<<1)) 2013-12-15 07:47:04 +01:00
Daniel Marjamäki
f599e3184c Fixed (Tokenizer: member function 'abort' returns) 2013-12-14 11:12:48 +01:00
Alexander Mai
38b2f6b9b0 Fixed (segmentation fault (invalid code) in Tokenizer::simplifyVarDecl) 2013-11-24 11:07:11 +01:00
Daniel Marjamäki
8cca41774d Fixed (Crash on complex C++ template) 2013-11-21 20:27:24 +01:00
Daniel Marjamäki
ef108c49ec Tokenizer: simplify enums better. add parentheses to enforce operator precedence. 2013-11-20 18:04:28 +01:00
Daniel Marjamäki
f8cf64afef Fixed (Template parser bug: const in constructor changes template names) 2013-11-19 06:07:25 +01:00
Daniel Marjam�ki
bcc8384a95 Fixed (False Positive: Variable 'A' hides enumerator with same name) 2013-11-03 09:34:48 +01:00
Daniel Marjamäki
c234cace6d Fixed (Tokenizer::simplifySizeof: Doesn't simplify 'sizeof !! (a==1);' properly) 2013-10-06 08:20:10 +02:00
Robert Reif
44559a1fb2 Fixed (sizeof(void) when variable name is override) 2013-10-05 07:40:59 +02:00
Daniel Marjamäki
1c513f330a Fixed (False negatives when using -I (external source code)) 2013-09-29 18:59:27 +02:00
PKEuS
a9a5dc0354 Updated to AStyle 2.03, require this version 2013-08-07 16:27:37 +02:00
Alexander Mai
39ba0d36c1 TestRunner: added test case for assignment simplification in do-while (). 2013-07-29 12:10:11 +02:00
Lucas Manuel Rodriguez
09f4d3732a Fixed (segfault, assignment in do ... while, 1.61dev) 2013-07-28 11:58:14 +02:00
Daniel Marjamäki
dfed6bbea0 Fixed (Token::Match called with varid 0) 2013-07-19 21:18:54 +02:00
Daniel Marjamäki
2875ee1ecf astyle formatting 2013-07-07 10:26:20 +02:00
Simon Martin
d0d3ce50c9 Added testcase for (now working) ticket . 2013-07-06 18:02:04 +02:00
Daniel Marjamäki
7dd07472c1 Fixed (Tokenizer: improved simplification of strlen in calculation) 2013-06-25 20:10:40 +02:00
Daniel Marjamäki
8ac2b4d516 Travis: Fixed failing test 2013-06-16 16:53:09 +02:00
Daniel Marjamäki
a9bd6cf3df Fixed (False Positive: function argument hides enumerator of same type) 2013-06-16 08:13:41 +02:00
Daniel Marjamäki
722bfe7197 Fixed (Wrong calculation of known values) 2013-06-14 18:51:52 +02:00
PKEuS
876e9c0039 Fixed issue on C++11 right angle brackets () 2013-06-12 13:43:29 -07:00
Daniel Marjamäki
c4763b9010 Fixed (false positive: (style) Variable 'CHDERR_NOT_OPEN' hides enumerator with same name) 2013-06-12 06:45:26 +02:00
Frank Zingsheim
f5a3492e3a astyle formatting 2013-06-05 22:19:37 +02:00
Daniel Marjamäki
dec520c507 Tokenizer::simplifyEnum: Fixed false positives 2013-06-04 21:18:20 +02:00