Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] PDOMCPPBinding.getQualifiedNameCharArray vs PDOMBinding.getQualifiedName

Hi Sergey,

The history shows that this piece of code was introduced with the initial representation of instances in the index (


There were many issues with this representation. It also put template instances below the original binding (rather than the actual owner) in the PDOM hierarchy. I guess the extra condition was put into ‘getQualifiedNameCharArray’ to (partially) work around this.


Today I think it would be most consistent to rely on CPPVisitor.getQualifiedName() and CPPVisitor.getQualifiedNameCharArray().







From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sergey Prigogin
Sent: Wednesday, March 09, 2011 5:59 AM
To: CDT General developers list.
Subject: [cdt-dev] PDOMCPPBinding.getQualifiedNameCharArray vs PDOMBinding.getQualifiedName
Importance: Low


PDOMCPPBinding.getQualifiedNameCharArray and PDOMBinding.getQualifiedName methods may produce semantically different results due to !(node instanceof ICPPTemplateInstance) condition that is present in the first method, but not in the second one. Is it an oversight, or there is some mysterious truth behind it?



Back to the top