|
|
@ -12,7 +12,12 @@ |
|
|
|
#include "Types.h" |
|
|
|
#include "Types.h" |
|
|
|
#include <algorithm> |
|
|
|
#include <algorithm> |
|
|
|
|
|
|
|
|
|
|
|
namespace CppSharp { namespace CppParser { namespace AST { |
|
|
|
namespace CppSharp |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
namespace CppParser |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
namespace AST |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
enum class DeclarationKind |
|
|
|
enum class DeclarationKind |
|
|
|
{ |
|
|
|
{ |
|
|
@ -124,7 +129,8 @@ public: |
|
|
|
CS_IGNORE Class *FindClass(const void *OriginalPtr, const std::string &Name, bool IsComplete, |
|
|
|
CS_IGNORE Class *FindClass(const void *OriginalPtr, const std::string &Name, bool IsComplete, |
|
|
|
bool Create); |
|
|
|
bool Create); |
|
|
|
|
|
|
|
|
|
|
|
CS_IGNORE template<typename T> T* FindTemplate(const std::string& USR); |
|
|
|
CS_IGNORE template <typename T> |
|
|
|
|
|
|
|
T *FindTemplate(const std::string &USR); |
|
|
|
|
|
|
|
|
|
|
|
CS_IGNORE Enumeration *FindEnum(const void *OriginalPtr); |
|
|
|
CS_IGNORE Enumeration *FindEnum(const void *OriginalPtr); |
|
|
|
CS_IGNORE Enumeration *FindEnum(const std::string &Name, bool Create = false); |
|
|
|
CS_IGNORE Enumeration *FindEnum(const std::string &Name, bool Create = false); |
|
|
@ -465,7 +471,8 @@ enum class CppAbi |
|
|
|
Microsoft, |
|
|
|
Microsoft, |
|
|
|
ARM, |
|
|
|
ARM, |
|
|
|
iOS, |
|
|
|
iOS, |
|
|
|
iOS64 |
|
|
|
iOS64, |
|
|
|
|
|
|
|
WebAssembly |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
enum class VTableComponentKind |
|
|
|
enum class VTableComponentKind |
|
|
@ -609,7 +616,8 @@ template<typename T> |
|
|
|
T *DeclarationContext::FindTemplate(const std::string &USR) |
|
|
|
T *DeclarationContext::FindTemplate(const std::string &USR) |
|
|
|
{ |
|
|
|
{ |
|
|
|
auto foundTemplate = std::find_if(Templates.begin(), Templates.end(), |
|
|
|
auto foundTemplate = std::find_if(Templates.begin(), Templates.end(), |
|
|
|
[&](Template* t) { return t->USR == USR; }); |
|
|
|
[&](Template *t) |
|
|
|
|
|
|
|
{ return t->USR == USR; }); |
|
|
|
|
|
|
|
|
|
|
|
if (foundTemplate != Templates.end()) |
|
|
|
if (foundTemplate != Templates.end()) |
|
|
|
return static_cast<T *>(*foundTemplate); |
|
|
|
return static_cast<T *>(*foundTemplate); |
|
|
@ -831,4 +839,6 @@ public: |
|
|
|
VECTOR(TranslationUnit *, TranslationUnits) |
|
|
|
VECTOR(TranslationUnit *, TranslationUnits) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
} } } |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |