Browse Source

Ignore the still unsupported dependent type names

They're difficult to resolve and this would only make sense if we support types nested in templates which we don't yet.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1569/head
Dimitar Dobrev 5 years ago
parent
commit
4181f7c534
  1. 3
      src/Generator/Types/TypeIgnoreChecker.cs
  2. 3
      tests/CSharp/CSharpTemplates.h

3
src/Generator/Types/TypeIgnoreChecker.cs

@ -75,7 +75,8 @@ namespace CppSharp @@ -75,7 +75,8 @@ namespace CppSharp
public override bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
{
return dependent.Qualifier.Visit(this);
Ignore();
return false;
}
public override bool VisitClassDecl(Class @class)

3
tests/CSharp/CSharpTemplates.h

@ -140,6 +140,8 @@ private: @@ -140,6 +140,8 @@ private:
template <typename T>
class Base
{
public:
typedef T* typedefT;
};
template <typename T>
@ -160,6 +162,7 @@ public: @@ -160,6 +162,7 @@ public:
T getDependentValue();
void setDependentValue(const T& value);
IndependentFields<Nested> returnNestedInTemplate();
typename Base<T>::typedefT typedefT() { return 0; }
const T* returnTakeDependentPointer(const T* p);
const T* propertyReturnDependentPointer();
void hasDefaultDependentParam(T* ptr, const T& refT = T());

Loading…
Cancel
Save