mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 20:35:38 +02:00
Bug 491636 - Problem with constructor declaration with the name
including template arguments Change-Id: I6c2269d232cb1a93a070c73f2ed52f1beeb43926
This commit is contained in:
parent
739bc922cf
commit
27774c7688
2 changed files with 18 additions and 10 deletions
|
@ -2036,6 +2036,24 @@ public class IndexCPPTemplateResolutionTest extends IndexBindingResolutionTestBa
|
|||
getBindingFromASTName("type type", 4, ITypedef.class);
|
||||
}
|
||||
|
||||
// template <typename T>
|
||||
// struct A {};
|
||||
//
|
||||
// template <>
|
||||
// struct A<void> {
|
||||
// template <typename U>
|
||||
// A<void>(const A<U>& o);
|
||||
// };
|
||||
|
||||
// void waldo(A<void> p);
|
||||
//
|
||||
// void test(A<int> a) {
|
||||
// waldo(a);
|
||||
// }
|
||||
public void testSpecializationInIndex_491636() throws Exception {
|
||||
checkBindings();
|
||||
}
|
||||
|
||||
// template <typename T> struct remove_const_impl {};
|
||||
// template <typename T> struct remove_const_impl<T*> {
|
||||
// typedef T type;
|
||||
|
|
|
@ -192,16 +192,6 @@ public class CPPASTTemplateId extends CPPASTNameBase implements ICPPASTTemplateI
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDeclaration() {
|
||||
return false; // For now this seems to be true.
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isReference() {
|
||||
return true; // For now this seems to be true.
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRoleForName(IASTName n) {
|
||||
if (n == templateName)
|
||||
|
|
Loading…
Add table
Reference in a new issue