Alexander Mai
|
40d7baa6bb
|
Fix more (potential) multi-threading issues by moving static local vars (non-POD-type) to file scope
|
2015-06-13 16:22:43 +02:00 |
amai2012
|
e41beb4f8d
|
Fix #6718 and #6719 (crashes on garbage code).
Local fixes avoiding access to NULL-token. Also minor correction to
TemplateSimplifier::hasComplicatedSyntaxErrorsInTemplates()
|
2015-05-29 18:34:00 +02:00 |
Alexander Mai
|
f0bc300198
|
#6510 False positive performance warning for std::list::size(). Fix this and other similar false positives. Refactoring of Variable::isStlType(), use fail-safe std::set instead of plain array. Run astyle
|
2015-05-17 20:02:41 +02:00 |
Daniel Marjamäki
|
88f59ad7e8
|
Partial fix for #6656 (Allow that CWE is mapped for error message)
|
2015-04-25 17:48:11 +02:00 |
Daniel Marjamäki
|
ad6db2ba81
|
Reverted 105de8e917 , new checker had FPs that need to be fixed.
|
2015-04-25 15:35:31 +02:00 |
Matthias Krüger
|
42f0955e3f
|
Move more setting checks out of loops and use const bools instead. Reorder a few related checks.
Follow up to eedcb6abcb .
|
2015-04-10 14:31:19 +02:00 |
Gustav Palmqvist
|
105de8e917
|
#220 uninitialized variable: using variable in ctor before it has been initialized. Implement new check usageBeforeInitialization
|
2015-04-07 22:01:13 +02:00 |
Matthias Krüger
|
eedcb6abcb
|
move setting flags checks out of for loops, make them const.
|
2015-04-07 07:23:28 +02:00 |
Frank Zingsheim
|
1f5265c1bd
|
Fixed #6253 ([False Positive] Variable not initialized in the constructor)
|
2015-04-06 19:47:21 +02:00 |
Matthias Krüger
|
592177200a
|
don't print warning message if --enable=warning is not given.
message was of type:
(warning) Call of pure virtual function 'foo' in constructor.
|
2015-04-06 13:34:44 +02:00 |
Dmitry-Me
|
0383998aea
|
Better variable name
|
2015-03-23 11:58:56 +03:00 |
PKEuS
|
cd84d78e92
|
Ran AStyle, fixed VS2015 warning in symboldatabase.h
|
2015-03-11 20:26:53 +01:00 |
Jakub Melka
|
e1e1dbfe97
|
Ticket #695: Fixed VS 2010 issue, switched to "style" severity, changed error messages and updated unit tests
|
2015-03-10 19:35:12 +01:00 |
Jakub Melka
|
2af9212b16
|
Ticket #695: new style check : explicit declaration of ctor
|
2015-03-07 20:07:54 +01:00 |
Alexander Mai
|
26c2c4a824
|
Extend verbose message for memsetClassFloat
|
2015-02-22 15:41:02 +01:00 |
PKEuS
|
18b0e14590
|
Refactorizations: Fixed a pattern in checkbufferoverrun.cpp, simplified one in checkclass.cpp
|
2015-01-31 12:32:05 +01:00 |
PKEuS
|
b2835051df
|
Refactorization: Renamed Token::Match pattern %var% to %name%, implement new pattern %var% which is true if varId > 0.
|
2015-01-31 12:32:04 +01:00 |
Dmitry-Me
|
c79bfdce2c
|
CheckClass: Better checking of what operator= returns
|
2015-01-24 11:18:33 +01:00 |
Thomas Jarosch
|
fd01cafb1b
|
Clean up redundant pointer operations
|
2015-01-17 16:29:50 +01:00 |
Robert Reif
|
ba1c24ee65
|
Fixed #6422 (symbol database: put function flags into a single flag variable)
|
2015-01-08 05:45:31 +01:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
Dmitry-Me
|
14f13afa0a
|
Don't care which type protected operator= returns
|
2014-12-26 15:38:22 +01:00 |
Dmitry-Me
|
5e37275b2a
|
Code cleanup. Use 'isDelete' instead of token match
|
2014-11-28 17:50:23 +01:00 |
Dmitry-Me
|
f926958acb
|
Fix false positive about return type when there's =delete in operator= declaration
|
2014-11-25 15:52:52 +01:00 |
Robert Reif
|
d12f14844a
|
Fixed #6279 (False Positive: Member variable 'Fred::i' is not initialized in the constructor)
|
2014-11-20 06:18:29 +01:00 |
Robert Reif
|
67385cfc4b
|
Symboldatabase: improved look up of delegate constructors
|
2014-11-13 06:29:51 +01:00 |
PKEuS
|
e5d63195cb
|
Fixed #5983: Support storing pointers/references to member variables in CheckClass::checkConst()
|
2014-11-02 13:38:03 +01:00 |
PKEuS
|
38af865560
|
Fixed false positive: Member variable not initialized in the constructor with array and (*this) (#5754)
|
2014-09-29 16:49:20 +02:00 |
PKEuS
|
03b1afc28c
|
Loops over all varIds should start at 1.
|
2014-09-28 09:47:11 +02:00 |
PKEuS
|
e8f7279039
|
Refactorization: Moved detection of STL strings to SymbolDatabase
|
2014-09-05 12:03:08 +02:00 |
PKEuS
|
a8dc17c1d9
|
Fixed false positive #5566.
|
2014-08-26 11:29:26 +02:00 |
PKEuS
|
f01d7543f6
|
#6077: Don't warn about memcpy/memmove on class containing floats.
|
2014-08-20 15:12:53 +02:00 |
PKEuS
|
8188578cf2
|
SymbolDatabase: Fixed handling of nested types for function arguments
Removed unnecessary loops between var->typeStartToken() and var->typeEndToken()
|
2014-08-19 11:55:00 +02:00 |
PKEuS
|
5d302716e7
|
Refactorized Variable::isIntegralType() and Variable::isFloatType():
- Cached property
- Make use of it in several checks
- float* is flagged as floating point type
|
2014-08-09 11:45:13 +02:00 |
PKEuS
|
728d0fb9dc
|
Merge pull request #390 from Dmitry-Me/suppressGccShadowingWarning
Avoid GCC name shadowing warning.
|
2014-08-09 10:34:36 +02:00 |
PKEuS
|
c4635cf698
|
Improved check: portability message when calling memset on a class with floating point numbers (#5421)
|
2014-08-08 09:49:09 +02:00 |
PKEuS
|
e4b55cf843
|
Fixed a bug and two warnings introduced recently.
|
2014-08-06 13:35:39 +02:00 |
Dmitry-Me
|
3ec821df34
|
Avoid GCC name shadowing warning.
|
2014-08-06 15:35:04 +04:00 |
PKEuS
|
8130fda4ae
|
Implemented support for C++11 uniform initialization in several checks.
|
2014-08-05 16:11:42 +02:00 |
PKEuS
|
4207b3cb66
|
Fixed error message.
|
2014-08-05 11:59:53 +02:00 |
PKEuS
|
804e055eee
|
New check: initialization by itself in initializer list (#3982)
Refactorizations:
- Rearranged code in checkclass.cpp to increase readability
- Several fixes for testclass.cpp tests.
|
2014-08-05 11:50:08 +02:00 |
Dmitry-Me
|
a4d597451b
|
Resolve CID 1214637.
|
2014-07-24 16:54:20 +04:00 |
Dmitry-Me
|
615eb32fdc
|
Use temp variables to avoid repeated actions in code.
|
2014-07-23 18:51:23 +04:00 |
Dmitry-Me
|
fae9d975cf
|
Use boolean flag to avoid comparison duplication
|
2014-07-18 13:31:31 +04:00 |
Daniel Marjamäki
|
cb9d67b9ec
|
Fixed #5901 (False positive: (error) Using 'memcpy' with vector of uint8_t items)
|
2014-07-09 15:00:06 +02:00 |
Dmitry-Me
|
7da6ce8704
|
Omit unnecessary checks
|
2014-07-08 12:28:57 +04:00 |
amai2012
|
9b38ae73c1
|
Attempt to fix 2 Coverity messages.
Replace a few unsigned int by std::size_t
|
2014-07-07 21:25:30 +02:00 |
Robert Reif
|
1f09cb0c30
|
Fixed #5807 (non virtual dtor in virtual class)
|
2014-06-14 12:55:20 +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 |
Alexander Mai
|
b139ae3209
|
#5782 Endless recursion in CheckClass::checkReturnPtrThis(). Break endless recursion by remembering the callstack
|
2014-05-11 12:26:24 +02:00 |