Commit Graph

13226 Commits

Author SHA1 Message Date
Martin Ettl 8a3365c23e posix.cfg: Added missing open() and flock() functions. 2015-04-09 19:25:33 +02:00
Alexander Mai 9f7c71d840 Small documentation fixes 2015-04-08 21:08:18 +02:00
Frank Zingsheim 648ee95f31 Fixed #6636: (False positive unreadVariable - scope analysis seems to fail to False positive unreadVariable)
Bug was introduced by 1f5265c1bd
2015-04-08 20:30:41 +02:00
Daniel Marjamäki d563bd73f4 Fixed #6583 (False positive uninitvar - exit() ignored?!) 2015-04-08 15:35:04 +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
orbitcowboy 8596794ce7 MathLib:mod: Declared local variable as const. No functional change. 2015-04-07 17:21:28 +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
Matthias Krüger 3b84706088 travis: suppressions: actually check tools folder 2015-04-07 01:58:18 +02:00
Matthias Krüger f714f38089 reduce: fix cppcheck style remark about CppcheckExecutor not being explicit.
[tools/reduce.cpp:47]: (style) Class 'CppcheckExecutor' has a constructor with 1 argument that is not explicit.
2015-04-07 01:58:10 +02:00
Frank Zingsheim 1f5265c1bd Fixed #6253 ([False Positive] Variable not initialized in the constructor) 2015-04-06 19:47:21 +02:00
Alexander Mai bacc5ac1cc Fix false positives ignoredReturnValue about some posix interfaces. Remove redundant strsignal() output from signal handler 2015-04-06 18:16:37 +02:00
Alexander Mai 9876cf2312 #6626 crash: Token::astOperand2() const ( do while ). Fix two segmentation faults on invalid code. 2015-04-06 17:23:48 +02:00
Matthias Krüger 7fdbb91694 don't print warning message if --enable=warning is not specified.
message was of type:
(warning) Possible null pointer dereference: previous - otherwise it is redundant to check it against null.
2015-04-06 15:05:34 +02:00
Matthias Krüger 22d97fdbd6 don't print style message if --enable=style is not specified.
message was of type:
(style) Redundant checking of STL container element existence before removing it.
2015-04-06 14:26:15 +02:00
Matthias Krüger 988acf11b4 don't print warning message if --enable=warning is not given.
message was of type:
(warning) Passing value 0 to foo() leads to implementation-defined result.
2015-04-06 13:37:27 +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
Matthias Krüger 6ff9a52d8b don't print style message if --enable=style is not given (#6627)
message was of type:
(style) Class 'foo' is unsafe, 'foo::bar' can leak by wrong usage.
2015-04-06 12:02:21 +02:00
Martin Ettl 435a5d0bf9 posix.cfg: Added support for uname(). 2015-04-05 23:23:39 +02:00
Martin Ettl 92c364ead8 posix.cfg: Added support for more functions. 2015-04-05 23:15:23 +02:00
Martin Ettl b5f20be151 std.cfg: Improved matching of functions. Improved documentation. 2015-04-05 22:48:53 +02:00
PKEuS 6370c11386 Merge pull request #587 from simartin/instantiation_point_in_debug_message
Show template instantiation and not definition location in template instantiation debug message
2015-04-05 20:41:01 +02:00
Simon Martin 0f7f08644c Show template instantiation and not definition location in template instantiation debug message. 2015-04-05 14:54:24 +02:00
Martin Ettl a16ed8f0e7 posix.cfg: Added support for more functions. std.cfg: Fixed mktime->mkxtime wrong naming and improved asctime() function checking. It is not allowed to provide a NULL pointer to asctime(). 2015-04-04 23:59:05 +02:00
Martin Ettl c89d2b16cc std.cfg: Improved function matching of strto* functions. 2015-04-04 22:59:58 +02:00
Martin Ettl 19e4c8bed0 std.cfg: Added support for functions from <iomanip>. 2015-04-04 22:42:12 +02:00
Robert Reif c02acea5bf Fixed #6614 (false positive: (style) The class 'A' does not have a constructor.) 2015-04-04 11:33:25 +02:00
Matthias Krüger 77e22da7fe testrunner: fix -Wshadow warning.
warning was:

test/testsimplifytemplate.cpp: In member function ‘int TestSimplifyTemplate::templateNamePositionHelper(const char*, unsigned int)’:
test/testsimplifytemplate.cpp:1170:22: warning: declaration of ‘tok’ shadows a member of 'this' [-Wshadow]
         const Token *tok = tokenizer.tokens();
                      ^
2015-04-04 01:15:56 +02:00
Daniel Marjamäki aacd9b9f6b Fixed #6586 (Tokenizer: '>>' is wrongly tokenized as '> >' - if (n1 < len>>1)) 2015-04-03 20:25:49 +02:00
PKEuS 4644e2a9a6 Merge pull request #585 from Dmitry-Me/omitUneededCheck
Omit uneeded checks
2015-04-02 12:04:39 +02:00
Dmitry-Me ba423185b8 Omit uneeded checks 2015-04-02 10:26:19 +03:00
amai2012 788da37e05 Merge pull request #584 from Dmitry-Me/betterVariableName3
Formatting cleanup, better variable name
2015-04-02 09:20:31 +02:00
amai2012 111bcb1b87 Merge pull request #583 from Dmitry-Me/betterVariableName2
Better variable name
2015-04-02 09:20:24 +02:00
Alexander Mai 4048c50a69 Minor improvements on signal handler 2015-04-01 21:17:13 +02:00
Dmitry-Me 7b69396223 Formatting cleanup, better variable name 2015-04-01 18:23:51 +03:00
Dmitry-Me aa7d665e7a Better variable name 2015-04-01 16:39:45 +03:00
PKEuS 72b4809da0 Moved simplification of operator names before template and parentheses simplifications (#6576) 2015-04-01 13:47:36 +02:00
PKEuS 0d37c4df04 Fixed three unique crashs on garbage code (#6613).
Removed redundant copy of string in templatesimplifier.cpp
2015-04-01 12:43:24 +02:00
PKEuS 4c3a7661c3 Merge pull request #565 from Dmitry-Me/cacheAndReuse
Cache and reuse value
2015-04-01 11:30:13 +02:00
PKEuS 04a3196a32 Merge pull request #576 from Dmitry-Me/anyParameterType
Constructor parameter type need not be a number
2015-04-01 11:29:44 +02:00
orbitcowboy 524585f566 windows.cfg: Added support for more Comm functions. 2015-03-31 08:33:27 +02:00
orbitcowboy d379ebed2d Fixed typos. No functional changes. [ci-skip] 2015-03-30 16:41:53 +02:00
orbitcowboy f7c724e3eb windows.cfg: Added support for more windows functions. 2015-03-30 16:25:36 +02:00
orbitcowboy dde34bb88c #6135: Added test case to testgarbage in order to ensure that this issue does not appear again. 2015-03-30 15:33:24 +02:00
Daniel Marjamäki e3bff8ff07 astyle formatting 2015-03-29 21:05:18 +02:00
amai2012 022b40b36f Merge pull request #581 from Dmitry-Me/moreTestsForDeleteWithComma
Test simplification of "delete a, b, c"
2015-03-29 20:40:01 +02:00
Dmitry-Me 7c402afeb7 Preprocessor: Reduce overhead from searching for fallthrough comments when not needed 2015-03-29 09:28:17 +02:00
Dmitry-Me 712b101862 Test simplification of "delete a, b, c" 2015-03-27 17:49:35 +03:00
Daniel Marjamäki b637e70d63 Merge pull request #579 from Dmitry-Me/dontCallAbort
Don't call abort() in the middle of C++ code
2015-03-26 16:15:59 +01:00
Dmitry-Me e36ff852cd Don't call abort() in the middle of C++ code 2015-03-26 15:26:08 +03:00
amai2012 c70db2a751 Merge pull request #577 from Dmitry-Me/properSimplifyDeleteWithComma
Proper simplify delete a,b
2015-03-25 22:38:35 +01:00