Zachary Blair
|
22bd20c94a
|
New check: Use make_shared/make_unique (#5673)
|
2015-01-04 11:07:53 +01:00 |
PKEuS
|
016e89e422
|
Refactorizations:
- Disabled some parts of setVarId() for C code.
- Fixed mistake in <contaier> documentation
|
2015-01-04 10:52:11 +01:00 |
Daniel Marjamäki
|
8dd569b9e1
|
Refactoring: Use AST in CheckUninitVar::isVariableUsage() to determine if & operator is address-of. This fixes FP in linux.
|
2015-01-04 09:23:24 +01:00 |
PKEuS
|
11fa185cae
|
Fixed crash on range-based for-loop
|
2015-01-03 22:36:39 +01:00 |
PKEuS
|
7ece58c3a0
|
CheckStl::stlOutOfBounds() now uses <container> information from Libraries
|
2015-01-03 22:18:33 +01:00 |
PKEuS
|
e39729ffcc
|
Library: Add <container> tag to Libraries, provide configuration for std::vector, std::deque, std::array and STL strings
Token: Added function to jump to the next template argument
|
2015-01-03 22:18:33 +01:00 |
Daniel Marjamäki
|
eb1c048d2a
|
Tokenizer: Fix wrong simplification when checking linux kernel
|
2015-01-03 21:35:03 +01:00 |
Daniel Marjamäki
|
014f8e3c71
|
Fixed #6396 (There are false negatives when --include is used)
|
2015-01-03 18:22:52 +01:00 |
PKEuS
|
267552779d
|
Improved check (#6391): Detect identical code in both branches of ternary operator
|
2015-01-03 18:01:49 +01:00 |
PKEuS
|
bb9ce68354
|
Refactorization: Reduced chaos in CheckOther::classInfo()
|
2015-01-03 18:00:16 +01:00 |
PKEuS
|
9e46aabc03
|
Set version to 1.68.99/1.69 dev
|
2015-01-03 17:44:47 +01:00 |
Daniel Marjamäki
|
6793e96458
|
1.68: Set versions
|
2015-01-03 13:20:01 +01:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
PKEuS
|
1355f49af7
|
Fixed false positive: Support assignments in CheckStl::if_find()
|
2015-01-03 11:29:13 +01:00 |
PKEuS
|
8885ac3eba
|
Fixed #6217, refactorized CheckStl::if_find(): allow all comparison operators, use AST, fixed wrong unit tests
|
2015-01-03 11:07:11 +01:00 |
Martin Ettl
|
c8bb19567b
|
CheckString::checkAlwaysTrueOrFalseStringCompare: Added support for Microsofts string compare functions.
|
2015-01-02 15:33:55 +01:00 |
Martin Ettl
|
8f4f3ca063
|
CheckString::checkAlwaysTrueOrFalseStringCompare: Added support for string compare more functions.
|
2015-01-02 13:12:42 +01:00 |
Martin Ettl
|
465f74b3bb
|
Fixed #6398 - false negative: (warning) Unnecessary comparison of static strings.
|
2015-01-02 12:58:04 +01:00 |
Robert Reif
|
1aa3adbb46
|
Refactorization: Speedup function lookup in symboldatabase (#6277) (Part 2)
|
2015-01-02 21:41:01 +01:00 |
PKEuS
|
417f42f732
|
Fixed #6096: bool is an integral type, but there is no portability issue if a pointer is assigned to a bool.
|
2015-01-02 21:07:02 +01:00 |
PKEuS
|
274e1a838a
|
Fixed #5871: Properly parse initialization list in setVarId() if constructor is declared as noexcept
|
2015-01-02 20:03:06 +01:00 |
Robert Reif
|
9a679d1720
|
Refactorization: Speedup function lookup in symboldatabase (#6277)
|
2015-01-02 16:11:21 +01:00 |
orbitcowboy
|
d53f2f583c
|
Fixed #6388: Support strncasecmp
|
2015-01-02 14:04:55 +01:00 |
PKEuS
|
c4fd8919a2
|
Fixed #6014: Added plausibility check before issuing null pointer messages on function calls defined in library
|
2015-01-02 13:35:39 +01:00 |
PKEuS
|
88990bac59
|
Fixed #6386: Improved behaviour on unknown language (header file)
|
2015-01-02 12:32:23 +01:00 |
PKEuS
|
a3fbc5aee5
|
Refactorization: Avoid stringification of second branch if first branch was empty in CheckOther::checkDuplicateBranch()
|
2015-01-02 11:24:28 +01:00 |
Daniel Marjamäki
|
2831bbd420
|
ValueFlow: better handling of goto to avoid false positives
|
2015-01-01 14:29:49 +01:00 |
Alexander Mai
|
d2caf89706
|
#6385 crash in Variable::getFlag(). Catch token without variable in fix for #6095.
|
2014-12-31 18:19:10 +01:00 |
Daniel Marjamäki
|
5c2a2a5c22
|
Fixed #6095 (False positive oppositeInnerCondition - neglecting statements with side-effects)
|
2014-12-31 15:14:22 +01:00 |
PKEuS
|
58f4660c94
|
Fixed #5223: Bailout in valueFlowForLoop1() for complex conditions
Refactorization: Reuse result instead of calling MathLib::toLongNumber() twice
|
2014-12-30 19:56:47 +01:00 |
PKEuS
|
5dc45bd4ac
|
Fixed #5497: Support designated initializers in array size detection
|
2014-12-30 19:23:01 +01:00 |
PKEuS
|
ec826a0e0e
|
Fixed #6022: Support ++%var% in valueFlowForLoop1
Fixed TODO unit test: properly handle loops that are never executed
|
2014-12-30 18:50:22 +01:00 |
PKEuS
|
9e8a66ee40
|
Fixed #6373: Support bitops in clarifyCalculation check
|
2014-12-30 17:55:29 +01:00 |
Thomas Jarosch
|
69b31a0743
|
Fix up extra whitespaces in match patterns
Detected by new internal check.
|
2014-12-30 14:53:43 +01:00 |
Thomas Jarosch
|
17b47f1ce0
|
New internal check: Catch extra whitespace in match patterns
Inspired by a recent commit from PKEuS.
|
2014-12-30 14:21:18 +01:00 |
Daniel Marjamäki
|
208761f0c3
|
Fixed #6361 (crash: CheckBufferOverrun)
|
2014-12-28 10:05:08 +01:00 |
PKEuS
|
8b59c39c42
|
Refactorization: Removed whitespaces at the end of Token::Match patterns
|
2014-12-27 11:09:54 +01:00 |
PKEuS
|
990d14f3e2
|
Fixed #6328: Use isAttributeNoreturn() whereever we also check Library::isnoreturn().
|
2014-12-27 11:07:36 +01:00 |
Robert Reif
|
9e60f584d9
|
Fixed #6321: Implemented function Token::swapWithNext().
|
2014-12-27 10:53:26 +01:00 |
Dmitry-Me
|
14f13afa0a
|
Don't care which type protected operator= returns
|
2014-12-26 15:38:22 +01:00 |
Daniel Marjamäki
|
6194a4eefd
|
Fixed #6357 (Improve check: pointer arithmetic 'p+x' overrun, conditional x)
|
2014-12-26 09:12:00 +01:00 |
Daniel Marjamäki
|
7ab12cea63
|
Improved pointer arithmetic message
|
2014-12-25 14:31:46 +01:00 |
Daniel Marjamäki
|
bc594d52c8
|
Fixed #6349 (Pointer arithmetic: clarify message)
|
2014-12-25 10:05:55 +01:00 |
Thomas Jarosch
|
26aa049724
|
Fix C++11 compat wrapper for clang
clang identifies itself as gcc 4.2.
The preprocessor macros can be dumped with:
clang++ -dM -E -x c /dev/null
|
2014-12-25 01:28:02 +01:00 |
Daniel Marjamäki
|
0c086cf247
|
Incomplete statement: tweaked bailout for '0;' statement using isExpandedMacro()
|
2014-12-24 21:47:37 +01:00 |
Daniel Marjamäki
|
7cfa54f0e0
|
Fixed #6353 (False positive: CheckBufferOverrun checking reassigned array function parameter)
|
2014-12-24 14:03:52 +01:00 |
Daniel Marjamäki
|
06803ee333
|
Refactoring Tokenizer::simplifyAttribute
|
2014-12-24 13:03:38 +01:00 |
Daniel Marjamäki
|
fb3f5a159d
|
Token: Added flag for attribute noreturn (#6328)
|
2014-12-24 12:50:51 +01:00 |
Daniel Marjamäki
|
90bd38a972
|
Renamed isCasted to isCast
|
2014-12-24 10:35:40 +01:00 |
Daniel Marjamäki
|
de1a91f30d
|
Incomplete statement: tweaked bailout for '(void*)0' using isCasted()
|
2014-12-23 18:19:33 +01:00 |