Daniel Marjamäki
|
cb297a00fc
|
Auto variables: Assign address of local variable to global pointer (#6825)
|
2018-01-25 22:50:41 +01:00 |
Daniel Marjamäki
|
599e038282
|
AutoVariables: Warn when address of local array is assigned to global pointer and pointer is not reassigned
|
2018-01-24 21:33:58 +01:00 |
Daniel Marjamäki
|
c4caee6b18
|
Updated copyright year
|
2018-01-14 15:37:52 +01:00 |
Ayaz Salikhov
|
28aa939d69
|
iwyu - include what you use
|
2017-05-27 04:33:47 +02:00 |
Daniel Marjamäki
|
f68fa72095
|
Fixed #7583 (Defect: False positive '(error) Reference to temporary returned')
|
2017-02-26 13:41:49 +01:00 |
PKEuS
|
ea53bd22b7
|
Fixed false positive returnTempReference with operator++ (#7874)
|
2016-12-22 11:49:59 +01:00 |
Daniel Marjamäki
|
aaf19c1e4f
|
Fixed #7839 (Prefix increment triggers parameter modification warning)
|
2016-12-19 15:25:36 +01:00 |
PKEuS
|
1715969f6f
|
Support prefix-increment/decrement in CheckAutoVariables::assignFunctionArg() (#3177)
|
2016-10-10 21:34:40 +02:00 |
Alexander Mai
|
d492500f34
|
#5844 False positive: returnReference fp for inner lambda function
|
2016-05-20 23:46:56 +02:00 |
PKEuS
|
23ad881c64
|
Fixed false positive returnLocalVariable (#7180)
|
2016-01-30 20:18:12 +01:00 |
Lauri Nurmi
|
996c9244d8
|
Update copyright year to 2007-2016.
|
2016-01-01 15:34:45 +02:00 |
Alexander Mai
|
ba0859e838
|
#6981 crash in checkvaarg.cpp (with possible fix). Avoid segfault. Add SymbolDatabase::validate() to allow validating smyboldatabase
|
2015-12-05 20:55:26 +01:00 |
Daniel Marjamäki
|
0f9d90d2be
|
Changed Copyrights. Removed my name.
|
2015-11-18 20:04:50 +01:00 |
Daniel Marjamäki
|
71bf0f076f
|
CheckAutoVariables: Handle 'x-y' better in isAutoVarArray
|
2015-11-15 19:34:36 +01:00 |
Daniel Marjamäki
|
4e578af603
|
CheckAutoVar: Improved usage of AST and ValueFlow
|
2015-11-15 14:48:13 +01:00 |
Daniel Marjamäki
|
c10a10c26f
|
CheckAutoVariables: use ValueFlow to detect more errors when pointer aliases are used
|
2015-11-15 12:10:35 +01:00 |
PKEuS
|
a8cf63239a
|
Fixed false positive autovarInvalidDeallocation if deallocting result of member function (#6551)
|
2015-11-11 16:59:31 +01:00 |
PKEuS
|
f1bbcfe32d
|
Refactorization: Avoid loading std.cfg multiple times in testautovariables.cpp
|
2015-10-07 14:40:09 +02:00 |
Simon Martin
|
59abb04042
|
Ticket #6596: Address of local variables can also be assigned to pointer-pointer arguments using the ptr[] syntax.
|
2015-08-28 20:29:51 +02:00 |
PKEuS
|
7bb79562e9
|
Skip inner classes in CheckAutoVariables::returnReference() (#6951)
|
2015-08-26 13:31:51 +02:00 |
Simon Martin
|
6fb19b02d0
|
Properly differentiate arrays of pointers and pointers to arrays.
|
2015-08-25 21:19:19 +02:00 |
PKEuS
|
a297a03b64
|
Fixed false positive #6787: Skip over lambdas in CheckAutoVariables::returnReference()
|
2015-08-14 13:03:07 +02:00 |
Daniel Marjamäki
|
9627fccdc5
|
assignFunctionArg: don't warn when there is self assignment. There is a separate warning for self assignments.
|
2015-08-09 14:51:23 +02:00 |
PKEuS
|
176b3925b3
|
Removed "verify" code in testrunner. Fixing its messages reduces the accuracy of the test suite.
|
2015-07-25 14:18:41 +02:00 |
Simon Martin
|
7481fbb028
|
Fixed #6506 (Properly detect calls to the deallocating free() function)
|
2015-06-20 21:00:54 +02:00 |
PKEuS
|
42673255ed
|
Refactorized testrunner: Create std::string only where necessary
|
2015-03-15 12:36:40 +01:00 |
PKEuS
|
bc5132e0ac
|
Refactorization: Moved declaration of errout, ... to testsuite.h, uniformized style
|
2015-03-11 22:54:43 +01:00 |
Robert Reif
|
130ffc5752
|
Fixed #6538 (Symboldatabase: improve isFunction)
|
2015-02-24 06:11:31 +01:00 |
PKEuS
|
36841cfa41
|
Better support for stream operator in CheckAutoVariables::returnReference() (#6423)
|
2015-01-31 10:12:49 +01:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
Daniel Marjamäki
|
051d42ae6b
|
astyle formatting
|
2014-11-20 14:20:09 +01:00 |
orbitcowboy
|
f5d804f71a
|
running astyle
|
2014-11-20 10:13:03 +01:00 |
Daniel Marjamäki
|
a3efa1e180
|
Fixed #4776 (FP: Assignment of function parameter has no effect outside the function, with goto)
|
2014-10-21 16:21:33 +02:00 |
Dmitry-Me
|
1e298a31cf
|
Refactoring tests. Use utility function to warn about unsimplified code in tests.
|
2014-09-13 12:59:32 +02:00 |
PKEuS
|
ac59485e7e
|
Refactorized CheckAutoVariables::assignFunctionArg():
- Splitted message into style message (assigning non-pointers) and warning message (assigning pointers)
- Support operator++/-- (#4793)
|
2014-08-04 11:45:24 +02:00 |
PKEuS
|
a04036337d
|
Fixed #5860: Don't show returnTempReference for calculations on unknown types
|
2014-05-24 12:50:04 +02:00 |
PKEuS
|
6635abbe55
|
Improved check: Complain about returning reference to literals or reference to calculation result (#4317)
|
2014-05-22 11:39:11 +02:00 |
Alexander Mai
|
f2e5da290b
|
Replace 2 invalid test cases added while fixing #5793 by a valid one
|
2014-05-15 21:20:16 +02:00 |
Alexander Mai
|
146bf11aa7
|
#5793 - False positive: Deallocation of an auto-variable (at reference notation)
|
2014-05-12 19:53:49 +02:00 |
Alexander Mai
|
d2ebd718a9
|
#5691 False positive: autovarInvalidDeallocation - function name 'delete' in C code
|
2014-05-01 07:32:37 +02:00 |
PKEuS
|
ea23a0467b
|
Fixed false positive #5732: autovarInvalidDeallocation on pointer to array
|
2014-04-27 12:18:33 +02:00 |
Alexander Mai
|
6a08c27183
|
Fix segfault in variableIsUsedInScope() - loop variable not check against NULL
|
2014-03-22 11:14:11 +01:00 |
Alexander Mai
|
3f30753122
|
Fixed #5537 (crash: clang ./lib/Basic/FileManager.cpp , since 354e84e7c8 , /lib/symboldatabase.h:288)
|
2014-03-09 08:17:24 +01:00 |
Alexander Mai
|
354e84e7c8
|
Fixed #2298 (new check: passing stack-address to free())
|
2014-03-06 06:32:30 +01:00 |
Daniel Marjamäki
|
4dee3da1bd
|
Merge pull request #245 from simartin/ticket_5478
Ticket #5478: Only functions and equal operators might return a temporary
|
2014-03-02 14:53:25 +01:00 |
Simon Martin
|
875a3f47e7
|
Ticket #5478: Only functions and equal operators might return a temporary.
|
2014-03-02 09:39:10 +01:00 |
Simon Martin
|
ef3f135af2
|
Ticket #5050: Added test case since it works now.
|
2014-03-01 10:37:55 +01:00 |
Daniel Marjamäki
|
fd3a8a2a18
|
Update copyright
|
2014-02-15 07:45:39 +01:00 |
PKEuS
|
4f0121ee2f
|
Splitted simplification out of tokenize()
|
2013-12-30 17:45:28 +01:00 |
Daniel Marjamäki
|
0ef1529ba5
|
Fixed #5005 (false positive: (warning) Assignment of function parameter has no effect outside the function.)
|
2013-10-06 16:07:27 +02:00 |