2193 Commits

Author SHA1 Message Date
PKEuS
0ac89c8af2 Fixed internal warning 2015-11-06 22:21:39 +01:00
Aleksandr Pikalev
2d0ecc08c1 Check pointers for NULL before utilizing and do not check it later 2015-11-06 20:24:09 +01:00
PKEuS
7a90b763f6 Tokenizer::simplifyLabelsCaseDefault(): Do not insert ; between two cases. 2015-11-06 19:59:23 +01:00
PKEuS
95a0c0f14c Limit the number of cases created by Tokenizer::simplifyCaseRange(). 2015-11-06 19:21:56 +01:00
PKEuS
1fe1d7ea4a Extended Tokenizer::simplifyCaseRange() to support also ranges of chars. 2015-11-06 18:46:43 +01:00
PKEuS
41b1b9d850 Support case ranges (gcc extension, ) 2015-11-06 18:39:03 +01:00
PKEuS
2ac8da0497 Fixed also for noexcept 2015-11-06 18:00:59 +01:00
PKEuS
72bc6d1f33 Refactorization: Fixed VS warning about variable shadowing. 2015-11-06 17:35:08 +01:00
PKEuS
62bc827eb0 Fixed createLinks2() when inheriting from a template () 2015-11-06 10:44:37 +01:00
Alexander Mai
3177d73fb0 segmentation fault (invalid code) in Tokenizer::simplifyTokenList1. Refactor some functions to accept argument as refernce instead of pointer 2015-11-05 19:00:08 +01:00
PKEuS
83a816b109 Fixed crash on garbage code () 2015-11-04 10:26:55 +01:00
PKEuS
6c20f4b2a2 Fixed crash on garbage code () 2015-11-04 10:10:20 +01:00
PKEuS
8374e8414b Fixed use-after-free in clang test suite introduced recently () 2015-11-03 19:24:19 +01:00
PKEuS
b97f9e576d Fixed crash in clang test suite introduced by previous commit. 2015-11-02 22:53:05 +01:00
PKEuS
b049050792 Fixed wrong parsing of ^{} 2015-11-02 22:14:41 +01:00
PKEuS
4f565ba90f Fixed crashs on garbage code () 2015-11-02 21:30:28 +01:00
PKEuS
23e6e5a568 Fixed crash on garbage code () 2015-10-31 18:11:56 +01:00
PKEuS
a0ff992c4a Refactorization: Simplified Tokenizer::simplifyAddBracesToCommand() and Tokenizer::simplifyAddBracesPair() 2015-10-27 20:04:34 +01:00
PKEuS
4ee56d2306 Fixed simplifyAssignmentInFunctionCall for complex expressions () 2015-10-27 20:01:40 +01:00
PKEuS
24882fb53a Fixed VarId accidentially assigned to case labels. 2015-10-26 21:24:53 +01:00
PKEuS
5add1d8901 Set VarId in range-based for-loops 2015-10-26 19:03:23 +01:00
PKEuS
297f2c78bd Fixed false positives variableHidingTypedef (, ) 2015-10-26 10:06:52 +01:00
Simon Martin
5d40a3ab66 Ticket : Properly handle "typedef unsigned T;" constructs. 2015-10-24 12:27:26 +02:00
Daniel Marjamäki
b856ac51dd Fixed (Tokenizer: Wrong simplification of 'a.public:') 2015-10-19 10:01:57 +02:00
Daniel Marjamäki
5d12471caa fix travis, remove unused variable 2015-10-18 17:19:44 +02:00
Alexander Mai
8667184f12 Remove unnecessaryQualification check 2015-10-18 17:00:09 +02:00
Daniel Marjamäki
fe4fac7eb2 Fixed (Tokenizer::simplifyTypedef: wrong simplification of enum constant 'AB::A' if AB is a struct typedef) 2015-10-18 04:55:04 +02:00
Dmitry-Me
fa30ed5d15 Reduce variable lifetime, better name 2015-10-16 11:00:04 +03:00
PKEuS
c22833342c Merge pull request from Dmitry-Me/explicitContinue
Explicit continue instead of fall through with a check
2015-10-15 21:48:08 +02:00
Dmitry-Me
ae7a7d287e Explicit continue instead of fall through with a check 2015-10-15 18:03:27 +03:00
Daniel Marjamäki
6cf25825de Fixed (Tokenizer::simplifyTypedef: Label) 2015-10-15 16:56:22 +02:00
Dmitry-Me
64bdf03986 Remove repeated search, clearer code 2015-10-15 16:48:35 +03:00
PKEuS
46bfa62aad Execute prepareTernaryOpForAST earlier () 2015-10-15 10:31:54 +02:00
Alexander Mai
600641c4c5 segmentation fault (invalid code) in Tokenizer::simplifyVarDecl 2015-10-14 20:34:55 +02:00
PKEuS
d0cc97a4cf Fixed wrong syntax error () 2015-10-14 16:01:48 +02:00
Daniel Marjamäki
a04e072976 Fixed (False positive syntaxError False positive syntaxError) 2015-10-13 20:31:17 +02:00
PKEuS
05b5275110 Improved AST:
- Fixed TODO for ternary operator. Add parantheses between ? and : where necessary as a preparation for createAst()
- Improved AST validation:
-- Better message for binary operator with only one operand
-- Ensure ? has : as second operand ()
2015-10-12 19:21:48 +02:00
Daniel Marjamäki
97326fce13 Fixed (argument name of function typedef conflicts with local variable name) 2015-10-12 10:15:02 +02:00
Daniel Marjamäki
141dd78b0e Tokenizer: Added a define CPPCHECK2 that can be used to test cppcheck without various simplifications I want to get rid of in the long run 2015-10-12 09:19:35 +02:00
Daniel Marjamäki
6157fc69ac Tokenizer: Added a simple AST verification 2015-10-12 08:34:12 +02:00
Daniel Marjamäki
40fffddb83 avoid some fixes for noisy signedness warnings 2015-10-11 12:36:23 +02:00
Daniel Marjamäki
a500f6f703 Improved handling of 'long double' and address-of in ValueType. Removed Tokenizer::simplifyFloatCasts() to handle float casts better. 2015-10-08 19:50:10 +02:00
PKEuS
3645e3c16b Fixed two TODO unit tests by delaying arraySize simpification until createLink2 is executed 2015-10-08 12:52:28 +02:00
Daniel Marjamäki
9b253612ca SymbolDatabase: Add type information in AST 2015-10-04 19:42:58 +02:00
Alexander Mai
27f72d7ae0 segmentation fault (invalid code) in Tokenizer::simplifyTypedef. segmentation fault (invalid code) in Tokenizer::simplifyEnum 2015-10-03 10:47:23 +02:00
amai2012
fde59242bb segmentation fault (invalid code) in Tokenizer::simplifyEnum 2015-10-02 15:33:23 +02:00
PKEuS
e6467703b2 Support cast to ** in Tokenizer::simplifyCasts() () 2015-09-28 16:08:14 +02:00
PKEuS
590f1f1d66 Fixed handling of __asm...__endasm () 2015-09-28 15:43:48 +02:00
Alexander Mai
c27fc31fcf segmentation fault (invalid code) in CheckUninitVar::checkIfForWhileHead. Detect invalid syntax. 2015-09-23 10:33:55 +02:00
Dmitry-Me
074639548b Use temp variables, better variable names 2015-09-16 15:31:13 +03:00