14041 Commits

Author SHA1 Message Date
Daniel Marjamäki
5d12471caa fix travis, remove unused variable 2015-10-18 17:19:44 +02:00
Alexander Mai
8667184f12 #7062 Remove unnecessaryQualification check 2015-10-18 17:00:09 +02:00
Daniel Marjamäki
9be284e80f AST: proper operator precedence for c++11 initializer {} and :: 2015-10-18 16:58:15 +02:00
PKEuS
52be380ef0 Fixed fix for #7042 - support hexadecimal digits 2015-10-18 16:37:33 +02:00
Alexander Mai
7112725d38 Simplify code (repair travis build) 2015-10-18 16:04:49 +02:00
Alexander Mai
21efa992e3 #6865 TemplateSimplifier::expandTemplate doesn't terminate on invalid code. Add some another syntax check on templates to avoid problems later on. 2015-10-18 15:47:37 +02:00
Daniel Marjamäki
9bb2af1893 Fixed #7059 (AST: handle C++ initialization with {} better) 2015-10-18 13:43:39 +02:00
Alexander Mai
8f07b2e440 #6922 valueFlowForward does not terminate: xorg/driver/xf86-video-neomagic : src/neo_driver.c (invalid code). Add regression test for previously fixed bug. 2015-10-18 11:52:25 +02:00
Daniel Marjamäki
b81b21a57b Fixed #7051 (hang in ast code (failed to create a proper testcase)) 2015-10-18 11:42:18 +02:00
Daniel Marjamäki
fe4fac7eb2 Fixed #7058 (Tokenizer::simplifyTypedef: wrong simplification of enum constant 'AB::A' if AB is a struct typedef) 2015-10-18 04:55:04 +02:00
Daniel Marjamäki
ec87b09d89 Fixed #7056 (iscast does not handle '(ulong)~0' properly, Tokenizer::simplifyCalculations wrongly simplifies '(ulong)~0' to 'ulong~0') 2015-10-17 18:58:13 +02:00
Daniel Marjamäki
30af2fcd73 iscast: handle '(ulong)~0' better 2015-10-17 18:25:27 +02:00
Daniel Marjamäki
507727e07f Fixed Travis 2015-10-17 17:15:19 +02:00
Daniel Marjamäki
c88297c971 Fixed #7054 (AST: handle C++ initialization with {} better) 2015-10-17 17:03:24 +02:00
amai2012
399f8492d6 Merge pull request #698 from Dmitry-Me/betterVariableName6
Reduce variable lifetime, better name
2015-10-16 10:26:19 +02:00
Dmitry-Me
fa30ed5d15 Reduce variable lifetime, better name 2015-10-16 11:00:04 +03:00
PKEuS
c22833342c Merge pull request #695 from Dmitry-Me/explicitContinue
Explicit continue instead of fall through with a check
2015-10-15 21:48:08 +02:00
Alexander Mai
8e3e981323 #7050 segmentation fault (invalid code) in isVariableChanged 2015-10-15 21:27:55 +02:00
Dmitry-Me
ae7a7d287e Explicit continue instead of fall through with a check 2015-10-15 18:03:27 +03:00
Daniel Marjamäki
6cf25825de Fixed #7030 (Tokenizer::simplifyTypedef: Label) 2015-10-15 16:56:22 +02:00
PKEuS
430e31ec1e Merge pull request #694 from Dmitry-Me/omitRepeatedSearch
Remove repeated search, clearer code
2015-10-15 16:01:28 +02:00
Dmitry-Me
64bdf03986 Remove repeated search, clearer code 2015-10-15 16:48:35 +03:00
PKEuS
04a31011b0 GUI: Do not show Severity, Id, Inconclusive and Summary twice if an error element has a child 2015-10-15 12:08:51 +02:00
PKEuS
dfe61f415d GUI: Improved handling of inconclusive messages (#3815)
- Moved setting from "Advanced" to "General" tab
-> Moved remaining single item, too, as it does not make sense to keep a tab for a single option. This option is now shown at the bottom of the dialog
- Replaced [inconclusive] string in "Summary" Column by extra column "Inconclusive", which is only visible if inconclusive checking is enabled
2015-10-15 11:59:17 +02:00
PKEuS
46bfa62aad Execute prepareTernaryOpForAST earlier (#7048) 2015-10-15 10:31:54 +02:00
Alexander Mai
600641c4c5 #7043 segmentation fault (invalid code) in Tokenizer::simplifyVarDecl 2015-10-14 20:34:55 +02:00
PKEuS
6dcb918b78 GUI: Implemented "Recheck all files" button (#3614), renamed "Recheck files" button to "Recheck modified files" (#3624) 2015-10-14 19:07:20 +02:00
PKEuS
dcb746a49a GUI: Improved translations:
- Fixed translation of default buttons for Qt5
- Removed translation opportunity for language names. English or native names are better than translated names (#4014)
2015-10-14 18:21:00 +02:00
PKEuS
fb2802d6a3 GUI: Show file that included a header in details view (#4026) 2015-10-14 18:10:14 +02:00
PKEuS
46a43f3041 GUI: Properly refresh result tree if new rows are added (#4727) 2015-10-14 17:44:52 +02:00
PKEuS
d0cc97a4cf Fixed wrong syntax error (#7045) 2015-10-14 16:01:48 +02:00
PKEuS
61d8a73f4c GUI:
- Support enforcing language (#5456)
- Fixed several broken settings by saving them before creating Settings instance (changing them required restarting cppcheck)
- Updated german translation
2015-10-14 14:32:21 +02:00
orbitcowboy
1373dd8158 Merge pull request #693 from Dmitry-Me/explicitContinueBetterNames
Explicit continue, better variable name
2015-10-14 14:28:16 +02:00
Dmitry-Me
f54f9a7d3e Explicit continue, better variable name 2015-10-14 15:06:04 +03:00
PKEuS
a97f6f973f Support C++14 digit separators (#7042) 2015-10-14 12:00:54 +02:00
Daniel Marjamäki
5b5cb63a64 Travis: Start to run some tests with the CPPCHECK2 define 2015-10-14 10:50:53 +02:00
Daniel Marjamäki
60f8982999 Fixed #7039 (ValueFlow: bitand calculation '16&15') 2015-10-14 10:44:04 +02:00
Daniel Marjamäki
a04e072976 Fixed #7040 (False positive syntaxError False positive syntaxError) 2015-10-13 20:31:17 +02:00
PKEuS
3971f8625f Fixed false positive seekOnAppendedFile if FILE* is reused (#6566) 2015-10-13 15:32:13 +02:00
PKEuS
05b5275110 Improved AST:
- Fixed TODO for ternary operator. Add parantheses between ? and : where necessary as a preparation for createAst()
- Improved AST validation:
-- Better message for binary operator with only one operand
-- Ensure ? has : as second operand (#7035)
2015-10-12 19:21:48 +02:00
Daniel Marjamäki
97326fce13 Fixed #6992 (argument name of function typedef conflicts with local variable name) 2015-10-12 10:15:02 +02:00
Daniel Marjamäki
141dd78b0e Tokenizer: Added a define CPPCHECK2 that can be used to test cppcheck without various simplifications I want to get rid of in the long run 2015-10-12 09:19:35 +02:00
Daniel Marjamäki
7148ad4239 Tokenizer: Fix sloppy syntax error 2015-10-12 08:51:41 +02:00
Daniel Marjamäki
df67e0efb6 Tokenizer: Try to hide attributes for non-gcc and non-clang compilers 2015-10-12 08:50:52 +02:00
Daniel Marjamäki
6157fc69ac Tokenizer: Added a simple AST verification 2015-10-12 08:34:12 +02:00
Daniel Marjamäki
8b8870cb5e Added noreturn attributes for methods that throws 2015-10-12 08:33:53 +02:00
Daniel Marjamäki
2c7c6b3e38 CheckIO: Try to use ValueType more 2015-10-11 17:35:54 +02:00
Daniel Marjamäki
cba11e623e Use ValueType in astIsIntegral() 2015-10-11 14:11:11 +02:00
Daniel Marjamäki
be7bca385d avoid some fixes for noisy signedness warnings 2015-10-11 12:50:46 +02:00
Daniel Marjamäki
40fffddb83 avoid some fixes for noisy signedness warnings 2015-10-11 12:36:23 +02:00