PKEuS
|
8924e8af43
|
Fixed #4143: Give correct line numbers in checkunusedvar.cpp
|
2012-09-04 14:53:24 +02:00 |
anuraggarg011
|
913670d254
|
Fixed #3304 (simple cases)
|
2012-09-04 13:41:14 +02:00 |
kbajaj91
|
be716e81d3
|
Fixed #4138 - False positive about variable assigned a value that is never
used in loops
|
2012-09-04 13:06:04 +02:00 |
Edoardo Prezioso
|
f8591f9004
|
CheckOther::clarifyStatement: improved message to show what's the 'bad' and the 'good' expression.
|
2012-09-04 02:07:55 +02:00 |
Edoardo Prezioso
|
6fd60eebb0
|
Tokenizer: added a workaround for #3690 (Support MSVC's 'for each').
|
2012-09-03 20:23:53 +02:00 |
Edoardo Prezioso
|
6100776847
|
Tokenizer: remove unneeded initialization of strings explicitely with "".
|
2012-09-03 20:22:27 +02:00 |
anuraggarg011
|
bf11248a09
|
Fixed #1620 (tokenizer: simplify well known math functions)
|
2012-09-03 18:51:15 +02:00 |
anuraggarg011
|
b156c727b0
|
Fixed #3939: Support ****foo++;
|
2012-09-03 17:10:27 +02:00 |
Ankita Gupta
|
c3a65dca40
|
Fixed #3793 (improve check: calculation in sizeof)
|
2012-09-03 15:56:10 +02:00 |
Edoardo Prezioso
|
804fbe3f8f
|
Tokenizer::simplifyEmptyNamespaces: remove useless condition.
Token::deleteThis handles the !tok->next situation well.
|
2012-09-03 14:22:31 +02:00 |
PKEuS
|
27cafd495a
|
Don't bailout for noreturn functions in checkRedundantAssignments outside switch.
|
2012-09-03 12:03:30 +02:00 |
PKEuS
|
d98ee357d4
|
Fixed crash #4135 when using Q_DECLARE_METATYPE
|
2012-09-03 11:30:36 +02:00 |
PKEuS
|
2be2738c6e
|
Moved duplicate code into function in CheckOther::checkRedundantAssignment()
|
2012-09-03 10:46:51 +02:00 |
Kartik Bajaj
|
ea0cbbcf78
|
Fixed #1481
|
2012-09-02 18:50:17 +02:00 |
PKEuS
|
81ff721113
|
Fixed variable shadow warning
|
2012-09-02 17:00:16 +02:00 |
PKEuS
|
7bd732efe4
|
Invented a fix that compiles on GCC and doesn't crash.
|
2012-09-02 16:53:38 +02:00 |
PKEuS
|
794a491515
|
Fixed two other compilation errors on GCC.
|
2012-09-02 16:42:38 +02:00 |
PKEuS
|
8a474add19
|
Fixed compilation error - added missing function in symboldatabase.
|
2012-09-02 14:30:00 +02:00 |
deepak gupta
|
24659dee92
|
Fixed #4087
|
2012-09-02 14:26:39 +02:00 |
PKEuS
|
2d64b69cf4
|
New check: Detect redundant assignment to a variable and redundant copying to a buffer
This check partially replaces the check for redundant assignments in switch
|
2012-09-02 13:09:32 +02:00 |
Deepak Gupta
|
4202866100
|
Fixed #4096 (Improve check: Buffer overrun in for loop, postfix increment in array access)
|
2012-09-01 19:17:28 +02:00 |
pranav1509
|
6f6baa67e4
|
Added more patterns to redundant condition check.
|
2012-09-01 13:39:32 +02:00 |
PKEuS
|
c20adf91bf
|
Moved simplification of wide character string literals (L"foo") to tokenize(). Token::isLong flag used to indicate that string is a wchar_t literal.
|
2012-09-01 13:12:47 +02:00 |
PKEuS
|
dcf997007b
|
Incremented version numbers to 1.57 dev
|
2012-09-01 13:04:09 +02:00 |
Daniel Marjamäki
|
b8db27fcd1
|
1.56: Set versions
|
2012-09-01 10:54:15 +02:00 |
Daniel Marjamäki
|
d7e521845b
|
SymbolDatabase: Made function static after self-check suggestion
|
2012-09-01 10:46:09 +02:00 |
Daniel Marjamäki
|
769cd4503d
|
Preprocessor: Made function static after self-check suggestion
|
2012-09-01 10:32:27 +02:00 |
Daniel Marjamäki
|
15bc552b37
|
Tokenizer: Fixed possible NULL pointer dereference
|
2012-09-01 10:11:18 +02:00 |
Daniel Marjamäki
|
a8d419820b
|
Tokenizer: removed unused variable
|
2012-09-01 09:57:48 +02:00 |
Ankita-gupta
|
ff7373f46f
|
Fixed bug in Token::Match (#3720)
|
2012-08-30 13:33:19 +02:00 |
Edoardo Prezioso
|
0d26a79f2c
|
Tokenizer::simplifyEmptyNamespaces: new function.
It removes from the token list, if found, the following tokens: 'namespace %var% { }'. It won't involve C code.
|
2012-08-28 22:40:25 +02:00 |
PKEuS
|
bbce79d7b3
|
Small refactorization: Handle std::map more efficient in setVarIdStructMembers()
|
2012-08-28 12:57:11 +02:00 |
PKEuS
|
ea85dd305a
|
Fixed #4086: Set varId in initialization list.
|
2012-08-28 12:44:40 +02:00 |
Daniel Marjamäki
|
9fe9944adb
|
Fixed #4034 (false positive:(error) Dereferencing 'cfileP' after it is deallocated / released)
|
2012-08-28 06:38:38 +02:00 |
Daniel Marjamäki
|
a7e67ac379
|
CheckObsoleteFunctions: asctime and ctime are not posix functions
|
2012-08-27 18:49:48 +02:00 |
Daniel Marjamäki
|
03f6a19dbd
|
astyle formatting
|
2012-08-27 15:52:03 +02:00 |
Daniel Marjamäki
|
0d82b08080
|
Fixed #4040 (false positive: (error) Uninitialized variable: iter)
|
2012-08-27 15:48:21 +02:00 |
PKEuS
|
671f1b83d9
|
Fixed false positive: Return value of std::remove() ignored when std::remove(char*) is called (#4093)
|
2012-08-27 14:28:16 +02:00 |
Daniel Marjamäki
|
263e13e924
|
astyle formatting
|
2012-08-27 06:33:56 +02:00 |
PKEuS
|
4bab7f0ee2
|
Removed unused and obsolete functions Tokenizer::getParameterName() and Tokenizer::getNameForFunctionParams()
|
2012-08-26 16:53:40 +02:00 |
PKEuS
|
046712aaec
|
Removed --doc formating hack that removes more than three newlines and added format testing of Check::classInfo instead.
- Fixed test failures shown by new test.
Use const_iterator instead of iterator in testcppcheck.cpp when possible
|
2012-08-26 16:22:46 +02:00 |
PKEuS
|
4b1075b34b
|
Fixed #3729: Don't suggest recursive call to optimize away c_str()
|
2012-08-26 10:56:46 +02:00 |
PKEuS
|
839f7a32a4
|
It is ok to pass a nullpointer as first argument to mbstowcs and wcstombs, which then just return how long the buffer has to be to store the result.
|
2012-08-26 10:41:48 +02:00 |
PKEuS
|
6893948c72
|
Bugfix: Reset property info when Token::link() is set (< can be a bracket or a comparison operator). Fixes #4075.
|
2012-08-26 10:23:16 +02:00 |
PKEuS
|
8301b5d4d6
|
Bugfix for bugfix of Token::varId - Change Token::type also if varId is set to 0
|
2012-08-26 10:04:22 +02:00 |
PKEuS
|
662b0d2dbe
|
Simplify 0[foo] to *(foo) (fixes #4083)
|
2012-08-26 10:03:05 +02:00 |
PKEuS
|
9fa7e15fb4
|
Fixed setVarId for nested templates (#3976, #3769) and support C++11 right angle brackets in TemplateSimplifier::templateParameters()
|
2012-08-26 09:49:38 +02:00 |
Reijo Tomperi
|
7ddd564ad6
|
Change file encoding to UFT-8 like it is for other files.
|
2012-08-26 00:12:38 +03:00 |
Daniel Marjamäki
|
f127728582
|
Enable --std=c11 and --std=c++11 by default
|
2012-08-25 21:57:45 +02:00 |
Daniel Marjamäki
|
41797d409d
|
Fixed #4036 (cppcheck hangs with 100% cpu load)
|
2012-08-25 13:24:17 +02:00 |