Alexander Mai
|
f54a6f085b
|
#7883 hang: CheckOther::checkFuncArgNamesDifferent() template code in .h. Activate language check for header files + Small refactoring
|
2017-05-03 20:36:26 +02:00 |
Daniel Marjamäki
|
1ec9b8c5b4
|
Fixed #8047 (false positive uninitialized variable - sizeof **A)
|
2017-05-03 19:27:55 +02:00 |
Alexander Mai
|
e88b4dcf06
|
Add another check to Tokenizer::validateC(): C++ casts
|
2017-05-03 16:57:42 +02:00 |
Matthias Krüger
|
a28f57344c
|
templatesimplifier: mark getTemplateNamePositionTemplateMember() static.
Fixes gcc 7-dev warning:
lib/templatesimplifier.cpp: In function ‘bool getTemplateNamePositionTemplateMember(const Token*, int&)’:
lib/templatesimplifier.cpp:715:6: warning: no previous declaration for ‘bool getTemplateNamePositionTemplateMember(const Token*, int&)’ [-Wmissing-declarations]
bool getTemplateNamePositionTemplateMember(const Token *tok, int &namepos)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-05-03 08:45:48 +02:00 |
Daniel Marjamäki
|
295e4fdfc2
|
Fixed #8049 (Preprocessor: Comment in system include not removed properly)
|
2017-05-02 22:18:24 +02:00 |
Alexander Mai
|
1bc7a89b3c
|
Improve search patterns within Tokenizer::validateC()
|
2017-05-02 17:57:06 +02:00 |
Robert Reif
|
e2bfe1c0ec
|
Fixed #8044: Crash below SymbolDatabase::setValueType
|
2017-05-01 14:12:50 -04:00 |
Matthias Krüger
|
cee0f724ff
|
Fixed #8018: Tokenize::findGarbageCode: detect heads of for-loops with 1 or more than 2 semicolons as garbage code.
|
2017-05-01 18:28:26 +02:00 |
Daniel Marjamäki
|
bc7799dccd
|
Fixed #7888 (false positive from knownConditionTrueFalse with sizeof(int) == sizeof(long))
|
2017-05-01 12:23:28 +02:00 |
Daniel Marjamäki
|
f51a709f80
|
add fixme comment
|
2017-05-01 11:25:58 +02:00 |
Daniel Marjamäki
|
ce6cc5416a
|
uninitvar: made ValueFlow check experimental
|
2017-05-01 11:13:30 +02:00 |
Daniel Marjamäki
|
9cdda53fb9
|
CheckFunctions::memsetZeroBytes: Add CHECK_WRONG_DATA to avoid crashes
|
2017-04-30 18:58:51 +02:00 |
Daniel Marjamäki
|
8a08cc0796
|
Fixed #8029 (Tokenizer::simplifyCAlternativeTokens: dont simplify 'eb.and + 1')
|
2017-04-30 14:40:41 +02:00 |
Daniel Marjamäki
|
7fd04cd8d0
|
Updated Token::expressionString(), write '->' instead of '.'
|
2017-04-30 14:22:18 +02:00 |
Simon Martin
|
28960a8bba
|
Remove bailout and fix varid for template class member initialized in out-of-line constructor (#8031)
|
2017-04-30 08:59:47 +02:00 |
IOBYTE
|
8a668aa860
|
Add missing else that could cause an extra try scope to be added to the scope list (#8025)
Add an optional extended description…
|
2017-04-30 08:58:41 +02:00 |
Daniel Marjamäki
|
980ca39fe2
|
valueFlowForward: better handling of sizeof() in rhs in assignments
|
2017-04-29 08:25:55 +02:00 |
Garrett Bodily
|
ddfd4c6348
|
Write access type of functions and variables to xml dump
|
2017-04-29 07:18:16 +02:00 |
Robert Reif
|
964b744c96
|
Fixed #7990 (crash: SymbolDatabase::printOut())
|
2017-04-29 07:02:49 +02:00 |
Daniel Marjamäki
|
06102cb3d7
|
UninitVar: Don't warn for inconclusive values
|
2017-04-28 21:09:56 +02:00 |
Daniel Marjamäki
|
a0a8f8ddd6
|
ValueFlowUninit: make it more strict
|
2017-04-28 13:29:09 +02:00 |
Daniel Marjamäki
|
5fd77d2518
|
Switch CHECK_WRONG_DATA macro so crashes/hangs are avoided
|
2017-04-28 10:48:41 +02:00 |
Daniel Marjamäki
|
589fabd0b1
|
Fixed #8027 (hang after AST_MAX_DEPTH is exceeded in array initialization)
|
2017-04-27 20:53:27 +02:00 |
Daniel Marjamäki
|
d9f72d5f8c
|
AST: Handle 'x = { [ID] = 1, .. }' when ID is unexpanded macro
|
2017-04-26 22:35:04 +02:00 |
Daniel Marjamäki
|
bdf16b1157
|
Tokenizer::simplifyComma: dont simplify comma in '=(struct s){...}'
|
2017-04-26 20:48:08 +02:00 |
Daniel Marjamäki
|
89532cf8b9
|
Fixed #7968 (valueFlowBeforeCondition: better handling of compound assignments)
|
2017-04-25 20:45:02 +02:00 |
orbitcowboy
|
537045b176
|
Improved const correctness. There are no functional changes.
|
2017-04-25 14:57:48 +02:00 |
Daniel Marjamäki
|
140e086206
|
Fixed #7738 (False positive deallocret - delete and return NULL pointer)
|
2017-04-24 22:05:16 +02:00 |
Daniel Marjamäki
|
37fd60e879
|
Fixed #7293 (Use of uninitialized pointer not detected (worked in 1.71))
|
2017-04-24 18:27:16 +02:00 |
Daniel Marjamäki
|
9a294496c1
|
ValueFlow::setTokenValue: Fix typo
|
2017-04-23 21:59:58 +02:00 |
Daniel Marjamäki
|
a688402617
|
ValueFlow::setTokenValue: Don't calculate parent value for uninitialized values
|
2017-04-23 21:58:01 +02:00 |
Daniel Marjamäki
|
2f51b975ed
|
valueFlowUninit: only check variables
|
2017-04-23 21:50:51 +02:00 |
Daniel Marjamäki
|
25a1ea3d18
|
use simpleMatch for simple pattern
|
2017-04-23 19:25:35 +02:00 |
Daniel Marjamäki
|
8a738eefab
|
fixed #7998 (uninitialized variable is not found when used with switch/case)
|
2017-04-23 18:05:14 +02:00 |
Daniel Marjamäki
|
3f069d9e44
|
Write two FIXME comments, create library configuration to replace hardcoded checks
|
2017-04-23 15:34:45 +02:00 |
Daniel Marjamäki
|
198c8878ee
|
Use Token::simpleMatch() for simple pattern
|
2017-04-23 12:14:14 +02:00 |
Daniel Marjamäki
|
f2719ec6ca
|
Refactoring CheckString::sprintfOverlappingData. Use AST, isSameExpression(), getArguments(), ..
|
2017-04-23 10:51:31 +02:00 |
Daniel Marjamäki
|
f92ef7d8e2
|
Refactoring. Use 'endsWith()'
|
2017-04-23 10:17:35 +02:00 |
Daniel Marjamäki
|
101dc28afa
|
Refactoring: Moved checkMemset.. from CheckOther to CheckFunctions
|
2017-04-23 07:53:41 +02:00 |
Daniel Marjamäki
|
f6ab204dc6
|
Refactorings in CheckOther
|
2017-04-23 07:19:44 +02:00 |
Daniel Marjamäki
|
f601a6903f
|
Updated comment
|
2017-04-23 06:44:38 +02:00 |
Matthias Krüger
|
2744a9456f
|
fix [lib/checkfunctions.cpp:300]: (warning) Found simple pattern inside Token::Match() call: "new"
|
2017-04-22 21:53:31 +02:00 |
Daniel Marjamäki
|
e5b9e2a898
|
--check-library: less warnings
|
2017-04-22 21:23:46 +02:00 |
Daniel Marjamäki
|
e72ec4282d
|
Fixed #7842 (Preprocessor::getConfigs: #error in #ifndef not handled well)
|
2017-04-22 12:44:57 +02:00 |
Daniel Marjamäki
|
1039c710e4
|
Fixed #8017 (AST: wrong ast for extra comma 's={1,}')
|
2017-04-22 11:23:11 +02:00 |
Daniel Marjamäki
|
7140bae226
|
Merge pull request #894 from simartin/ticket_7964
Ticket #7964: Don't crash on valid code using function pointers named strcpy or strcat in main()
|
2017-04-22 01:24:03 +02:00 |
Simon Martin
|
b526fd7c49
|
Ticket #7964: Don't crash on valid code using function pointers named strcpy or strcat in main().
|
2017-04-21 23:36:10 +02:00 |
Daniel Marjamäki
|
43454936e7
|
Fixed #8014 (FP: Uninitialized variable 'f(1,{..});')
|
2017-04-21 22:33:27 +02:00 |
Robert Reif
|
78ad9825af
|
Add support for auto variables in regular for loop.
|
2017-04-21 15:25:02 -04:00 |
Daniel Marjamäki
|
e827119856
|
Fix testrunner InternalError
|
2017-04-21 21:02:46 +02:00 |