Daniel Marjamäki
|
66e047ee7d
|
Refactoring SymbolDatabase. Reuse Tokenizer::isFunctionHead().
|
2016-01-02 23:49:06 +01:00 |
Daniel Marjamäki
|
0a1d10bf2f
|
Tokenizer: Add &|&&| to Tokenizer::isFunctionHead()
|
2016-01-02 23:09:44 +01:00 |
Alexander Mai
|
1d3e39df7e
|
Adjust message text for signConversion for constant negative epxressions
|
2016-01-02 22:56:15 +01:00 |
Daniel Marjamäki
|
746d024e3d
|
SymbolDatabase: Fix Token::Match pattern
|
2016-01-02 20:00:18 +01:00 |
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 |
Daniel Marjamäki
|
599327bfb1
|
cmdlineparser: Added -E option
|
2016-01-02 11:48:36 +01:00 |
Alexander Mai
|
ee5a5e8bb5
|
Minor modification of previous changeset (compare token with literal using str())
|
2016-01-01 23:37:38 +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
|
ca4f55ec4c
|
Cleanup Copyrights. Now all should be just for Cppcheck team.
|
2016-01-01 23:04:16 +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
|
416861b530
|
ValueType: only use default signedness for char/short/int/long/longlong
|
2016-01-01 20:03:31 +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
|
1e0979779e
|
Print type information in AST dump
|
2016-01-01 13:54:07 +01: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 |
Daniel Marjamäki
|
17ab0a4e9a
|
Fixed #7246 (crash: CheckType::checkLongCast())
|
2015-12-31 14:07:38 +01:00 |
Daniel Marjamäki
|
9f6890512c
|
Refactoring CheckType checkers. Use ValueType.
|
2015-12-31 12:05:23 +01:00 |
Daniel Marjamäki
|
5dc42ccd49
|
try to fix Travis. teach checkinternal about %assign%
|
2015-12-31 01:56:48 +01:00 |
Daniel Marjamäki
|
67435af06a
|
Refactor CheckType::checkTooBigBitwiseShift. Use ValueType.
|
2015-12-31 01:51:21 +01:00 |
Daniel Marjamäki
|
1de21a8356
|
try to fix Travis. teach checkinternal about %assign%
|
2015-12-31 01:32:34 +01:00 |
Daniel Marjamäki
|
8ee3a8d168
|
Updated Token::Match documentation
|
2015-12-31 01:25:36 +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
|
fae9c2159c
|
Fix Travis. The 'Assign integer to pointer' checker should allow 0.
|
2015-12-30 20:59:22 +01:00 |
Daniel Marjamäki
|
5216f904e7
|
Refactoring Check64BitPortability. Use ValueType.
|
2015-12-30 19:59:23 +01:00 |
Daniel Marjamäki
|
7f1b43e79c
|
Use simpleMatch to fix travis build
|
2015-12-30 12:28:55 +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
|
b38559774d
|
Removed the CPPCHECK2 ifdefs. I have no plan to remove simplifications anymore.
|
2015-12-28 16:26:51 +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 |
Alexander Mai
|
5b6758b03b
|
Add some debugging code (inspired by #6021)
|
2015-12-27 17:38:15 +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
|
34449ae857
|
Use simpleMatch instead of Match for simple pattern, hope this makes Travis happy
|
2015-12-26 02:21:52 +01:00 |
Daniel Marjamäki
|
cea40168e0
|
Code fix. Used wrong variable in condition, leading to segfaults.
|
2015-12-26 01:52:43 +01:00 |