Daniel Marjamäki
|
ad879320e5
|
ValueFlow: Fixed 'function call => calculation' value flow
|
2014-06-13 16:34:57 +02:00 |
orbitcowboy
|
5c2ed8450e
|
Revert my previous fix 28763fa020 and suppress gcc false positive warnings.
|
2014-06-13 15:46:43 +02:00 |
orbitcowboy
|
28763fa020
|
Libary: Fixed gcc warning -Wmissing-field-initializers
|
2014-06-13 13:17:08 +02:00 |
Alexander Mai
|
0f7071a000
|
Fix clang and coverity warnings
|
2014-06-12 20:03:11 +02:00 |
Daniel Marjamäki
|
86ef5f8ae7
|
CheckIO: Handle library types
|
2014-06-12 07:01:44 +02:00 |
Daniel Marjamäki
|
a4a6f3e1be
|
Tokenizer: Removed Tokenizer::simplifyConditionOperator(). Using the AST and ValueFlow, it should be much easier to parse ?: than before.
|
2014-06-10 19:30:13 +02:00 |
Dmitry-Me
|
6e1568a6db
|
Simplify code - bail out early, vreak loops early, reorder checks and declarations.
|
2014-06-09 13:35:30 +04:00 |
Daniel Marjamäki
|
42c3b3c89d
|
Library: Change range operator in validation pattern to ':'
|
2014-06-08 18:12:11 +02:00 |
Simon Martin
|
dc12a73987
|
Ticket #5907: Properly handle extern declarations in Tokenizer::simplifyVarDecl.
|
2014-06-08 14:59:58 +02:00 |
Daniel Marjamäki
|
a41f6077e1
|
Tokenizer: Use 'podtype' info from library. Partial fix for #5623
|
2014-06-08 13:28:15 +02:00 |
Daniel Marjamäki
|
9e81fa04b2
|
Library: Added 'podtype' element. Partial fix for #5623
|
2014-06-08 12:09:00 +02:00 |
Alexander Mai
|
e1513090e2
|
#5909 crash: clang: test/Preprocessor/ifdef-recover.c. Avoid segfault in Preprocessor::getcfgs() on invalid code.
|
2014-06-08 10:02:16 +02:00 |
Daniel Marjamäki
|
56e3e150c2
|
Merge pull request #334 from Dmitry-Me/ReorderChecksAndCleanupDeclarations
Cleanup code - reorder checks and make variable declaration scope narrower
|
2014-06-07 18:35:03 +02:00 |
Daniel Marjamäki
|
4c7b0806aa
|
Library: handle validation expression '-1000-0'. Ticket #5847
|
2014-06-07 16:28:29 +02:00 |
Alexander Mai
|
4d5b463613
|
Fix clang compiler warning in mathlib.cpp and repair test case for #5895
|
2014-06-07 13:16:02 +02:00 |
Dmitry-Me
|
7692a306cd
|
Cleanup code - reorder checks and make variable declaration scope narrower.
|
2014-06-06 18:58:20 +04:00 |
orbitcowboy
|
16352ca674
|
Reverted fix 6d0f490138 , but keeping the testcase in the testsuite.
|
2014-06-06 14:44:22 +02:00 |
PKEuS
|
f1a57cbfcc
|
Refactorization in timer.cpp (#5902), Removed misleading comment in symboldatabase
|
2014-06-05 17:39:14 +02:00 |
orbitcowboy
|
6d0f490138
|
#5895 - Fixed potential signed integer overflow in Checkother:getvalue. Added regression test.
|
2014-06-05 16:41:10 +02:00 |
PKEuS
|
f6c9320aee
|
Fixed incorrect usage of startOfExecutableScope() (Checking time reduced by ~60% (nonlinear) for #5876)
|
2014-06-05 10:45:26 +02:00 |
PKEuS
|
0a0f1072c0
|
Attempt to fix travis and some more VS warnings
|
2014-06-04 19:18:27 +02:00 |
PKEuS
|
51f381edf3
|
Fixed VS warnings
|
2014-06-04 18:55:29 +02:00 |
PKEuS
|
2455b76abd
|
Fixed lots of bugs in the AST:
- Support new and delete
- Properly handle "..."
- References and rValue references as function parameters
- Destructor definitions
|
2014-06-04 18:47:56 +02:00 |
PKEuS
|
39b64ea5fb
|
Simplify rValue reference arguments without name (&& -> & &)
|
2014-06-04 18:45:56 +02:00 |
PKEuS
|
8db0790407
|
Tokenizer::tokenize() can now be called without AST being created
|
2014-06-04 18:45:28 +02:00 |
PKEuS
|
d93d7401c6
|
Moved getSourceFilePath(), isC() and isCPP() from Tokenizer to TokenList
Conflicts:
lib/tokenize.cpp
|
2014-06-04 18:36:25 +02:00 |
PKEuS
|
6aa88248ac
|
Fixed timer name
|
2014-06-04 18:34:45 +02:00 |
orbitcowboy
|
8fe163285f
|
MathLib: Added missing testcase for incdec.
|
2014-06-04 08:41:30 +02:00 |
orbitcowboy
|
60e80b6fb1
|
Fixed #5885 - fsanitize=undefined: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' in lib/tokenize.cpp.
|
2014-05-29 18:25:01 +02:00 |
orbitcowboy
|
e9144d1a78
|
Fixed #5890 - crash: wesnoth desktop_util.cpp / unicode.hpp.
|
2014-05-29 02:58:18 +02:00 |
Robert Reif
|
e5ae575ace
|
Fixed #5867 (invalid debug warnung: Scope::checkVariable : varid0)
|
2014-06-02 06:18:32 +02:00 |
Alexander Mai
|
ad1662a201
|
#5875 fix 'lib/checksizeof.cpp:142:26: runtime error: member call on null pointer of type 'Token'. Improve error handling in CheckSizeof::checkSizeofForPointerSize()
|
2014-06-01 22:18:17 +02:00 |
Daniel Marjamäki
|
42140b6488
|
Preprocessor: set error flag when unhandled characters are found so checking can bailout
|
2014-06-01 11:24:10 +02:00 |
Martin Ettl
|
af369b4925
|
astyle run [ci skip]
|
2014-05-16 23:01:21 +02:00 |
amai2012
|
6f31ce334d
|
#5875 Fix 'lib/mathlib.cpp:559:43: runtime error: division by zero'. Several fixes to MathLib::divide(): avoid division by zero, handle various representation of 0 value, use 'nan.' instead of '-nan.0'
|
2014-05-31 18:25:23 +02:00 |
Daniel Marjamäki
|
46bf23aa6d
|
TokenList: added assertion that makes sure the Preprocessor doesn't let through extended ascii wrongly.
|
2014-05-31 18:02:19 +02:00 |
amai
|
98ea1397b3
|
#5875 clang ubsan errors: lib/checkassignif.cpp:58:34: runtime error: member call on null pointer of type 'Token'
|
2014-05-31 15:12:04 +02:00 |
Daniel Marjamäki
|
66ad3c97b9
|
Fixed #5857 (strPlusChar: Crash on invalid code 'int+;')
|
2014-05-31 10:34:00 +02:00 |
PKEuS
|
86dede14c0
|
Merge pull request #327 from simartin/only_fill_if_needed
Only fill total_size in CheckBufferOverrun::checkFunctionParameter when useful
|
2014-05-30 20:56:33 +02:00 |
Daniel Marjamäki
|
70b4c945de
|
Fixed #5874 (False positive: 'opposite conditions in nested if' with arrays)
|
2014-05-30 19:19:24 +02:00 |
Simon Martin
|
f7356dd8c7
|
Only fill total_size in CheckBufferOverrun::checkFunctionParameter when it's useful.
|
2014-05-29 23:51:13 +02:00 |
Simon Martin
|
139f87af18
|
Ticket #5615: Avoid calling the same function n times when once is enough.
|
2014-05-29 19:58:09 +02:00 |
Daniel Marjamäki
|
bc2ba1706b
|
cleanup redundant valueflow check. if there are no values the getValue will return NULL.
|
2014-05-28 21:03:16 +02:00 |
PKEuS
|
c23afbd04a
|
Merge pull request #325 from simartin/checkio_types_match_factorize
Factorize type name equality checks in CheckIO
|
2014-05-27 21:46:07 +02:00 |
Simon Martin
|
d2223ce419
|
Factorize type name equality checks in CheckIO.
|
2014-05-27 19:20:19 +02:00 |
Simon Martin
|
966491d40b
|
Added a test for out-of-bounds character array access.
|
2014-05-27 16:21:13 +02:00 |
Daniel Marjamäki
|
ed78d3e148
|
Library: Better error reporting when loading fails
|
2014-05-26 17:00:41 +02:00 |
PKEuS
|
1cb14f687f
|
Merge pull request #322 from simartin/del_useless_fwd_decl
Remove unnecessary declaration (one line before the actual definition...)
|
2014-05-25 23:54:20 +02:00 |
PKEuS
|
8f083af1e4
|
Attempt to fix travis build
|
2014-05-25 22:11:56 +02:00 |
Simon Martin
|
c027c526a9
|
Remove unnecessary declaration (one line before the actual definition...
|
2014-05-25 22:04:51 +02:00 |