mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 01:45:33 +02:00
Added toString() method
Change-Id: Ieb9e66af1bd290ebe5f8bdce82d0778ea6da2809
This commit is contained in:
parent
fc6fad911b
commit
8bfd2cdc22
1 changed files with 12 additions and 0 deletions
|
@ -99,4 +99,16 @@ public class CPPFunctionSet implements ICPPTwoPhaseBinding {
|
|||
fName.setBinding(new CPPDeferredFunction(null, fName.toCharArray(), fBindings));
|
||||
}
|
||||
}
|
||||
|
||||
/** For debugging only */
|
||||
@Override
|
||||
public String toString() {
|
||||
if (fName != null)
|
||||
return fName.toString();
|
||||
try {
|
||||
return String.join("::", fBindings[0].getQualifiedName()); //$NON-NLS-1$
|
||||
} catch (DOMException e) {
|
||||
return super.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue