Daniel Marjamäki
|
e446a28b3d
|
Refactoring FileLister and Path so they don't depend on Library
|
2013-10-31 19:09:01 +01:00 |
Martin Ettl
|
c529de6e07
|
Library: tinyxml2::FirstChildElement() is capable of returning 0. This fixes a waring of scan.coverity(): CID 1113430 (#1 of 1): Dereference null return value (NULL_RETURNS)
|
2013-10-29 00:36:27 +01:00 |
Daniel Marjamäki
|
d3bd373798
|
Fixed #5131 (False Positive: %u in format string requires 'unsigned int' but the argument type is 'int'.)
|
2013-10-31 17:20:00 +01:00 |
Daniel Marjamäki
|
352c459e28
|
Merge pull request #194 from simartin/ticket_5121
Ticket #5121: Handle static variable declarations depending on one another
|
2013-10-30 22:09:44 -07:00 |
Alexander Mai
|
14787cde99
|
Fixed #5129 (FP:arithOperationsOnVoidPointer on void**)
|
2013-10-31 06:04:51 +01:00 |
Daniel Marjamäki
|
06c5bd0daa
|
Fixed #5128 (False positive zerodivcond 'a ? 1 / a : 0')
|
2013-10-30 16:51:00 +01:00 |
Simon Martin
|
d67722ebdf
|
Ticket #5121: Handle comma separated static variable declarations depending on one another
|
2013-10-30 15:48:00 +01:00 |
Simon Martin
|
463ef2e71e
|
Ticket #5120: New test case, that works now that #5125 is fixed
|
2013-10-30 10:15:03 +01:00 |
Simon Martin
|
052be76635
|
Ticket #5125: Avoid infinite recursion for recursive class definitions
|
2013-10-29 21:41:47 +01:00 |
Daniel Marjamäki
|
5c072993e3
|
CheckBool: Fixed false negative when assigning bool to pointer '; s.p = true; '
|
2013-10-29 16:16:52 +01:00 |
orbitcowboy
|
30984ff649
|
Tokenize: improved const correctness of local variables, no functional change.
|
2013-10-25 01:34:53 -07:00 |
orbitcowboy
|
76e092428a
|
Tokenize: improved const correctness of local variables, no functional change.
|
2013-10-25 01:31:55 -07:00 |
Daniel Marjamäki
|
514277e91b
|
Library: Fixed bug. Continue if there is no errors.
|
2013-10-27 17:38:39 +01:00 |
PKEuS
|
bd752cabcf
|
Let TinyXML2 handle fopen/fclose. Added testlibrary.cpp to VS10 solution
|
2013-10-27 17:32:38 +01:00 |
Daniel Marjamäki
|
e0244d343d
|
Library: Fixed resource leak
|
2013-10-27 17:17:54 +01:00 |
Daniel Marjamäki
|
569a29bc4a
|
Library: Added simple testing
|
2013-10-27 17:10:43 +01:00 |
PKEuS
|
c95b153700
|
Refactorizations:
- Removed some redundant operator=, copy-ctor and dtor implementations
- use operator[] instead of at() in library loading code
|
2013-10-27 13:55:13 +01:00 |
Robert Reif
|
94187c41c2
|
Fixed #5104 (False positive: Invalid argument in printf and scanf for vector template)
|
2013-10-27 10:48:49 +01:00 |
Daniel Marjamäki
|
4a6274dcc0
|
Merge pull request #183 from felipensp/null_ptr_typeof
- Fixed false positive when passing pointer to typeof()
|
2013-10-27 02:37:31 -07:00 |
Daniel Marjamäki
|
ec3ab74631
|
Preprocessor: Use set instead of list to track '#pragma once' usage
|
2013-10-27 10:33:37 +01:00 |
Daniel Marjamäki
|
86358694fb
|
Uninitvar: Added comment to clarify that the old logic for function calls has been removed because it had FP and the 'same' checking in the new checker will be used to catch these errors instead.
|
2013-10-26 18:46:06 +02:00 |
Daniel Marjamäki
|
51ad9ab6ac
|
Fixed #4896 (FP Uninitialized variable on template function)
|
2013-10-26 18:39:40 +02:00 |
Daniel Marjamäki
|
8687e85e56
|
Fixed #4850 (False positive: invalidIterator1 detected when iterator container is member of some struct)
|
2013-10-26 17:48:20 +02:00 |
Daniel Marjamäki
|
853d9dd7a9
|
Fixed #4956 (false positive: Variable 'myIsFirst' is assigned a value that is never used.)
|
2013-10-26 15:22:28 +02:00 |
Daniel Marjamäki
|
22351a73b1
|
doxygen: escape #pragma in comment to make doxygen happy. Thanks XhmikosR for the suggestion!
|
2013-10-25 16:08:19 +02:00 |
Daniel Marjamäki
|
c6702db9ab
|
Code cleanups
|
2013-10-23 15:03:31 +02:00 |
XhmikosR
|
c11ee0a1ed
|
Remove unused variables.
|
2013-10-23 09:19:23 +03:00 |
XhmikosR
|
93bdf45313
|
Fix typo in error message.
|
2013-10-23 09:05:39 +03:00 |
Daniel Marjamäki
|
364757e1e1
|
Fixed #5089 ('inconclusive' output printed although --inconclusive not specified)
|
2013-10-23 06:42:52 +02:00 |
Daniel Marjamäki
|
d1b03d9c31
|
Fixed false positive for 'object is destroyed immediately' when there is no code after the object
|
2013-10-22 19:37:11 +02:00 |
Daniel Marjamäki
|
a55056c770
|
Fixed #5105 (false positive: (warning) Either the condition 'b!=0' is useless or there is division by zero)
|
2013-10-22 16:18:42 +02:00 |
Daniel Marjamäki
|
fd0f2d7900
|
Fixed #4929 (False positive: possible null pointer deref (checks dont handle && and || well))
|
2013-10-22 10:47:48 +02:00 |
Sam Truscott
|
6806fd8135
|
Extended Qt support through Library
|
2013-10-20 14:09:10 +02:00 |
Daniel Marjamäki
|
fc26de89a9
|
Fixed #5082 (False positive: (error) Possible null pointer dereference: p2)
|
2013-10-20 13:37:36 +02:00 |
Daniel Marjamäki
|
5d7e0aebf4
|
Fixed #5084 (False positive: (style) Same expression on both sides of '&&')
|
2013-10-19 18:04:53 +02:00 |
Daniel Marjamäki
|
6aa03efa2f
|
Fixed #5103 (Don't show 'The scope of the variable can be reduced' if there is no explicit block with { })
|
2013-10-19 17:27:02 +02:00 |
Daniel Marjamäki
|
e3a12de057
|
astyle formatting
|
2013-10-19 09:52:19 +02:00 |
Daniel Marjamäki
|
f8710cb984
|
Fixed #5102 (Crash if -D is used when scanning simple preprocessor code.)
|
2013-10-18 06:47:55 +02:00 |
Robert Reif
|
b41ab8a4d5
|
Fixed #5088 (Token::Match called with varid 0. in libreoffice sd/source/ui/table/TableDesignPane.cxx)
|
2013-10-14 21:05:54 +02:00 |
Felipe Pena
|
ecb0e70250
|
- Fixed false positive when passing pointer to typeof()
|
2013-10-12 10:19:15 -03:00 |
Daniel Marjamäki
|
b70d9196cb
|
1.62: Update version
|
2013-10-12 12:30:17 +02:00 |
Daniel Marjamäki
|
21c537e8d7
|
1.62: Set versions
|
2013-10-12 12:22:52 +02:00 |
Robert Reif
|
1fccfd50eb
|
Fixed #5080 ((error) Internal error. Token::Match called with varid 0. Please report this to Cppcheck developers)
|
2013-10-12 10:50:59 +02:00 |
orbitcowboy
|
9debeab47c
|
Tokenizer:simplifyMathExpressions: fixed false negative patterns for simplification.
|
2013-10-11 11:58:37 -07:00 |
Daniel Marjamäki
|
bb0385321f
|
Fixed #5074 (False positive: Duplicate expression (macro))
|
2013-10-13 17:42:06 +02:00 |
Martin Ettl
|
a674ed1aa9
|
Tokenizer:simplifyMathFunction: added simplifcation for fma[f|l]() functions.
|
2013-10-13 16:28:02 +02:00 |
Martin Ettl
|
e18ebf313f
|
Tokenizer:simplifyMathFunctions: added support for more math functions.
|
2013-10-13 15:41:47 +02:00 |
Martin Ettl
|
cdb47813d5
|
Tokenizer:simplifyMathFunctions: added support for cosh[f|l], cos[f|l] and erfc[f|l] functions.
|
2013-10-13 14:23:10 +02:00 |
Daniel Marjamäki
|
9e12bdf9cb
|
Merge pull request #184 from felipensp/uninitialized_var_typeof
- Fixed false positive when using typeof/__alignof__
|
2013-10-13 01:43:18 -07:00 |
PKEuS
|
4cd2fad2bf
|
Set version to 1.63 dev
|
2013-10-13 09:53:56 +02:00 |
Felipe Pena
|
ed565f1ab1
|
- Fix comment
|
2013-10-12 13:49:35 -03:00 |
Felipe Pena
|
c37ba4cbcf
|
- Fixed false positive when using typeof/__alignof__
|
2013-10-12 13:46:14 -03:00 |
orbitcowboy
|
6eaa2f2444
|
Tokenizer:simplifyMathFunctions: added support for acos[f|l] functions.
|
2013-10-09 07:59:32 -07:00 |
Daniel Marjamäki
|
682e68b1b6
|
Fixed #5077 (False positive: Comparison of boolean result with relational operator ((X + (Y < 0)) <= b))
|
2013-10-09 05:43:50 +02:00 |
Martin Ettl
|
f08325284c
|
Tokenizer:simplifyMathFunctions: added support for acosh[f|l]() functions.
|
2013-10-07 22:10:58 +02:00 |
Daniel Marjamäki
|
9ce7efc6e4
|
commaSeparatedReturn: made checking experimental for now because there are false positives (#5076)
|
2013-10-08 18:05:07 +02:00 |
Daniel Marjamäki
|
4f88fdcf4a
|
Check64Bit: Fixed false positive about returning integer for 'p+(n*80)'
|
2013-10-08 06:36:45 +02:00 |
Robert Reif
|
41b3ed788d
|
CheckIO: fix crash
|
2013-10-08 05:33:37 +02:00 |
Daniel Marjamäki
|
f9cf148012
|
CheckBool: Skip 'bool' type checking in C code
|
2013-10-07 18:41:07 +02:00 |
Daniel Marjamäki
|
b81de5494e
|
CheckBool: Fixed false positive for calculation using bool result in rhs
|
2013-10-07 18:01:08 +02:00 |
Daniel Marjamäki
|
d2025363d0
|
CheckBool: Fix false positive for '(a != boolexpr || c)' if a is a int
|
2013-10-07 17:44:19 +02:00 |
Daniel Marjamäki
|
83f9503839
|
CheckBool: Fixed false positives for non-bool expressions that contain ! operator
|
2013-10-07 16:37:51 +02:00 |
Daniel Marjamäki
|
023d0e7cb8
|
Fixed #5072 (False positive: comparisonOfBoolWithInvalidComparator even without explicit bool type)
|
2013-10-07 16:16:07 +02:00 |
Daniel Marjamäki
|
4cd0108b93
|
Fixed #4976 (False positive: (style) A pointer can not be negative (git/sha1_file.c))
|
2013-10-06 16:52:27 +02:00 |
Daniel Marjamäki
|
0ef1529ba5
|
Fixed #5005 (false positive: (warning) Assignment of function parameter has no effect outside the function.)
|
2013-10-06 16:07:27 +02:00 |
Daniel Marjamäki
|
1234ec95f0
|
Fixed #4998 (False positive: Address of local auto-variable assigned to a function parameter)
|
2013-10-06 14:23:26 +02:00 |
Daniel Marjamäki
|
9f23b7a1b4
|
Fixed #5063 (False positive for comparisonOfBoolWithInvalidComparator)
|
2013-10-06 10:39:08 +02:00 |
Daniel Marjamäki
|
c234cace6d
|
Fixed #5064 (Tokenizer::simplifySizeof: Doesn't simplify 'sizeof !! (a==1);' properly)
|
2013-10-06 08:20:10 +02:00 |
Daniel Marjamäki
|
9cfc1030cd
|
Tokenizer: Optimised loop
|
2013-10-06 07:46:35 +02:00 |
Daniel Marjamäki
|
946722faf0
|
Fixed #4968 (False positive: Structure with 'read' member is confused with read() function.)
|
2013-10-05 18:25:44 +02:00 |
Robert Reif
|
7098fc6039
|
CheckIO: fixed handling of unknown types. Ticket #5051
|
2013-10-05 16:47:06 +02:00 |
Daniel Marjamäki
|
6830d5f7a4
|
Fixed #5042 (false positive: Redundant code (set filled in initialization list))
|
2013-10-05 12:26:09 +02:00 |
Daniel Marjamäki
|
db4ca13184
|
CheckBool: refactoring isBoolExpr
|
2013-10-05 11:31:55 +02:00 |
Daniel Marjamäki
|
f2fdd967f5
|
Fixed #5046 (False positive: Boolean value assigned to pointer)
|
2013-10-05 08:53:37 +02:00 |
Daniel Marjamäki
|
348f3fa97f
|
Fixed #5058 (False positive: (warning) Comparison of a boolean expression with an integer.)
|
2013-10-05 08:33:33 +02:00 |
Robert Reif
|
5dbc02250f
|
This patch adds pointer to format string support to printf. Ticket: #5051
|
2013-10-05 07:47:52 +02:00 |
Robert Reif
|
44559a1fb2
|
Fixed #5069 (sizeof(void) when variable name is override)
|
2013-10-05 07:40:59 +02:00 |
Robert Reif
|
6c06cdd24d
|
CheckIO fixes. Ticket: #5051
|
2013-10-04 17:30:55 +02:00 |
Martin Ettl
|
a8cf8f0984
|
Tokenizer:simplifyMathFunctions: fixed false positives when simplifying special pow() cases.
|
2013-10-03 22:54:45 +02:00 |
Martin Ettl
|
f8bd33f2bc
|
Tokenizer:simplifyMathFunctions: added support for log()-functions. Improved testcases and documentation. The function simplifyMathFunctions() returns now true in case a simplifcation is made. This function is called within a while loop to guarantee all simplifications are made.
|
2013-10-03 20:52:07 +02:00 |
Martin Ettl
|
548e2f3fbf
|
Tokenizer:simplifyMathExpression: fixed false negatives in simplifying Pythagorean and Hyperbolic identities.
|
2013-10-03 15:41:12 +02:00 |
Robert Reif
|
59de30823e
|
CheckIO: This patch adds support for fprintf_s, fscanf_s and %I. Ticket: #5051
|
2013-10-03 06:37:40 +02:00 |
Robert Reif
|
022e7a0f0f
|
CheckIO: Fix INT_PTR false positive found while checking mpc-hc. Ticket: #5057
|
2013-10-02 04:19:04 +02:00 |
Robert Reif
|
5aba841499
|
CheckIO: Handling of casts (#4964)
|
2013-10-02 04:12:46 +02:00 |
PKEuS
|
17810e4eb5
|
Fixed linker problems in mathlib
|
2013-10-01 20:40:55 +02:00 |
Martin Ettl
|
fa5ee8fd13
|
Tokenizer: simplifyMathFunctions: added more simplifications for exp(), exp2() and log2() functions.
|
2013-10-01 20:30:59 +02:00 |
orbitcowboy
|
677257f569
|
Fixed clang warning: lib/checkother.h:360:80: warning: implicit conversion turns string literal into.
|
2013-09-30 10:43:21 -07:00 |
XhmikosR
|
2762a30e48
|
Prefer prefix operator.
|
2013-10-01 09:20:19 +03:00 |
Robert Reif
|
cc6745fef6
|
CheckIO: Fixed false positives when using _snprintf_s and _snwprintf_s. Ticket: #5057
|
2013-10-01 05:49:44 +02:00 |
Martin Ettl
|
f0cbeb5233
|
simplifyMathFunctions: added support for exp(),sqrt(),cbrt() functions.
|
2013-09-29 18:11:17 +02:00 |
Robert Reif
|
c37c6617d3
|
Fixed #5057 (Microsoft secure printf/scanf support.)
|
2013-09-30 19:55:21 +02:00 |
Daniel Marjamäki
|
e3b7bce72b
|
Fixed #4907 (False positive 'uninitStructMember' on structs with unions)
|
2013-09-30 06:35:31 +02:00 |
Lucas Manuel Rodriguez
|
cb4abd6f16
|
Add doc. to typeStartToken and typeEndToken functions
|
2013-09-29 16:09:19 -03:00 |
Daniel Marjamäki
|
1c513f330a
|
Fixed #5055 (False negatives when using -I (external source code))
|
2013-09-29 18:59:27 +02:00 |
Martin Ettl
|
00987eb120
|
MathLib: improved constness of local variables. No functional change.
|
2013-09-29 15:49:02 +02:00 |
Daniel Marjamäki
|
f96a88ec57
|
Fixed #5054 (debug warnings when Variable::typeStartToken() or Variable::typeEndTypen() is not set correctly)
|
2013-09-29 16:01:22 +02:00 |
Robert Reif
|
d3798958f4
|
CheckIO: Fixed false positive when using wchar_t (#5051)
|
2013-09-29 15:25:18 +02:00 |
Martin Ettl
|
0527aefb11
|
Improved simplifyMathFunctions when simplifying special cases of pow(x,y)-function.
|
2013-09-29 15:11:09 +02:00 |
Martin Ettl
|
ee9b7283ec
|
checkother:checkComparisonFunctionIsAlwaysTrueOrFalse: Removed redudant varid != 0 check. No functional changes.
|
2013-09-29 13:33:46 +02:00 |
Daniel Marjamäki
|
973bdcc6d8
|
Fixed #4929 (false positive: Division by zero (standard function div()))
|
2013-09-29 11:13:49 +02:00 |