sonar-delphi
sonar-delphi copied to clipboard
Error raised when analyzing varargs method call
Prerequisites
- [X] This bug is in SonarDelphi, not SonarQube or my Delphi code.
- [X] This bug has not already been reported.
SonarDelphi version
1.6.0
SonarQube version
No response
Issue description
Running analysis with DelphiLint 1.1.1 in Standalone mode, an error is raised when the code contains a method call with the varargs directive.
Steps to reproduce
Analyze the file with the minimal Delphi code joined to this issue.
Minimal Delphi code exhibiting the issue
unit Unit1;
interface
procedure MyProcedure;
var
SetValues: procedure(AValues: Integer); cdecl varargs;
implementation
procedure MyProcedure;
var
LValue: Integer;
begin
LValue := 1;
SetValues(LValue, LValue);
end;
end.