Daniel Marjamäki
bca7927913
AST: generate tree from bottom and upwards
2012-12-16 11:48:19 +01:00
Daniel Marjamäki
aad3a041ad
AST: Handle function calls
2012-12-16 10:06:55 +01:00
Daniel Marjamäki
1ad9c933ec
AST: Improved handling of unary operators
2012-12-16 08:41:04 +01:00
Robert Reif
6732f05b95
Fixed #4404 (Forward declared class cause false style warning about missing constructor)
2012-12-16 07:18:03 +01:00
Daniel Marjamäki
fa8e5cd7d8
AST: Simple AST. Not used in the clients. Only part of the testing for now.
2012-12-15 20:21:09 +01:00
XhmikosR
81642a18bd
update .gitignore
2012-12-15 09:46:02 +01:00
XhmikosR
9f11c01450
apply astyle
2012-12-15 09:46:02 +01:00
XhmikosR
53506973a4
partially revert f8c99ce065
and use 2 spaces
2012-12-15 09:46:02 +01:00
Daniel Marjamäki
b6786c87b4
matchcompiler: handle %varid%
2012-12-14 16:59:37 +01:00
Gerhard Zlabinger
d149b9b06c
Travis: Fixed Cppcheck warnings
2012-12-13 21:03:41 +01:00
PKEuS
c4821db796
Updated VS9 solution with qmake ( #4397 ).
2012-12-13 20:38:10 +01:00
Gerhard Zlabinger
4bb62fc8b2
CLI: write status messages
2012-12-13 18:47:13 +01:00
Daniel Marjamäki
88c1e42bdb
VS2010: Added cli/cppcheckexecutor.cpp to testrunner project
2012-12-13 18:43:45 +01:00
Reijo Tomperi
8780713c51
Add test case (in comments) for exclude directory bug in gui.
2012-12-13 00:16:24 +02:00
Gerhard Zlabinger
6442938fe9
Fixed #648 (Threads in Windows)
2012-12-12 19:09:37 +01:00
Daniel Marjamäki
624f2c7aca
Travis: Use SRCDIR instead of LIBDIR
2012-12-12 18:46:08 +01:00
Daniel Marjamäki
7c931960bd
Merge pull request #123 from Keruspe/master
...
build: Fix sources location
2012-12-11 11:13:39 -08:00
Marc-Antoine Perennou
cd9782472f
build: rename LIBDIR to SRCDIR
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2012-12-11 09:30:37 +01:00
Daniel Marjamäki
d3f5fd4e59
Tokenizer: Fixed Token::Match pattern
2012-12-10 20:38:07 +01:00
Daniel Marjamäki
2d8ed65d43
compiled Token::Match patterns: refactorings,improvements
2012-12-10 20:28:11 +01:00
Daniel Marjamäki
df03e3a8d2
Fixed #4395 (Wrong simplification of known variables in nested assignment)
2012-12-10 06:08:33 +01:00
Robert Reif
5a7ede2563
Fixed #4391 (False positive: ctor not detected after variable declaration)
2012-12-10 06:01:29 +01:00
Frank Zingsheim
327db15284
Fix #4045 : memory leak not reported after usage of " + p[]"
2012-12-09 08:59:21 +01:00
Daniel Marjamäki
927a6e4794
Obsolete functions: removed 'ctime' warning. The function is obsolete but the message don't point out a good replacement nor where it's documented that this function is obsolete
2012-12-09 09:35:57 +01:00
Daniel Marjamäki
b107e5e9e8
cppcheckexecutor: removed time info from verbose progress info. the ctime function that is used is not threadsafe.
2012-12-09 09:30:18 +01:00
Daniel Marjamäki
a11ec4a5ee
matchcompiler: replaced regular expression with simple code that parses the code better
2012-12-08 19:29:16 +01:00
Daniel Marjamäki
9fcfb38a1c
matchcompiler: merged regular expressions to a single expression
2012-12-08 16:22:55 +01:00
PKEuS
410c0f98d9
Refactorized CheckObsoleteFunctions:
...
- Speedup checkobsoletefunctions by using symboldatabase and by not calling SymbolDatabase::findFunctionByToken() for each function call.
-> Benchmark (SQlite amalgamation):
CheckObsoleteFunctions::runSimplifiedChecks(): 9s -> 0,016s (562%, 4% on entire runtime)
- Fixed false negative when passing function result as parameter
2012-12-08 02:46:30 -08:00
PKEuS
578e582987
Fixed regression #4368 .
2012-12-08 00:26:10 -08:00
Daniel Marjamäki
0f1e150386
Travis: Run 'make test' with compiled patterns
2012-12-08 07:43:07 +01:00
Daniel Marjamäki
bef0cf149b
matchcompiler: reverted changes so the 'make test' works again
2012-12-08 07:41:18 +01:00
PKEuS
068c695bd1
Fixed false positive when ternary operator is used: case A&&B?B:A:
2012-12-07 12:44:30 -08:00
PKEuS
0ac4c3baf4
New check: Find suspicious case labels like 'case A||B:'
2012-12-07 12:27:32 -08:00
PKEuS
65db8b8b9f
Fixed #4229
2012-12-07 11:45:20 -08:00
PKEuS
1f87961c16
Fixed recent regression in GUI: multiple messages with same Id in the same line weren't shown
2012-12-07 04:35:14 -08:00
PKEuS
2a1ca20795
Fixed duplicate rows on windows when file name case differs ( #2041 )
2012-12-07 03:54:28 -08:00
Edoardo Prezioso
0273c183a7
Run astyle and update the translation files.
...
I believe we need a hook script because else everytime we change a file we have to make a new commit to fix the discrepancies problems.
2012-12-07 01:49:51 +01:00
Frank Zingsheim
a24f224a38
Revert "Support for older Qt versions which do not support "setPlaceholderText""
...
This reverts commit 9784a426f4
.
Support for older Qt versions is not desired.
See https://github.com/danmar/cppcheck/pull/31
2012-12-06 22:21:44 +01:00
PKEuS
4737966caf
Unit test cleanup: Removed some empty lines and whitespaces before \n.
2012-12-06 10:19:22 -08:00
PKEuS
ae447a192a
Removed some more nested redundant QHBoxLayout/QVBoxLayout/QWidget were it is safe to remove them.
2012-12-06 19:00:38 +01:00
PKEuS
77bab29809
Updated german translation
2012-12-06 18:57:19 +01:00
Robert Reif
63b585424d
Fixed #4386 (False positive: ctor not detected)
2012-12-05 20:31:17 +01:00
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