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
Dmitry-Me
e8f0abf259
Proper simplify delete a,b
2015-03-25 16:54:23 +03:00
Dmitry-Me
d735918a8a
Constructor parameter type need not be a number
2015-03-25 14:56:45 +03:00
Daniel Marjamäki
9846ff10b2
Merge pull request #575 from Dmitry-Me/avoidIntegerTruncation
...
Avoid value truncation
2015-03-25 09:58:42 +01:00
Dmitry-Me
9398fa810b
Avoid value truncation
2015-03-25 10:39:09 +03:00
PKEuS
be4e51f00b
Merge pull request #571 from Dmitry-Me/omitUnneededActions3
...
Omit unneeded actions
2015-03-24 19:25:22 +01:00
PKEuS
b9ff2fd922
Merge pull request #573 from Dmitry-Me/removeDuplicateCheck
...
Remove duplicate check
2015-03-24 19:24:14 +01:00
amai2012
a894300004
Merge pull request #574 from Dmitry-Me/resolveCid1288510
...
Resolve CID 1288510
2015-03-24 19:23:11 +01:00
amai2012
035faa4b6b
Merge pull request #572 from Dmitry-Me/mergeOverlappingPatterns4
...
Merge overlapping patterns
2015-03-24 16:55:37 +01:00
Dmitry-Me
618c038448
Resolve CID 1288510
2015-03-24 17:59:24 +03:00
Dmitry-Me
8a4033e13a
Omit unneeded actions
2015-03-24 16:01:59 +03:00
Dmitry-Me
c9cdba5865
Remove duplicate check
2015-03-24 15:58:03 +03:00