| Summary: | getDefinitions() call on an AST returns incorrect array for a specialized template binding | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Pavan V <pavan.ananth> | ||||||
| Component: | cdt-parser | Assignee: | Markus Schorn <mschorn.eclipse> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Mike Kucera <mikekucera> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | sanjesh.nair | ||||||
| Version: | 7.0 | ||||||||
| Target Milestone: | 7.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
I have a C++ header file that contains: template<class T1,class T2> class Temp_Class { }; template<> class Temp_Class<int,char> { }; template<> class Temp_Class<char,char> { }; I have a handle to the binding of the spec template class Temp_Class<int, char> (ICPPSpecialization) and a handle to the AST of the header file. When I call getDefinitionsInAST(binding) on the AST, the array returned contained all of the above three IASTNames in the list. The AST call should resolve and return the correct class being referred to using the binding information