Commit Graph

9731 Commits

Author SHA1 Message Date
Frank Zingsheim b99d3f0767 Style change: Fixed #4369 (false positive: Variable 'i' is assigned a value that is never used)
based on aebdb3769f
due to comment in aebdb3769f
2012-12-05 20:18:14 +01:00
Daniel Marjamäki 599642d5a9 Reverted last revert again.. still not working 2012-12-04 23:47:09 +01:00
Daniel Marjamäki a69329a69b Revert "Reverted travis update. It doesn't work for some reason."
This reverts commit 301a5527f5.
2012-12-04 23:39:09 +01:00
Daniel Marjamäki 9bd222970e matchcompiler: fixed hang. don't know why it hangs. 2012-12-04 23:38:49 +01:00
Daniel Marjamäki 301a5527f5 Reverted travis update. It doesn't work for some reason. 2012-12-04 23:21:25 +01:00
Daniel Marjamäki 3724ce8e8e Travis: Add testing of matchcompiler 2012-12-04 23:00:56 +01:00
Daniel Marjamäki ae7846bf7e matchcompiler: added some selftests for findMatchPattern 2012-12-04 22:57:52 +01:00
Frank Zingsheim 9784a426f4 Support for older Qt versions which do not support "setPlaceholderText" 2012-12-04 22:47:47 +01:00
Frank Zingsheim aebdb3769f Fixed #4369 (false positive: Variable 'i' is assigned a value that is never used) 2012-12-04 21:39:51 +01:00
Frank Zingsheim 590704afb4 Missing semicolon in "do {} while();" tests of testunusedvar.cpp (#4180) 2012-12-03 21:49:53 +01:00
Daniel Marjamäki c91250cd6e Fixed #4277 (duplicateExpression finds false positive for floats in a union as a member of a class) 2012-12-03 17:05:37 +01:00
XhmikosR ab82cc6305 htdocs/demo/index.php: fix typo 2012-12-03 12:33:20 +01:00
XhmikosR 7000dbadd5 update .htaccess to the latest html5 boilerplate git 2012-12-03 12:33:07 +01:00
XhmikosR ebd5c17b52 combine css and js files 2012-12-03 12:32:56 +01:00
XhmikosR 1479a50db9 update jQuery to 1.8.3 2012-12-03 12:32:44 +01:00
XhmikosR 25b76894f7 htdocs: switch to uglify-js 2.x 2012-12-03 12:32:33 +01:00
XhmikosR 9ba25a891a htdocs/site/css: merge similar selectors and create the minified css with the latest clean-css 2012-12-03 12:32:21 +01:00
XhmikosR 217a8bcc59 htdocs/index.php: break a couple of very long lines and fix a typo 2012-12-03 12:32:09 +01:00
XhmikosR 7fb5c0d73b minify.bat: update workaround for node.js exiting 2012-12-03 12:31:57 +01:00
XhmikosR f8c99ce065 htdocs/site/css: reindent 2012-12-03 12:31:45 +01:00
XhmikosR 912d93b5c3 htdocs: update SimplePie to v1.3.1 2012-12-03 12:31:32 +01:00
Daniel Marjamäki 514d06b015 Makefile: minor cleanup 2012-12-03 06:34:43 +01:00
Daniel Marjamäki b08ba5b575 Preprocessor: Refactoring previous fix 2012-12-02 20:17:25 +01:00
Daniel Marjamäki cb06d07ae7 Fixed #4351 (Escaped whitespace gives wrong error) 2012-12-02 18:04:19 +01:00
Daniel Marjamäki 94930c3bd7 Compiled Token::Match patterns: let 'make clean' cleanup compiled patterns 2012-12-02 13:42:48 +01:00
Daniel Marjamäki ef5eece286 Compiled Token::Match patterns: extended match patterns and refactored the script a little 2012-12-02 13:39:59 +01:00
Daniel Marjamäki d630d34b62 Compiled Token::Match patterns. Added python script solution. Python is required to build with compiled patterns. To build cppcheck with compiled patterns use 'make LIBDIR=build'. 2012-12-02 12:36:55 +01:00
Daniel Marjamäki 15ef6bb32f Fixed #4382 (Use of alloca causes VLA recommendation in C++) 2012-12-02 11:39:26 +01:00
Daniel Marjamäki bf91454136 Fixed #4224 (False positive: Comparison of a boolean with an integer (neglecting a cast)) 2012-12-02 08:34:30 +01:00
Daniel Marjamäki dba51c906e cleanup: removed redundant insideLoop assignment in checkunusedvar. Thank you zingsheim for the suggestion 2012-12-02 07:28:05 +01:00
Robert Reif b216639069 Fixed #4378 (simplifyEnum doesn't simplify enum type within open and close parenthisis) 2012-12-02 07:22:55 +01:00
Edoardo Prezioso 45a16baaa0 Token: try to improve speed of multicompare macro. 2012-12-01 23:58:01 +01:00
XhmikosR b0a3ef33ef compress gui images losslessly 2012-12-01 17:22:19 +01:00
XhmikosR 7eb99008c0 refactored .gitignore so that it's easier to read 2012-12-01 17:21:56 +01:00
Edoardo Prezioso 072ad3e344 Updated the translation files with lupdate+lrelease.
Updated also the Italian translation which became useless, should be done the same for the other files.
2012-12-01 03:30:26 +01:00
Edoardo Prezioso f6c23fa1e7 runastyle and fix checkInternal messages. 2012-12-01 03:17:55 +01:00
Edoardo Prezioso 9ce6630b28 Add some unused private copy ctors and operator=.
In Token and in Check classes, GCC -Weffc++ reports that it's better to override the copy constructors and the assignment operator to avoid problems with copied objects which could have the same pointers, hence with double frees, when we delete one of these pointers in the copied and in the original object.
2012-12-01 02:17:46 +01:00
Edoardo Prezioso f42ab9871d Fix build breakage in recent commits. 2012-12-01 02:02:45 +01:00
Edoardo Prezioso 5101f3c029 Use the new pattern: '%comp%' where possible.
Change also the description comment of the Token::Match by adding the new pattern and the forgotten '%op%'.
2012-12-01 01:31:35 +01:00
Edoardo Prezioso aeb4531a58 Token::Match: add a new pattern: '%comp%'.
Token::Match returns true if the token is a comparison operator. It's equivalent to matching '<|<=|==|!=|>=|>' and the tests show that the new pattern speeds up the program execution. Added the new pattern in CheckInternal (and also reordered the %cmd% lists) and in TestToken.
2012-12-01 00:55:24 +01:00
Edoardo Prezioso f3782935c2 Tokenizer: improve code and change name of +- concatenation function. 2012-12-01 00:43:23 +01:00
Edoardo Prezioso 3d1d983251 Tokenizer: simplify also __FILE__ together with __LINE__. 2012-12-01 00:37:10 +01:00
Edoardo Prezioso 47f1220367 Remove useless preprocessor pieces from some testcases. 2012-11-30 20:28:30 +01:00
Daniel Marjamäki 45b77554ea Fixed #4308 (C++11 raw string literals not parsed correctly) 2012-11-30 13:46:46 +01:00
PKEuS 5f8496407f Fixed #4357: Wrongly configured slot caused Ok() handler being not called. 2012-11-30 12:38:41 +01:00
Daniel Marjamäki 29263e63fe times: added shell script that executes previous tags 2012-11-30 12:12:04 +01:00
PKEuS bcb4410dae Fixed invalid function in symboldatabase causing endless recursion (VS10 warning) by const_cast 2012-11-30 02:25:40 -08:00
Daniel Marjamäki 672831f41a Fixed #4187 (False positive: Variable inside a lambda is reported as uninitialized) 2012-11-30 10:30:26 +01:00
Daniel Marjamäki 031adef6ea Array index checking: Fixed TODO comment (false negatives when using ?:) 2012-11-30 09:01:15 +01:00
Daniel Marjamäki 1c4afbce8c Cleanup: Removed += and -= patterns from the checks. These should be simplified. 2012-11-30 07:08:16 +01:00