Commit Graph

12902 Commits

Author SHA1 Message Date
Daniel Marjamäki ce1d0099cf TestBufferOverrun: Moved out cfg tests. Created minsize-argvalue testing in TestBufferOverrun 2015-02-10 06:35:41 +01:00
Daniel Marjamäki 631536980c TestBufferOverrun: split up strncpy testing, keep checker testing in TestBufferOverrun and move cfg tests to cfg test 2015-02-09 16:20:28 +01:00
Dmitry-Me dfd19233e9 Simplify loop logic 2015-02-09 14:40:17 +03:00
PKEuS 38c8c3734d Merge pull request #515 from Dmitry-Me/simplifyTernaryOps
Simplify ternary operators, use else-if to avoid extra comparison
2015-02-09 12:11:40 +01:00
Dmitry-Me 6eacb4957c Simplify ternary operators, use else-if to avoid extra comparison 2015-02-09 11:46:27 +03:00
PKEuS 0a8226d4ed Merge pull request #514 from Dmitry-Me/reuseCachedValues
Reuse already known values
2015-02-09 09:25:19 +01:00
Dmitry-Me fd0155cacf Reuse already known values 2015-02-09 10:23:36 +03:00
Daniel Marjamäki 8a1b8df1ba ValueFlow: Improved handling of alias values in valueFlowForward 2015-02-08 19:20:05 +01:00
Daniel Marjamäki 1d873de67f Fix testrunner 2015-02-07 19:44:33 +01:00
Daniel Marjamäki 62a5d88eb0 ValueFlow: Improved handling of strings 2015-02-07 18:14:22 +01:00
Matthias Krüger dd70b6e0cd fix internal message: [lib/valueflow.cpp:239]: (warning) Found simple pattern inside Token::Match() call: "} ;" 2015-02-07 12:51:17 +01:00
Daniel Marjamäki 29db3eb848 Fixed #5980 (ValueFlow: pointer cant be 0 below throw in switch) 2015-02-07 10:45:30 +01:00
Martin Ettl 977fbc8030 posix.cfg: Added support for more podtypes. 2015-02-06 18:25:54 +01:00
PKEuS 703114dd0d Merge pull request #511 from Dmitry-Me/reorderChecks2
Reorder checks, move declaration
2015-02-06 20:07:12 +01:00
Dmitry-Me 6f6f9f7754 Reorder checks, move declaration 2015-02-06 16:30:39 +03:00
Daniel Marjamäki eec938dbad Fixed #6249 (False positive: Incorrect detection of (assignment + comparison) inside for-clause) 2015-02-05 20:17:30 +01:00
Daniel Marjamäki f19d4afcde Merge pull request #509 from Dmitry-Me/mergeOverlappingPatterns2
Merge overlapping patterns
2015-02-05 20:04:16 +01:00
Martin Ettl c676e34887 posix.cfg: Added more podtypes. 2015-02-05 17:44:51 +01:00
Dmitry-Me cc18b8d1bb Merge overlapping patterns 2015-02-05 17:30:49 +03:00
orbitcowboy d2552dd93a posix.cfg: declared usleep() as <leak-ignore/>. Improved support for <unistd.h> functions. 2015-02-05 14:18:08 +01:00
orbitcowboy f5a336d576 posix.cfg: Improved support for <unistd.h> functions. 2015-02-05 11:40:25 +01:00
orbitcowboy 5e3aa17a56 posix.cfg: Improved support for <unistd.h> functions. 2015-02-05 02:27:20 +01:00
orbitcowboy e6e8decd49 posix.cfg: Improved support for <unistd.h> functions. 2015-02-06 10:47:49 +01:00
Daniel Marjamäki 73d14d0a9a Merge pull request #508 from Dmitry-Me/breakLoopEarly2
Break loop early
2015-02-04 08:52:23 +01:00
Dmitry-Me 1f31dd749b Break loop early 2015-02-04 10:47:58 +03:00
Robert Reif 323475393b Symboldatabase: improved debug output 2015-02-04 06:08:41 +01:00
PKEuS f1714110d0 Fixed crash if double constants are passed as default arguments (#6494) 2015-02-03 22:12:05 +01:00
Daniel Marjamäki c2b85d1032 Fixed testrunner 2015-02-03 18:35:52 +01:00
Daniel Marjamäki 5d1a1b7dc8 manual: updated configuration documentation 2015-02-03 17:50:58 +01:00
Daniel Marjamäki 5888b65bd4 fixed --check-library information message 2015-02-03 17:50:32 +01:00
PKEuS ee129fb00d Merge pull request #507 from Dmitry-Me/omitRedundantTokenMatch
Omit redundant token match
2015-02-03 14:17:43 +01:00
Dmitry-Me 5517c22524 Omit redundant token match 2015-02-03 15:01:09 +03:00
PKEuS a8f10735b1 Merge pull request #506 from Dmitry-Me/cacheAndReuseValue3
Cache and reuse value
2015-02-03 09:51:45 +01:00
Dmitry-Me c05e632baf Cache and reuse value 2015-02-03 11:00:40 +03:00
orbitcowboy 84e831c21c posix.cfg: Improved support for functions from <unistd.h>. 2015-02-02 17:23:43 +01:00
amai2012 f5ef01ad93 Merge pull request #505 from Dmitry-Me/noQualificationRemovalForFunctionCalls2
Calling a function using Class::func() syntax should not be simplified
2015-02-02 10:19:24 +01:00
orbitcowboy 8249be5859 Running astyle [ci skip]. 2015-02-02 10:26:21 +01:00
Dmitry-Me 21fbc30d59 Calling a function using Class::func() syntax should not be simplified 2015-02-02 10:37:10 +03:00
Martin Ettl b47f189247 posix.cfg: Added support for more POSIX types. 2015-02-01 10:40:38 +01:00
PKEuS 9dfb864522 Fixed two nullpointer messages in cppcheck 2015-02-01 15:21:09 +01:00
PKEuS 451a277b18 Refactorization: Support function default values in ValueFlow, removed now obsolete CheckNullPointer::nullPointerDefaultArgument().
-> Use valueFlowForward() to parse values passed to functions
-> valueFlowForward(): Set value in first occurrence of a variable in a condition
2015-02-01 15:15:00 +01:00
Daniel Marjamäki 78b711fd7b astyle formatting 2015-02-01 14:50:51 +01:00
PKEuS f78744ac30 Fixed AST generation if expression starts with ternary operator 2015-02-01 14:02:19 +01:00
Daniel Marjamäki d6c94e3828 isOppositeCond: Fixed FN 2015-02-01 13:03:38 +01:00
Daniel Marjamäki d091639080 Fixed #6482 (False positive multiCondition) 2015-02-01 12:58:06 +01:00
PKEuS b74b94b1e6 Partially reverted previous commit - std::vetcor instance creation can't be avoided without generating lots of debug messages 2015-02-01 12:33:53 +01:00
PKEuS 58c3fdd063 Fixed crash on garbage code introduced recently, optimized code in valueFlowFunctionReturn. 2015-02-01 12:26:46 +01:00
PKEuS a4cc4c3e3f Refactorization: Use SymbolDatabase scope information in ValueFlow 2015-02-01 12:10:20 +01:00
PKEuS 54b6b8e571 Fixed false positive #6481 2015-01-31 20:34:06 +01:00
PKEuS 21cb0cfd60 Take simplifyIfNotNull and simplifyIfNot out of simplifyTokenList1 (first step for #6072) 2015-01-31 20:12:02 +01:00