[Lazarus] Codetools in distress
Ondrej Pokorny
lazarus at kluug.net
Tue Jun 13 15:40:26 CEST 2017
On 13.06.2017 15:21, Joost van der Sluis via Lazarus wrote:
> Am I the only one who has problems with the codetools? Seems like it
> can not handle out-parameters in functions anymore.
What CT function is not working in particular?
I tested with:
program CTTest1;
uses
SysUtils, Classes;
function VarIsError(const V: Variant; out AResult: HRESULT): Boolean;
begin
end;
begin
x := VarIsError(v, s);
end.
and everything seems to be OK to me.
Or is your problem that CT cannot resolve what overload to use:
function VarIsError(const V: Variant; out AResult: HRESULT): Boolean;
function VarIsError(const V: Variant): Boolean; inline;
AFAIK CT have always had this issue to find correct overloads, so no
regression here. (At least Lazarus 1.4.2 has the issue as well.)
Ondrej
More information about the Lazarus
mailing list