Daniel Marjamäki
fd67ca146d
Fixed #4955 (false positive: Variable 'i' is assigned a value that is never used (only used in template instantiation))
2016-01-30 16:49:39 +01:00
Daniel Marjamäki
0e89620212
Fixed #4698 (False positive: Uninitialized member variable warning with confusing namespaces)
2016-01-30 14:04:48 +01:00
Daniel Marjamäki
f3f9ea2d09
TemplateSimplifier: One more fix for #3130 . Restored max recursion count to 100 and improve pattern for reference template instantiations instead.
2016-01-30 11:22:44 +01:00
Daniel Marjamäki
f116de678e
Fixed #3130 (Tokenizer: Doesn't instantiate recursive template correctly)
2016-01-30 10:33:25 +01:00
Dmitry-Me
c74282c258
Test for signed char index in positive values range
2016-01-29 11:09:25 +03:00
Daniel Marjamäki
fa31ebf88e
Fixed #7349 (checker 'inefficient find()' unintentionally used for find_first_of())
2016-01-29 08:55:46 +01:00
Daniel Marjamäki
8ef17e70ca
reduce: try removing codeblocks below ';{}'
2016-01-28 08:05:43 +01:00
Daniel Marjamäki
b5986f6ad2
Fixed #7358 (valueflow: value is not known after conditional assignment)
2016-01-27 19:20:00 +01:00
Daniel Marjamäki
477d02bbe7
reduce: fix
...
[ci skip]
2016-01-27 15:30:10 +01:00
Daniel Marjamäki
4d2caff360
reduce: try to reduce blocks better
2016-01-27 15:03:52 +01:00
Daniel Marjamäki
ef1dd89d72
reduce: cleanups
2016-01-27 08:20:58 +01:00
Alexander Mai
1dac1664be
7357 segmentation fault in TokenList::insertTokens
2016-01-26 19:12:57 +01:00
Daniel Marjamäki
462b98afbc
Fixed #7310 (ValueFlow: Value of NULL in function call)
2016-01-26 16:53:01 +01:00
Daniel Marjamäki
5c9be4a0df
Fixed #7216 (ValueFlow: known value in condition)
2016-01-26 16:10:15 +01:00
Daniel Marjamäki
c0056d2455
Fixed #7347 (AST: wrong ast when template variable is declared and initiailized in if 'if (A::B<C> abc = 123)')
2016-01-26 10:40:44 +01:00
Daniel Marjamäki
40e14f401f
CheckCondition::alwaysTrueFalse: Move to normal checking to catch more problems
2016-01-26 10:08:21 +01:00
Daniel Marjamäki
a391bca060
Fixed #7350 (ValueFlow: Result of 'x & 0' is always 0)
2016-01-26 10:07:42 +01:00
Daniel Marjamäki
5e10e680da
CWE: refactoring. use constants instead of magic numbers.
2016-01-25 20:01:48 +01:00
Daniel Marjamäki
cb6c9e1a71
reduce.py: fix hang
2016-01-25 16:25:50 +01:00
Daniel Marjamäki
620c6e8f1c
reduce: improved removing of code blocks. loop until nothing is removed.
2016-01-25 13:41:27 +01:00
Daniel Marjamäki
0fb9ab7b4a
Refactoring CheckMemoryLeakNoVar::checkForUnusedReturnValue(). use continue
2016-01-25 10:33:11 +01:00
Daniel Marjamäki
7663b6ee75
Fixed #7348 (AST: wrong ast for cast that starts with :: '(::X*)x;')
2016-01-25 10:29:24 +01:00
amai2012
edfdb5c15f
Merge pull request #768 from boos/upstream
...
Mapped 29 errors to their CWEs ID.
2016-01-24 23:06:06 +01:00
Roberto Martelloni
5ce69da02d
Mapped 26 errors to their CWEs ID.
2016-01-24 20:53:05 +00:00
Daniel Marjamäki
659cd96b03
Fixed #7209 (False positive: Array index used before limits check reported in sizeof)
2016-01-24 14:06:02 +01:00
Daniel Marjamäki
6faa637fc7
Fixed #6537 (False positive badBitmaskCheck - error in valueflow)
2016-01-24 13:45:44 +01:00
Daniel Marjamäki
a8416bfb16
Fixed #6000 (ValueFlow: conditional code in for loops)
2016-01-24 13:11:51 +01:00
Daniel Marjamäki
76cdfbf487
Fixed #6330 (valueflow: condition is always false first iteration in dowhile loop)
2016-01-24 08:57:57 +01:00
Matthias Krüger
abccd9af95
travis: check llvm too, for greater coverage
2016-01-23 12:29:56 +01:00
Daniel Marjamäki
26612ab846
Fixed #5332 (Tokenizer: if braces not added properly 'if (x==123) label: {}')
2016-01-23 11:43:48 +01:00
Daniel Marjamäki
3d0338e9f9
Fixed #7212 (incorrectly adding function argument with no name)
2016-01-23 09:48:21 +01:00
Daniel Marjamäki
2627aada07
Fixed #7346 (Tokenizer::setVarId: No varId for member in initialization list)
2016-01-23 08:28:04 +01:00
Daniel Marjamäki
f64930b7f5
Fixed #7343 (SymbolDatabase: handling of override)
2016-01-22 19:22:24 +01:00
orbitcowboy
8ce813f241
posix.cfg: Added missing <leak-ignore>-tags.
2016-01-22 11:03:37 +01:00
orbitcowboy
8ea36fb6ec
gnu.cfg,posix.cfg: Added support for more functions.
2016-01-22 10:40:04 +01:00
orbitcowboy
b65873711a
posix.cfg,gnu.cfg: Moved a few functions from posix to gnu. Improved the documentation.
2016-01-21 16:32:00 +01:00
orbitcowboy
1464990dad
posix.cfg: Added more functions and comments.
2016-01-21 16:14:59 +01:00
orbitcowboy
82c663090e
windows.cfg, posix.cfg: Added support for more functions.
2016-01-21 15:48:08 +01:00
Daniel Marjamäki
7d8853d604
reduce: speed up the 'combinelines' pass
2016-01-21 14:42:10 +01:00
Daniel Marjamäki
49ff511324
Added script reduce.py that reduces code. It can complement the reduce tool. It can also be used with other tools and not just cppcheck.
2016-01-21 11:03:55 +01:00
PKEuS
b7efc7793a
Merge pull request #766 from Gumichan01/master
...
New translations (french)
2016-01-20 21:04:17 +01:00
Gumichan01
9afd632c91
French translations
2016-01-20 19:11:31 +01:00
Daniel Marjamäki
8568a80208
Fixed #6883 (Template parsing error)
2016-01-20 16:10:58 +01:00
orbitcowboy
ad01a89e05
Merge pull request #765 from Dmitry-Me/checkFormatBeforeSplitting
...
Check string has expected format before processing it
2016-01-20 15:07:28 +01:00
Dmitry-Me
58541f7ffa
Check string has expected format before processing it
2016-01-20 16:46:15 +03:00
orbitcowboy
2484a29916
Merge pull request #764 from lbakman/master
...
Determine if path is directory for XFS filesystem
2016-01-20 13:41:48 +01:00
Lau bakman
53f07c1423
Determine if path is directory for XFS filesystem
...
The dir_result->d_type == DT_DIR does not work on XFS file systems.
This is fixed by using the FileLister::isDirectory when dir_result->d_type == DT_UNKNOWN.
According to readdir_r documentation, the case where d_type == DT_UNKNOWN should be handled.
2016-01-20 12:55:48 +01:00
Daniel Marjamäki
642cc57428
CheckMemoryLeak: Fix FP when overloaded new is used
2016-01-20 10:34:03 +01:00
Daniel Marjamäki
4a3ece5847
CheckNullPointer: Fix FP for 'buf[p]' when p is NULL
2016-01-20 08:42:58 +01:00
Daniel Marjamäki
ab441f3fb1
Tokenizer:vardecl: split up reference variables declared in class better
2016-01-19 15:27:11 +01:00