mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 09:49:22 +02:00
Codetools: Ignore empty () in function description. Generate function body correctly. Issue #39441, patch by Domingo Galmés.
(cherry picked from commit 937b6bdfef
)
This commit is contained in:
parent
fd7222fae9
commit
63ed2c8183
@ -1500,6 +1500,8 @@ begin
|
|||||||
and (Src[CurPos.StartPos] = CloseBracket)
|
and (Src[CurPos.StartPos] = CloseBracket)
|
||||||
then begin // empty brackets: extract also the closing bracket.
|
then begin // empty brackets: extract also the closing bracket.
|
||||||
ExtractNextAtom(not (phpWithoutBrackets in Attr),Attr);
|
ExtractNextAtom(not (phpWithoutBrackets in Attr),Attr);
|
||||||
|
if (not (phpWithoutBrackets in Attr)) and (CloseBracket=')') then // delete empty '()'
|
||||||
|
ExtractMemStream.Position:=ExtractMemStream.Position-2;
|
||||||
exit(true);
|
exit(true);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user