mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 01:31:59 +02:00
* fixed FullProcName to handle constructors, destructors and operators correctly
This commit is contained in:
parent
c348bd5a68
commit
8463d2444f
@ -3638,6 +3638,7 @@ implementation
|
|||||||
function tprocdef.fullprocname(showhidden:boolean):string;
|
function tprocdef.fullprocname(showhidden:boolean):string;
|
||||||
var
|
var
|
||||||
s : string;
|
s : string;
|
||||||
|
t : ttoken;
|
||||||
begin
|
begin
|
||||||
{$ifdef EXTDEBUG}
|
{$ifdef EXTDEBUG}
|
||||||
showhidden:=true;
|
showhidden:=true;
|
||||||
@ -3649,10 +3650,27 @@ implementation
|
|||||||
s:=s+'class ';
|
s:=s+'class ';
|
||||||
s:=s+_class.objrealname^+'.';
|
s:=s+_class.objrealname^+'.';
|
||||||
end;
|
end;
|
||||||
s:=s+procsym.realname+typename_paras(showhidden);
|
if proctypeoption=potype_operator then
|
||||||
if assigned(rettype.def) and
|
begin
|
||||||
not(is_void(rettype.def)) then
|
for t:=NOTOKEN to last_overloaded do
|
||||||
s:=s+':'+rettype.def.gettypename;
|
if procsym.realname='$'+overloaded_names[t] then
|
||||||
|
begin
|
||||||
|
s:='operator '+arraytokeninfo[t].str+typename_paras(showhidden);
|
||||||
|
break;
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
s:=s+procsym.realname+typename_paras(showhidden);
|
||||||
|
case proctypeoption of
|
||||||
|
potype_constructor:
|
||||||
|
s:='constructor '+s;
|
||||||
|
potype_destructor:
|
||||||
|
s:='destructor '+s;
|
||||||
|
else
|
||||||
|
if assigned(rettype.def) and
|
||||||
|
not(is_void(rettype.def)) then
|
||||||
|
s:=s+':'+rettype.def.gettypename;
|
||||||
|
end;
|
||||||
fullprocname:=s;
|
fullprocname:=s;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -5858,7 +5876,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.165 2003-10-01 15:00:02 peter
|
Revision 1.166 2003-10-01 15:32:58 florian
|
||||||
|
* fixed FullProcName to handle constructors, destructors and operators correctly
|
||||||
|
|
||||||
|
Revision 1.165 2003/10/01 15:00:02 peter
|
||||||
* don't write parast,localst debug info for externals
|
* don't write parast,localst debug info for externals
|
||||||
|
|
||||||
Revision 1.164 2003/09/23 21:03:35 peter
|
Revision 1.164 2003/09/23 21:03:35 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user