Alexander Mai
|
ce12e1cea6
|
Remove unnecessaryForwardDeclaration check. It had false positives (e.g. #3663), was implemented in the Tokenizer and of little value.
|
2016-01-02 19:14:03 +01:00 |
Robert Reif
|
db6dfa2d22
|
Fixed #7195 (crash: valueFlowSwitchVariable())
|
2016-01-02 18:53:51 +01:00 |
Alexander Mai
|
37c3d5da7b
|
#6731 Tokenizer::eraseDeadCode causes heap corruption on invalid code. Better detection of invalid code inside Tokenizer::simplifyFlowControl()
|
2016-01-01 23:32:10 +01:00 |
Daniel Marjamäki
|
95009a4630
|
Merge pull request #745 from lanurmi/2016_ad
Update copyright year to 2007-2016.
|
2016-01-01 22:57:19 +01:00 |
Daniel Marjamäki
|
b457ceef0e
|
Settings: Added defaultSign
|
2016-01-01 17:33:59 +01:00 |
Daniel Marjamäki
|
f5715c1496
|
Rename Unspecified platform type to Native
|
2016-01-01 16:39:41 +01:00 |
Daniel Marjamäki
|
3bd5a4d10e
|
CheckUnusedVar: Fix FP when there is class initialization
|
2016-01-01 16:04:13 +01:00 |
Daniel Marjamäki
|
2f26195b23
|
Fixed #7248 (crash in ValueType::str())
|
2016-01-01 15:13:50 +01:00 |
Lauri Nurmi
|
996c9244d8
|
Update copyright year to 2007-2016.
|
2016-01-01 15:34:45 +02:00 |
Daniel Marjamäki
|
dea41e2390
|
CheckUnusedVar: Fix FP for assignment in while
|
2016-01-01 12:14:18 +01:00 |
Daniel Marjamäki
|
e69e952c46
|
Fixed #7245 (ValueType: Wrong result type for 'sint << uint')
|
2015-12-31 20:18:35 +01:00 |
Daniel Marjamäki
|
98756ea7f5
|
Fixed #7247 (False positive CastAddressToIntegerAtReturn - returning std::string)
|
2015-12-31 18:53:07 +01:00 |
Daniel Marjamäki
|
350908d0e9
|
Fix FP in CheckUnusedVar. Caused by #7230 fix.
|
2015-12-31 15:30:33 +01:00 |
Matthias Krüger
|
7c1a4da6a4
|
testrunner: add testcase for #7246.
|
2015-12-31 14:17:52 +01:00 |
Daniel Marjamäki
|
9f6890512c
|
Refactoring CheckType checkers. Use ValueType.
|
2015-12-31 12:05:23 +01:00 |
Daniel Marjamäki
|
8171154e12
|
Fixed #7230 (Confusing code snippet in error message)
|
2015-12-31 01:15:49 +01:00 |
Daniel Marjamäki
|
5216f904e7
|
Refactoring Check64BitPortability. Use ValueType.
|
2015-12-30 19:59:23 +01:00 |
Daniel Marjamäki
|
c0e8654649
|
Refactor void* checking. Use ValueType.
|
2015-12-30 11:48:20 +01:00 |
Daniel Marjamäki
|
fdcab8f1bb
|
ValueType: better handling of struct member
|
2015-12-30 11:36:46 +01:00 |
Daniel Marjamäki
|
c5c386ceb8
|
ValueType: Handle void pointers
|
2015-12-29 19:58:51 +01:00 |
Daniel Marjamäki
|
bd1037e95b
|
Fixed #7242 (False positive unknownEvaluationOrder - comma expression in function argument)
|
2015-12-29 12:06:42 +01:00 |
Daniel Marjamäki
|
83cb028963
|
Preprocessor: insert space between ++ or -- in macro expansion
|
2015-12-29 06:54:44 +01:00 |
Daniel Marjamäki
|
25a5ac1846
|
Split up TestOther::testEvaluationOrder()
|
2015-12-28 14:04:14 +01:00 |
Daniel Marjamäki
|
15ecb26a6c
|
Tokenizer: Moved simplifyAssignmentInFunctionCall from simplifyTokenList1 to simplifyTokenList2
|
2015-12-28 13:58:41 +01:00 |
Daniel Marjamäki
|
0ddb5c12ce
|
Fixed #7238 (False positive unknownEvaluationOrder for comma operator on C code)
|
2015-12-28 13:45:55 +01:00 |
Daniel Marjamäki
|
f09dded7b1
|
TokenList: Better handling of '1++a' and 'a++1'
|
2015-12-27 14:57:22 +01:00 |
Daniel Marjamäki
|
908bc664a4
|
Evaluation order: ignore usage in sizeof
|
2015-12-27 14:08:16 +01:00 |
Alexander Mai
|
e9635fd393
|
#7236 segmentation fault (invalid code) in ValueFlow::setValues. #7237 segmentation fault (invalid code) in Tokenizer::setVarIdClassDeclaration
|
2015-12-26 23:51:10 +01:00 |
amai2012
|
081f443b2a
|
#7235 segmentation fault (invalid code) in TokenList::createAst
|
2015-12-26 20:26:07 +01:00 |
amai2012
|
36a6599386
|
#7324 segmentation fault (invalid code) in Tokenizer::simplifyTokenList1
|
2015-12-26 20:16:01 +01:00 |
Daniel Marjamäki
|
c672210e06
|
Evaluation order: don't warn for 'dostuff(expr++, &expr)'
|
2015-12-26 15:48:43 +01:00 |
Daniel Marjamäki
|
32455e8441
|
Fixed #7214 (ValueType: does not handle static_cast)
|
2015-12-26 15:20:17 +01:00 |
Daniel Marjamäki
|
293bd2eead
|
Fixed #6990 (false negative: Invalid abs() argument nr 1. A non-boolean value is required.)
|
2015-12-26 01:38:41 +01:00 |
Daniel Marjamäki
|
64494ca226
|
astyle formatting
[ci skip]
|
2015-12-26 01:37:21 +01:00 |
Alexander Mai
|
87767fb666
|
#7228 segmentation fault (invalid code) in Tokenizer::isFunctionHead
|
2015-12-26 00:21:56 +01:00 |
Daniel Marjamäki
|
ab6809f3fa
|
Fixed testrunner
|
2015-12-25 19:01:32 +01:00 |
Daniel Marjamäki
|
24438c326e
|
Fixed #7233 (Fasle negative 'unknownEvaluationOrder in case of macro)
|
2015-12-25 18:31:21 +01:00 |
Daniel Marjamäki
|
27af1bcfd8
|
Fixed #7229 (Improve check; unknown evaluation order, write different message for self assignment)
|
2015-12-25 18:00:19 +01:00 |
Daniel Marjamäki
|
07b929e13f
|
Added TODO test case for unknown evaluation order
|
2015-12-25 17:48:15 +01:00 |
Daniel Marjamäki
|
90a54b1fae
|
Fixed #7232 (False positive unknownEvaluationOrder on id = Remap( id += 42 );)
|
2015-12-25 16:45:11 +01:00 |
Daniel Marjamäki
|
81f0597316
|
Fixed #3206 and #7226 (New check: Undefined execution order)
|
2015-12-24 09:13:20 +01:00 |
PKEuS
|
8f641aaa76
|
Added gets_s() to std.cfg (C11), added <use-retval/> to min/max().
|
2015-12-18 18:09:07 +01:00 |
PKEuS
|
8f22e4924c
|
Updated AStyle to version 2.05.1
Tweaked runastyle.bat a little bit.
|
2015-12-17 15:53:13 +01:00 |
Matthias Krüger
|
158238ad4b
|
add testcase for #7179 (see bebf8cc )
|
2015-12-17 14:08:24 +01:00 |
Daniel Marjamäki
|
bebf8ccdd5
|
Revert da15efb3 and 6304a4dd to fix FPs. See #7148, #7179, etc
|
2015-12-16 14:51:50 +01:00 |
orbitcowboy
|
ad17a0d721
|
testsymboldatabase: Improved constness of local variable.
|
2015-12-15 13:29:58 +01:00 |
orbitcowboy
|
d93f2994d4
|
testsymboldatabase: Removed useless call of GetSymbolDatabase.
|
2015-12-15 13:11:20 +01:00 |
Daniel Marjamäki
|
0baad496f2
|
Fixed #6383 (FP shiftNegative - value converted to unsigned in function argument)
|
2015-12-14 10:55:23 +01:00 |
Pavel Bibergal
|
e4dc97c81c
|
faster recursive file collection on huge codebases (posix systems), was 47sec to collect all files, now its only 3
|
2015-12-13 15:21:01 +02:00 |
Alexander Mai
|
96531d6ffe
|
TokenList::createAst() doesn't validate itself anymore. Remove some duplicated code and fix glitch in TestGarbage::garbageCode162
|
2015-12-12 20:01:03 +01:00 |