Browse Source

Re-generated parser bindings for all backends.

pull/224/head
triton 12 years ago
parent
commit
3a90493666
  1. 21
      src/CppParser/Bindings/CLI/AST.cpp
  2. 2
      src/CppParser/Bindings/CLI/AST.h
  3. 4
      src/CppParser/Bindings/CLI/CppParser.cpp
  4. 1
      src/CppParser/Bindings/CLI/Target.cpp
  5. 13
      src/CppParser/Bindings/CSharp/AST.cs
  6. 13
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs

21
src/CppParser/Bindings/CLI/AST.cpp

@ -715,7 +715,6 @@ System::String^ CppSharp::Parser::AST::TemplateParameter::Name::get() @@ -715,7 +715,6 @@ System::String^ CppSharp::Parser::AST::TemplateParameter::Name::get()
void CppSharp::Parser::AST::TemplateParameter::Name::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->setName(arg0);
@ -1276,7 +1275,6 @@ System::String^ CppSharp::Parser::AST::Declaration::Name::get() @@ -1276,7 +1275,6 @@ System::String^ CppSharp::Parser::AST::Declaration::Name::get()
void CppSharp::Parser::AST::Declaration::Name::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::Declaration*)NativePtr)->setName(arg0);
@ -1291,7 +1289,6 @@ System::String^ CppSharp::Parser::AST::Declaration::DebugText::get() @@ -1291,7 +1289,6 @@ System::String^ CppSharp::Parser::AST::Declaration::DebugText::get()
void CppSharp::Parser::AST::Declaration::DebugText::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::Declaration*)NativePtr)->setDebugText(arg0);
@ -1694,7 +1691,6 @@ System::String^ CppSharp::Parser::AST::Function::Mangled::get() @@ -1694,7 +1691,6 @@ System::String^ CppSharp::Parser::AST::Function::Mangled::get()
void CppSharp::Parser::AST::Function::Mangled::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::Function*)NativePtr)->setMangled(arg0);
@ -1709,7 +1705,6 @@ System::String^ CppSharp::Parser::AST::Function::Signature::get() @@ -1709,7 +1705,6 @@ System::String^ CppSharp::Parser::AST::Function::Signature::get()
void CppSharp::Parser::AST::Function::Signature::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::Function*)NativePtr)->setSignature(arg0);
@ -1968,7 +1963,6 @@ System::String^ CppSharp::Parser::AST::Enumeration::Item::Expression::get() @@ -1968,7 +1963,6 @@ System::String^ CppSharp::Parser::AST::Enumeration::Item::Expression::get()
void CppSharp::Parser::AST::Enumeration::Item::Expression::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::Enumeration::Item*)NativePtr)->setExpression(arg0);
@ -2090,7 +2084,6 @@ System::String^ CppSharp::Parser::AST::Variable::Mangled::get() @@ -2090,7 +2084,6 @@ System::String^ CppSharp::Parser::AST::Variable::Mangled::get()
void CppSharp::Parser::AST::Variable::Mangled::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::Variable*)NativePtr)->setMangled(arg0);
@ -2786,7 +2779,6 @@ System::String^ CppSharp::Parser::AST::MacroDefinition::Expression::get() @@ -2786,7 +2779,6 @@ System::String^ CppSharp::Parser::AST::MacroDefinition::Expression::get()
void CppSharp::Parser::AST::MacroDefinition::Expression::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->setExpression(arg0);
@ -2825,7 +2817,6 @@ System::String^ CppSharp::Parser::AST::MacroExpansion::Text::get() @@ -2825,7 +2817,6 @@ System::String^ CppSharp::Parser::AST::MacroExpansion::Text::get()
void CppSharp::Parser::AST::MacroExpansion::Text::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::MacroExpansion*)NativePtr)->setText(arg0);
@ -2887,7 +2878,6 @@ System::String^ CppSharp::Parser::AST::TranslationUnit::FileName::get() @@ -2887,7 +2878,6 @@ System::String^ CppSharp::Parser::AST::TranslationUnit::FileName::get()
void CppSharp::Parser::AST::TranslationUnit::FileName::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->setFileName(arg0);
@ -2964,7 +2954,6 @@ System::String^ CppSharp::Parser::AST::NativeLibrary::FileName::get() @@ -2964,7 +2954,6 @@ System::String^ CppSharp::Parser::AST::NativeLibrary::FileName::get()
void CppSharp::Parser::AST::NativeLibrary::FileName::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->setFileName(arg0);
@ -2987,14 +2976,6 @@ CppSharp::Parser::AST::ASTContext::ASTContext(System::IntPtr native) @@ -2987,14 +2976,6 @@ CppSharp::Parser::AST::ASTContext::ASTContext(System::IntPtr native)
NativePtr = __native;
}
CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::ASTContext::FindOrCreateModule(System::String^ File)
{
auto arg0 = clix::marshalString<clix::E_UTF8>(File);
auto __ret = ((::CppSharp::CppParser::AST::ASTContext*)NativePtr)->FindOrCreateModule(arg0);
if (__ret == nullptr) return nullptr;
return (__ret == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TranslationUnit((::CppSharp::CppParser::AST::TranslationUnit*)__ret);
}
CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::ASTContext::getTranslationUnits(unsigned int i)
{
auto __ret = ((::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnits(i);
@ -3143,7 +3124,6 @@ System::String^ CppSharp::Parser::AST::RawComment::Text::get() @@ -3143,7 +3124,6 @@ System::String^ CppSharp::Parser::AST::RawComment::Text::get()
void CppSharp::Parser::AST::RawComment::Text::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::RawComment*)NativePtr)->setText(arg0);
@ -3158,7 +3138,6 @@ System::String^ CppSharp::Parser::AST::RawComment::BriefText::get() @@ -3158,7 +3138,6 @@ System::String^ CppSharp::Parser::AST::RawComment::BriefText::get()
void CppSharp::Parser::AST::RawComment::BriefText::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::AST::RawComment*)NativePtr)->setBriefText(arg0);

2
src/CppParser/Bindings/CLI/AST.h

@ -1879,8 +1879,6 @@ namespace CppSharp @@ -1879,8 +1879,6 @@ namespace CppSharp
unsigned int get();
}
CppSharp::Parser::AST::TranslationUnit^ FindOrCreateModule(System::String^ File);
CppSharp::Parser::AST::TranslationUnit^ getTranslationUnits(unsigned int i);
void addTranslationUnits(CppSharp::Parser::AST::TranslationUnit^ s);

4
src/CppParser/Bindings/CLI/CppParser.cpp

@ -122,7 +122,6 @@ System::String^ CppSharp::Parser::ParserOptions::FileName::get() @@ -122,7 +122,6 @@ System::String^ CppSharp::Parser::ParserOptions::FileName::get()
void CppSharp::Parser::ParserOptions::FileName::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::ParserOptions*)NativePtr)->setFileName(arg0);
@ -161,7 +160,6 @@ System::String^ CppSharp::Parser::ParserOptions::TargetTriple::get() @@ -161,7 +160,6 @@ System::String^ CppSharp::Parser::ParserOptions::TargetTriple::get()
void CppSharp::Parser::ParserOptions::TargetTriple::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::ParserOptions*)NativePtr)->setTargetTriple(arg0);
@ -278,7 +276,6 @@ System::String^ CppSharp::Parser::ParserDiagnostic::FileName::get() @@ -278,7 +276,6 @@ System::String^ CppSharp::Parser::ParserDiagnostic::FileName::get()
void CppSharp::Parser::ParserDiagnostic::FileName::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->setFileName(arg0);
@ -293,7 +290,6 @@ System::String^ CppSharp::Parser::ParserDiagnostic::Message::get() @@ -293,7 +290,6 @@ System::String^ CppSharp::Parser::ParserDiagnostic::Message::get()
void CppSharp::Parser::ParserDiagnostic::Message::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->setMessage(arg0);

1
src/CppParser/Bindings/CLI/Target.cpp

@ -44,7 +44,6 @@ System::String^ CppSharp::Parser::ParserTargetInfo::ABI::get() @@ -44,7 +44,6 @@ System::String^ CppSharp::Parser::ParserTargetInfo::ABI::get()
void CppSharp::Parser::ParserTargetInfo::ABI::set(System::String^ value)
{
auto s = value;
auto _arg0 = clix::marshalString<clix::E_UTF8>(s);
auto arg0 = _arg0.c_str();
((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->setABI(arg0);

13
src/CppParser/Bindings/CSharp/AST.cs

@ -7427,11 +7427,6 @@ namespace CppSharp @@ -7427,11 +7427,6 @@ namespace CppSharp
EntryPoint="??1ASTContext@AST@CppParser@CppSharp@@QAE@XZ")]
internal static extern void dtor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="?FindOrCreateModule@ASTContext@AST@CppParser@CppSharp@@QAEPAUTranslationUnit@234@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z")]
internal static extern global::System.IntPtr FindOrCreateModule_0(global::System.IntPtr instance, Std.String File);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="?getTranslationUnits@ASTContext@AST@CppParser@CppSharp@@QAEPAUTranslationUnit@234@I@Z")]
@ -7490,14 +7485,6 @@ namespace CppSharp @@ -7490,14 +7485,6 @@ namespace CppSharp
Marshal.FreeHGlobal(__Instance);
}
public CppSharp.Parser.AST.TranslationUnit FindOrCreateModule(Std.String File)
{
var arg0 = new Std.String();
var __ret = Internal.FindOrCreateModule_0(__Instance, arg0);
if (__ret == global::System.IntPtr.Zero) return null;
return (__ret == IntPtr.Zero) ? null : new CppSharp.Parser.AST.TranslationUnit(__ret);
}
public CppSharp.Parser.AST.TranslationUnit getTranslationUnits(uint i)
{
var __ret = Internal.getTranslationUnits_0(__Instance, i);

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

@ -7427,11 +7427,6 @@ namespace CppSharp @@ -7427,11 +7427,6 @@ namespace CppSharp
EntryPoint="_ZN8CppSharp9CppParser3AST10ASTContextD2Ev")]
internal static extern void dtor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST10ASTContext18FindOrCreateModuleENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE")]
internal static extern global::System.IntPtr FindOrCreateModule_0(global::System.IntPtr instance, Std.String File);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser3AST10ASTContext19getTranslationUnitsEj")]
@ -7490,14 +7485,6 @@ namespace CppSharp @@ -7490,14 +7485,6 @@ namespace CppSharp
Marshal.FreeHGlobal(__Instance);
}
public CppSharp.Parser.AST.TranslationUnit FindOrCreateModule(Std.String File)
{
var arg0 = ReferenceEquals(File, null) ? new std.__1.basic_string.Internal() : *(std.__1.basic_string.Internal*) (File.__Instance);
var __ret = Internal.FindOrCreateModule_0(__Instance, arg0);
if (__ret == global::System.IntPtr.Zero) return null;
return (__ret == IntPtr.Zero) ? null : new CppSharp.Parser.AST.TranslationUnit(__ret);
}
public CppSharp.Parser.AST.TranslationUnit getTranslationUnits(uint i)
{
var __ret = Internal.getTranslationUnits_0(__Instance, i);

Loading…
Cancel
Save