Skip to content

Commit e160b3a

Browse files
committed
Add generate function template specializations whitelist
1 parent 7fb553f commit e160b3a

File tree

19 files changed

+14007
-11539
lines changed

19 files changed

+14007
-11539
lines changed

src/CppParser/Bindings/CLI/CppParser.cpp

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,25 @@ void CppSharp::Parser::CppParserOptions::ClearSupportedStdTypes()
197197
((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->clearSupportedStdTypes();
198198
}
199199

200+
::System::String^ CppSharp::Parser::CppParserOptions::GetSupportedFunctionTemplates(unsigned int i)
201+
{
202+
auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplates(i);
203+
if (__ret == nullptr) return nullptr;
204+
return (__ret == 0 ? nullptr : clix::marshalString<clix::E_UTF8>(__ret));
205+
}
206+
207+
void CppSharp::Parser::CppParserOptions::AddSupportedFunctionTemplates(::System::String^ s)
208+
{
209+
auto ___arg0 = clix::marshalString<clix::E_UTF8>(s);
210+
auto __arg0 = ___arg0.c_str();
211+
((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->addSupportedFunctionTemplates(__arg0);
212+
}
213+
214+
void CppSharp::Parser::CppParserOptions::ClearSupportedFunctionTemplates()
215+
{
216+
((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->clearSupportedFunctionTemplates();
217+
}
218+
200219
CppSharp::Parser::CppParserOptions::CppParserOptions(CppSharp::Parser::CppParserOptions^ _0)
201220
{
202221
__ownsNativeInstance = true;
@@ -400,6 +419,29 @@ void CppSharp::Parser::CppParserOptions::SupportedStdTypes::set(::System::Collec
400419
((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->SupportedStdTypes = _tmpvalue;
401420
}
402421

422+
::System::Collections::Generic::List<::System::String^>^ CppSharp::Parser::CppParserOptions::SupportedFunctionTemplates::get()
423+
{
424+
auto _tmp__SupportedFunctionTemplates = gcnew ::System::Collections::Generic::List<::System::String^>();
425+
auto __list0 = NativePtr->SupportedFunctionTemplates;
426+
for(auto _element : __list0)
427+
{
428+
auto _marshalElement = clix::marshalString<clix::E_UTF8>(_element);
429+
_tmp__SupportedFunctionTemplates->Add(_marshalElement);
430+
}
431+
return _tmp__SupportedFunctionTemplates;
432+
}
433+
434+
void CppSharp::Parser::CppParserOptions::SupportedFunctionTemplates::set(::System::Collections::Generic::List<::System::String^>^ value)
435+
{
436+
auto _tmpvalue = std::vector<::std::string>();
437+
for each(::System::String^ _element in value)
438+
{
439+
auto _marshalElement = clix::marshalString<clix::E_UTF8>(_element);
440+
_tmpvalue.push_back(_marshalElement);
441+
}
442+
((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->SupportedFunctionTemplates = _tmpvalue;
443+
}
444+
403445
CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::CppParserOptions::ASTContext::get()
404446
{
405447
return (NativePtr->ASTContext == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ASTContext((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr->ASTContext);
@@ -564,6 +606,12 @@ unsigned int CppSharp::Parser::CppParserOptions::SupportedStdTypesCount::get()
564606
return __ret;
565607
}
566608

609+
unsigned int CppSharp::Parser::CppParserOptions::SupportedFunctionTemplatesCount::get()
610+
{
611+
auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplatesCount();
612+
return __ret;
613+
}
614+
567615
CppSharp::Parser::CppLinkerOptions::CppLinkerOptions(struct ::CppSharp::CppParser::CppLinkerOptions* native)
568616
: __ownsNativeInstance(false)
569617
{

src/CppParser/Bindings/CLI/CppParser.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ namespace CppSharp
129129
void set(::System::Collections::Generic::List<::System::String^>^);
130130
}
131131

132+
property ::System::Collections::Generic::List<::System::String^>^ SupportedFunctionTemplates
133+
{
134+
::System::Collections::Generic::List<::System::String^>^ get();
135+
void set(::System::Collections::Generic::List<::System::String^>^);
136+
}
137+
132138
property CppSharp::Parser::AST::ASTContext^ ASTContext
133139
{
134140
CppSharp::Parser::AST::ASTContext^ get();
@@ -240,6 +246,11 @@ namespace CppSharp
240246
unsigned int get();
241247
}
242248

249+
property unsigned int SupportedFunctionTemplatesCount
250+
{
251+
unsigned int get();
252+
}
253+
243254
::System::String^ GetArguments(unsigned int i);
244255

245256
void AddArguments(::System::String^ s);
@@ -288,6 +299,12 @@ namespace CppSharp
288299

289300
void ClearSupportedStdTypes();
290301

302+
::System::String^ GetSupportedFunctionTemplates(unsigned int i);
303+
304+
void AddSupportedFunctionTemplates(::System::String^ s);
305+
306+
void ClearSupportedFunctionTemplates();
307+
291308
protected:
292309

293310
bool __ownsNativeInstance;

src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs

Lines changed: 2375 additions & 1298 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)