diff --git a/.github/workflows/llvm-win.yml b/.github/workflows/llvm-win.yml
index 455c4f4dcf..43b9891fba 100644
--- a/.github/workflows/llvm-win.yml
+++ b/.github/workflows/llvm-win.yml
@@ -9,8 +9,8 @@ jobs:
fail-fast: false
matrix:
config:
- - { os: windows-2022, platform: x86, vs: 2022 }
- - { os: windows-2022, platform: x64, vs: 2022 }
+ - { os: windows-2022, platform: x86, vs: "Program Files/Microsoft Visual Studio/2022" }
+ - { os: windows-2022, platform: x64, vs: "Program Files/Microsoft Visual Studio/2022" }
runs-on: ${{ matrix.config.os }}
@@ -35,7 +35,7 @@ jobs:
- name: Environment
shell: cmd
run: |
- call "C:\Program Files\Microsoft Visual Studio\%VS_VERSION%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
+ call "C:\%VS_VERSION%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
:: Loop over all environment variables and make them global using set-env.
:: See: https://stackoverflow.com/a/39184941
setlocal
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 6756de7613..d26b7adcb0 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -9,15 +9,16 @@ jobs:
fail-fast: false
matrix:
config:
- - { os: ubuntu-20.04, platform: x64, cxx: g++-10, cc: gcc-10 }
+ - { os: ubuntu-22.04, platform: x64, cxx: g++-11, cc: gcc-11 }
- { os: macos-11, platform: x64, cxx: clang++, cc: clang }
- - { os: windows-2019, platform: x64, vs: msvc }
+ - { os: windows-2022, platform: x64, vs: "Program Files/Microsoft Visual Studio/2022" }
runs-on: ${{ matrix.config.os }}
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
+ VS_VERSION: ${{ matrix.config.vs }}
PLATFORM: ${{ matrix.config.platform }}
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
@@ -38,7 +39,7 @@ jobs:
- name: Environment
if: matrix.config.vs
shell: bash
- run: echo "/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin" >> $GITHUB_PATH
+ run: echo "/c/$VS_VERSION/Enterprise/MSBuild/Current/Bin" >> $GITHUB_PATH
- name: Setup
shell: bash
diff --git a/Directory.Build.props b/Directory.Build.props
index 3fe84b36b1..e6c25f85f5 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -52,7 +52,6 @@
-
\ No newline at end of file
diff --git a/README.md b/README.md
index b3b3a9495c..4bf008a259 100644
--- a/README.md
+++ b/README.md
@@ -85,6 +85,8 @@ Alternatively, you may post bounties at https://www.bountysource.com/.
CppSharp is used by the following projects:
+[Kythera AI](https://kythera.ai)
+
[QtSharp](https://gitlab.com/ddobrev/QtSharp)
[MonoGame](https://github.com/mono/MonoGame)
diff --git a/build/Helpers.lua b/build/Helpers.lua
index 68c4c91d3e..0a2e030d1c 100644
--- a/build/Helpers.lua
+++ b/build/Helpers.lua
@@ -73,7 +73,8 @@ end
local function target_framework()
local value = _OPTIONS["target-framework"]
- return string.isempty(value) and "net6.0" or value
+ local default_framework = _ACTION <= "vs2019" and "net5.0" or "net6.0"
+ return string.isempty(value) and default_framework or value
end
targetframework = target_framework()
diff --git a/build/LLVM.lua b/build/LLVM.lua
index d2781b7451..86fa1be6b3 100644
--- a/build/LLVM.lua
+++ b/build/LLVM.lua
@@ -42,6 +42,7 @@ function SetupLLVMIncludes()
includedirs
{
path.join(LLVMRootDirDebug, "include"),
+ path.join(LLVMRootDirDebug, "llvm/include"),
path.join(LLVMRootDirDebug, "lld/include"),
path.join(LLVMRootDirDebug, "clang/include"),
path.join(LLVMRootDirDebug, "clang/lib"),
@@ -53,6 +54,7 @@ function SetupLLVMIncludes()
includedirs
{
path.join(LLVMRootDirRelease, "include"),
+ path.join(LLVMRootDirRelease, "llvm/include"),
path.join(LLVMRootDirRelease, "lld/include"),
path.join(LLVMRootDirRelease, "clang/include"),
path.join(LLVMRootDirRelease, "clang/lib"),
@@ -64,6 +66,7 @@ function SetupLLVMIncludes()
includedirs
{
path.join(LLVMRootDir, "include"),
+ path.join(LLVMRootDir, "llvm/include"),
path.join(LLVMRootDir, "lld/include"),
path.join(LLVMRootDir, "clang/include"),
path.join(LLVMRootDir, "clang/lib"),
@@ -144,18 +147,22 @@ function SetupLLVMLibs()
"clangCodeGen",
"clangParse",
"clangSema",
+ "clangSupport",
"clangAnalysis",
"clangEdit",
"clangAST",
"clangLex",
"clangBasic",
"clangIndex",
+ "clangASTMatchers",
+ "LLVMWindowsDriver",
"LLVMWindowsManifest",
"LLVMDebugInfoPDB",
"LLVMLTO",
"LLVMPasses",
"LLVMObjCARCOpts",
"LLVMLibDriver",
+ "LLVMFrontendHLSL",
"LLVMFrontendOpenMP",
"LLVMOption",
"LLVMCoverage",
@@ -170,6 +177,7 @@ function SetupLLVMLibs()
"LLVMVectorize",
"LLVMLinker",
"LLVMIRReader",
+ "LLVMIRPrinter",
"LLVMAsmParser",
"LLVMMCDisassembler",
"LLVMCFGuard",
@@ -178,7 +186,9 @@ function SetupLLVMLibs()
"LLVMAsmPrinter",
"LLVMDebugInfoDWARF",
"LLVMCodeGen",
+ "LLVMCodeGenTypes",
"LLVMTarget",
+ "LLVMTargetParser",
"LLVMScalarOpts",
"LLVMInstCombine",
"LLVMAggressiveInstCombine",
@@ -202,7 +212,8 @@ function SetupLLVMLibs()
"lldCommon",
"lldCOFF",
"lldELF",
- "lldMachO"
+ "lldMachO",
+ "lldMinGW"
}
filter(c)
diff --git a/build/build.sh b/build/build.sh
index 6f7a086fee..5cd81557a2 100755
--- a/build/build.sh
+++ b/build/build.sh
@@ -2,7 +2,7 @@
set -e
builddir=$(cd "$(dirname "$0")"; pwd)
platform=x64
-vs=vs2019
+vs=vs2022
configuration=Release
build_only=false
ci=false
@@ -104,18 +104,26 @@ download_premake()
{
premake_dir="$builddir/premake"
premake_filename=premake5
+ premake_archive_ext=tar.gz
if [ $oshost = "windows" ]; then
premake_filename=$premake_filename.exe
+ premake_archive_ext=zip
fi
premake_path=$premake_dir/$premake_filename
if ! [ -f "$premake_path" ]; then
echo "Downloading and unpacking Premake..."
- premake_url=https://github.com/InteropAlliance/premake-core/releases/download/latest/premake-$oshost-$platform.zip
+ premake_version=5.0.0-beta2
+ premake_archive=premake-$premake_version-$oshost.$premake_archive_ext
+ premake_url=https://github.com/premake/premake-core/releases/download/v$premake_version/$premake_archive
curl -L -O $premake_url
- unzip premake-$oshost-$platform.zip $premake_filename -d "$premake_dir"
+ if [ $oshost = "windows" ]; then
+ unzip $premake_archive $premake_filename -d "$premake_dir"
+ else
+ tar -xf $premake_archive -C "$premake_dir" ./$premake_filename
+ fi
chmod +x "$premake_path"
- rm premake-$oshost-$platform.zip
+ rm $premake_archive
fi
}
diff --git a/build/llvm/LLVM-commit b/build/llvm/LLVM-commit
index 8a0cb18633..1f1a216a13 100644
--- a/build/llvm/LLVM-commit
+++ b/build/llvm/LLVM-commit
@@ -1 +1 @@
-791523bae6153b13bb41ba05c9fc89e502cc4a1a
\ No newline at end of file
+6eb36aed86ea276695697093eb8136554c29286b
\ No newline at end of file
diff --git a/build/llvm/LLVM.lua b/build/llvm/LLVM.lua
index 30a3943314..f375b39e92 100644
--- a/build/llvm/LLVM.lua
+++ b/build/llvm/LLVM.lua
@@ -251,6 +251,7 @@ function cmake(gen, conf, builddir, options)
.. ' -DLLVM_ENABLE_LIBXML2=false'
.. ' -DLLVM_ENABLE_TERMINFO=false'
.. ' -DLLVM_ENABLE_ZLIB=false'
+ .. ' -DLLVM_ENABLE_ZSTD=false'
.. ' -DLLVM_INCLUDE_DOCS=false'
.. ' -DLLVM_INCLUDE_EXAMPLES=false'
.. ' -DLLVM_TARGETS_TO_BUILD="X86"'
@@ -370,6 +371,8 @@ function cmake(gen, conf, builddir, options)
.. ' -DCLANG_TOOL_CLANG_FUZZER_BUILD=false'
.. ' -DCLANG_TOOL_CLANG_IMPORT_TEST_BUILD=false'
.. ' -DCLANG_TOOL_CLANG_NVLINK_WRAPPER_BUILD=false'
+ .. ' -DCLANG_TOOL_CLANG_LINKER_WRAPPER_BUILD=false'
+ .. ' -DCLANG_TOOL_CLANG_OFFLOAD_PACKAGER_BUILD=false'
.. ' -DCLANG_TOOL_CLANG_OFFLOAD_BUNDLER_BUILD=false'
.. ' -DCLANG_TOOL_CLANG_OFFLOAD_WRAPPER_BUILD=false'
.. ' -DCLANG_TOOL_CLANG_REFACTOR_BUILD=false'
@@ -456,7 +459,7 @@ function package_llvm(conf, llvm_base, llvm_build)
if os.isdir(out) then os.rmdir(out) end
os.mkdir(out)
- os.copydir(llvm_base .. "/llvm/include", out .. "/include")
+ os.copydir(llvm_base .. "/llvm/include", out .. "/llvm/include")
os.copydir(llvm_base .. "/lld/include", out .. "/lld/include")
os.copydir(llvm_build .. "/include", out .. "/build/include")
@@ -483,12 +486,10 @@ function package_llvm(conf, llvm_base, llvm_build)
local out_lib_dir = out .. "/build/lib"
if os.ishost("windows") then
os.rmfiles(out_lib_dir, "clang*ARC*.lib")
- os.rmfiles(out_lib_dir, "clang*Matchers*.lib")
os.rmfiles(out_lib_dir, "clang*Rewrite*.lib")
os.rmfiles(out_lib_dir, "clang*StaticAnalyzer*.lib")
else
os.rmfiles(out_lib_dir, "libclang*ARC*.a")
- os.rmfiles(out_lib_dir, "libclang*Matchers*.a")
os.rmfiles(out_lib_dir, "libclang*Rewrite*.a")
os.rmfiles(out_lib_dir, "libclang*StaticAnalyzer*.a")
end
diff --git a/src/AST/Method.cs b/src/AST/Method.cs
index 286eb01af9..1898510cc4 100644
--- a/src/AST/Method.cs
+++ b/src/AST/Method.cs
@@ -94,10 +94,12 @@ public Method(Method method)
{
Access = method.Access;
IsVirtual = method.IsVirtual;
+ IsStatic = method.IsStatic;
IsConst = method.IsConst;
+ IsExplicit = method.IsExplicit;
+ IsVolatile = method.IsVolatile;
IsFinal = method.IsFinal;
IsProxy = method.IsProxy;
- IsStatic = method.IsStatic;
Kind = method.Kind;
IsDefaultConstructor = method.IsDefaultConstructor;
IsCopyConstructor = method.IsCopyConstructor;
@@ -119,6 +121,7 @@ public Method(Function function)
public bool IsStatic { get; set; }
public bool IsConst { get; set; }
public bool IsExplicit { get; set; }
+ public bool IsVolatile { get; set; }
public bool IsOverride
{
diff --git a/src/Core/Toolchains/MSVCToolchain.cs b/src/Core/Toolchains/MSVCToolchain.cs
index 605825c31f..91964cd486 100644
--- a/src/Core/Toolchains/MSVCToolchain.cs
+++ b/src/Core/Toolchains/MSVCToolchain.cs
@@ -16,6 +16,7 @@ public enum VisualStudioVersion
VS2015 = 14,
VS2017 = 15,
VS2019 = 16,
+ VS2022 = 17,
Latest,
}
@@ -67,9 +68,12 @@ public static Version GetCLVersion(VisualStudioVersion vsVersion)
clVersion = new Version { Major = 19, Minor = 10 };
break;
case VisualStudioVersion.VS2019:
- case VisualStudioVersion.Latest:
clVersion = new Version { Major = 19, Minor = 20 };
break;
+ case VisualStudioVersion.VS2022:
+ case VisualStudioVersion.Latest:
+ clVersion = new Version { Major = 19, Minor = 30 };
+ break;
default:
throw new Exception("Unknown Visual Studio version");
}
diff --git a/src/CppParser/AST.cpp b/src/CppParser/AST.cpp
index ae9e176360..b01cb8debd 100644
--- a/src/CppParser/AST.cpp
+++ b/src/CppParser/AST.cpp
@@ -674,6 +674,7 @@ Method::Method()
, isStatic(false)
, isConst(false)
, isExplicit(false)
+ , isVolatile(false)
, isDefaultConstructor(false)
, isCopyConstructor(false)
, isMoveConstructor(false)
@@ -1078,6 +1079,8 @@ HTMLStartTagComment::Attribute::Attribute() {}
HTMLStartTagComment::Attribute::Attribute(const Attribute& rhs) : name(rhs.name), value(rhs.value) {}
+HTMLStartTagComment::Attribute::~Attribute() {}
+
HTMLStartTagComment::HTMLStartTagComment() : HTMLTagComment(CommentKind::HTMLStartTagComment) {}
DEF_VECTOR(HTMLStartTagComment, HTMLStartTagComment::Attribute, Attributes)
diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h
index ceb1064f60..c8a3be1cb8 100644
--- a/src/CppParser/AST.h
+++ b/src/CppParser/AST.h
@@ -201,6 +201,7 @@ class CS_API HTMLStartTagComment : public HTMLTagComment
public:
Attribute();
Attribute(const Attribute&);
+ ~Attribute();
std::string name;
std::string value;
};
diff --git a/src/CppParser/Bindings/CLI/AST.cpp b/src/CppParser/Bindings/CLI/AST.cpp
index 3aa9146466..e1e5640fd7 100644
--- a/src/CppParser/Bindings/CLI/AST.cpp
+++ b/src/CppParser/Bindings/CLI/AST.cpp
@@ -44,9 +44,9 @@ CppSharp::Parser::AST::NativeLibrary::NativeLibrary()
::System::String^ CppSharp::Parser::AST::NativeLibrary::GetSymbols(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getSymbols(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getSymbols(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::AST::NativeLibrary::AddSymbols(::System::String^ s)
@@ -63,9 +63,9 @@ void CppSharp::Parser::AST::NativeLibrary::ClearSymbols()
::System::String^ CppSharp::Parser::AST::NativeLibrary::GetDependencies(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getDependencies(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getDependencies(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::AST::NativeLibrary::AddDependencies(::System::String^ s)
@@ -167,14 +167,14 @@ void CppSharp::Parser::AST::NativeLibrary::Dependencies::set(::System::Collectio
unsigned int CppSharp::Parser::AST::NativeLibrary::SymbolsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getSymbolsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getSymbolsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::NativeLibrary::DependenciesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getDependenciesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->getDependenciesCount();
+ return ___ret;
}
CppSharp::Parser::AST::Comment::Comment(class ::CppSharp::CppParser::AST::Comment* native)
@@ -223,9 +223,9 @@ CppSharp::Parser::AST::Comment::Comment(CppSharp::Parser::AST::Comment^ _0)
CppSharp::Parser::AST::Comment::operator CppSharp::Parser::AST::Comment^(CppSharp::Parser::AST::CommentKind kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)kind;
- auto __ret = (::CppSharp::CppParser::AST::Comment) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::Comment(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Comment((class ::CppSharp::CppParser::AST::Comment*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::Comment) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::Comment(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Comment((class ::CppSharp::CppParser::AST::Comment*)_____ret, true);
}
::System::IntPtr CppSharp::Parser::AST::Comment::__Instance::get()
@@ -300,9 +300,9 @@ CppSharp::Parser::AST::BlockContentComment::BlockContentComment(CppSharp::Parser
CppSharp::Parser::AST::BlockContentComment::operator CppSharp::Parser::AST::BlockContentComment^(CppSharp::Parser::AST::CommentKind Kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)Kind;
- auto __ret = (::CppSharp::CppParser::AST::BlockContentComment) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::BlockContentComment(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((class ::CppSharp::CppParser::AST::BlockContentComment*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::BlockContentComment) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::BlockContentComment(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((class ::CppSharp::CppParser::AST::BlockContentComment*)_____ret, true);
}
CppSharp::Parser::AST::FullComment::FullComment(class ::CppSharp::CppParser::AST::FullComment* native)
@@ -344,9 +344,9 @@ CppSharp::Parser::AST::FullComment::FullComment()
CppSharp::Parser::AST::BlockContentComment^ CppSharp::Parser::AST::FullComment::GetBlocks(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocks(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((class ::CppSharp::CppParser::AST::BlockContentComment*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocks(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockContentComment((class ::CppSharp::CppParser::AST::BlockContentComment*)___ret);
}
void CppSharp::Parser::AST::FullComment::AddBlocks(CppSharp::Parser::AST::BlockContentComment^ s)
@@ -397,8 +397,8 @@ void CppSharp::Parser::AST::FullComment::Blocks::set(::System::Collections::Gene
unsigned int CppSharp::Parser::AST::FullComment::BlocksCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocksCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FullComment*)NativePtr)->getBlocksCount();
+ return ___ret;
}
CppSharp::Parser::AST::InlineContentComment::InlineContentComment(class ::CppSharp::CppParser::AST::InlineContentComment* native)
@@ -453,9 +453,9 @@ CppSharp::Parser::AST::InlineContentComment::InlineContentComment(CppSharp::Pars
CppSharp::Parser::AST::InlineContentComment::operator CppSharp::Parser::AST::InlineContentComment^(CppSharp::Parser::AST::CommentKind Kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)Kind;
- auto __ret = (::CppSharp::CppParser::AST::InlineContentComment) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::InlineContentComment(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((class ::CppSharp::CppParser::AST::InlineContentComment*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::InlineContentComment) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::InlineContentComment(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((class ::CppSharp::CppParser::AST::InlineContentComment*)_____ret, true);
}
bool CppSharp::Parser::AST::InlineContentComment::HasTrailingNewline::get()
@@ -507,9 +507,9 @@ CppSharp::Parser::AST::ParagraphComment::ParagraphComment()
CppSharp::Parser::AST::InlineContentComment^ CppSharp::Parser::AST::ParagraphComment::GetContent(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContent(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((class ::CppSharp::CppParser::AST::InlineContentComment*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContent(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineContentComment((class ::CppSharp::CppParser::AST::InlineContentComment*)___ret);
}
void CppSharp::Parser::AST::ParagraphComment::AddContent(CppSharp::Parser::AST::InlineContentComment^ s)
@@ -570,8 +570,8 @@ void CppSharp::Parser::AST::ParagraphComment::Content::set(::System::Collections
unsigned int CppSharp::Parser::AST::ParagraphComment::ContentCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContentCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->getContentCount();
+ return ___ret;
}
CppSharp::Parser::AST::BlockCommandComment::Argument::Argument(class ::CppSharp::CppParser::AST::BlockCommandComment::Argument* native)
@@ -683,9 +683,9 @@ CppSharp::Parser::AST::BlockCommandComment::BlockCommandComment(CppSharp::Parser
CppSharp::Parser::AST::BlockCommandComment::Argument^ CppSharp::Parser::AST::BlockCommandComment::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArguments(i);
- auto ____ret = new class ::CppSharp::CppParser::AST::BlockCommandComment::Argument(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment::Argument((class ::CppSharp::CppParser::AST::BlockCommandComment::Argument*)____ret, true);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArguments(i);
+ auto _____ret = new class ::CppSharp::CppParser::AST::BlockCommandComment::Argument(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment::Argument((class ::CppSharp::CppParser::AST::BlockCommandComment::Argument*)_____ret, true);
}
void CppSharp::Parser::AST::BlockCommandComment::AddArguments(CppSharp::Parser::AST::BlockCommandComment::Argument^ s)
@@ -714,9 +714,9 @@ CppSharp::Parser::AST::BlockCommandComment::BlockCommandComment(CppSharp::Parser
CppSharp::Parser::AST::BlockCommandComment::operator CppSharp::Parser::AST::BlockCommandComment^(CppSharp::Parser::AST::CommentKind Kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)Kind;
- auto __ret = (::CppSharp::CppParser::AST::BlockCommandComment) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::BlockCommandComment(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment((class ::CppSharp::CppParser::AST::BlockCommandComment*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::BlockCommandComment) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::BlockCommandComment(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BlockCommandComment((class ::CppSharp::CppParser::AST::BlockCommandComment*)_____ret, true);
}
unsigned int CppSharp::Parser::AST::BlockCommandComment::CommandId::get()
@@ -767,8 +767,8 @@ void CppSharp::Parser::AST::BlockCommandComment::Arguments::set(::System::Collec
unsigned int CppSharp::Parser::AST::BlockCommandComment::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::ParamCommandComment::ParamCommandComment(class ::CppSharp::CppParser::AST::ParamCommandComment* native)
@@ -877,8 +877,8 @@ CppSharp::Parser::AST::TParamCommandComment::TParamCommandComment()
unsigned int CppSharp::Parser::AST::TParamCommandComment::GetPosition(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPosition(i);
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPosition(i);
+ return ___ret;
}
void CppSharp::Parser::AST::TParamCommandComment::AddPosition([::System::Runtime::InteropServices::In, ::System::Runtime::InteropServices::Out] unsigned int% s)
@@ -928,8 +928,8 @@ void CppSharp::Parser::AST::TParamCommandComment::Position::set(::System::Collec
unsigned int CppSharp::Parser::AST::TParamCommandComment::PositionCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPositionCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::TParamCommandComment*)NativePtr)->getPositionCount();
+ return ___ret;
}
CppSharp::Parser::AST::VerbatimBlockLineComment::VerbatimBlockLineComment(class ::CppSharp::CppParser::AST::VerbatimBlockLineComment* native)
@@ -1028,9 +1028,9 @@ CppSharp::Parser::AST::VerbatimBlockComment::VerbatimBlockComment()
CppSharp::Parser::AST::VerbatimBlockLineComment^ CppSharp::Parser::AST::VerbatimBlockComment::GetLines(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLines(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VerbatimBlockLineComment((class ::CppSharp::CppParser::AST::VerbatimBlockLineComment*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLines(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VerbatimBlockLineComment((class ::CppSharp::CppParser::AST::VerbatimBlockLineComment*)___ret);
}
void CppSharp::Parser::AST::VerbatimBlockComment::AddLines(CppSharp::Parser::AST::VerbatimBlockLineComment^ s)
@@ -1081,8 +1081,8 @@ void CppSharp::Parser::AST::VerbatimBlockComment::Lines::set(::System::Collectio
unsigned int CppSharp::Parser::AST::VerbatimBlockComment::LinesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLinesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::VerbatimBlockComment*)NativePtr)->getLinesCount();
+ return ___ret;
}
CppSharp::Parser::AST::VerbatimLineComment::VerbatimLineComment(class ::CppSharp::CppParser::AST::VerbatimLineComment* native)
@@ -1243,9 +1243,9 @@ CppSharp::Parser::AST::InlineCommandComment::InlineCommandComment()
CppSharp::Parser::AST::InlineCommandComment::Argument^ CppSharp::Parser::AST::InlineCommandComment::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArguments(i);
- auto ____ret = new class ::CppSharp::CppParser::AST::InlineCommandComment::Argument(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineCommandComment::Argument((class ::CppSharp::CppParser::AST::InlineCommandComment::Argument*)____ret, true);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArguments(i);
+ auto _____ret = new class ::CppSharp::CppParser::AST::InlineCommandComment::Argument(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::InlineCommandComment::Argument((class ::CppSharp::CppParser::AST::InlineCommandComment::Argument*)_____ret, true);
}
void CppSharp::Parser::AST::InlineCommandComment::AddArguments(CppSharp::Parser::AST::InlineCommandComment::Argument^ s)
@@ -1319,8 +1319,8 @@ void CppSharp::Parser::AST::InlineCommandComment::Arguments::set(::System::Colle
unsigned int CppSharp::Parser::AST::InlineCommandComment::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::HTMLTagComment::HTMLTagComment(class ::CppSharp::CppParser::AST::HTMLTagComment* native)
@@ -1375,9 +1375,9 @@ CppSharp::Parser::AST::HTMLTagComment::HTMLTagComment(CppSharp::Parser::AST::HTM
CppSharp::Parser::AST::HTMLTagComment::operator CppSharp::Parser::AST::HTMLTagComment^(CppSharp::Parser::AST::CommentKind Kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::CommentKind)Kind;
- auto __ret = (::CppSharp::CppParser::AST::HTMLTagComment) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::HTMLTagComment(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLTagComment((class ::CppSharp::CppParser::AST::HTMLTagComment*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::HTMLTagComment) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::HTMLTagComment(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLTagComment((class ::CppSharp::CppParser::AST::HTMLTagComment*)_____ret, true);
}
CppSharp::Parser::AST::HTMLStartTagComment::Attribute::Attribute(class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute* native)
@@ -1491,9 +1491,9 @@ CppSharp::Parser::AST::HTMLStartTagComment::HTMLStartTagComment()
CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ CppSharp::Parser::AST::HTMLStartTagComment::GetAttributes(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributes(i);
- auto ____ret = new class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLStartTagComment::Attribute((class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)____ret, true);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributes(i);
+ auto _____ret = new class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::HTMLStartTagComment::Attribute((class ::CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*)_____ret, true);
}
void CppSharp::Parser::AST::HTMLStartTagComment::AddAttributes(CppSharp::Parser::AST::HTMLStartTagComment::Attribute^ s)
@@ -1557,8 +1557,8 @@ void CppSharp::Parser::AST::HTMLStartTagComment::Attributes::set(::System::Colle
unsigned int CppSharp::Parser::AST::HTMLStartTagComment::AttributesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::HTMLStartTagComment*)NativePtr)->getAttributesCount();
+ return ___ret;
}
CppSharp::Parser::AST::HTMLEndTagComment::HTMLEndTagComment(class ::CppSharp::CppParser::AST::HTMLEndTagComment* native)
diff --git a/src/CppParser/Bindings/CLI/CppParser.cpp b/src/CppParser/Bindings/CLI/CppParser.cpp
index 000a7d3f0a..b0d2a4fe9a 100644
--- a/src/CppParser/Bindings/CLI/CppParser.cpp
+++ b/src/CppParser/Bindings/CLI/CppParser.cpp
@@ -47,9 +47,9 @@ CppSharp::Parser::CppParserOptions::CppParserOptions()
::System::String^ CppSharp::Parser::CppParserOptions::GetArguments(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getArguments(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getArguments(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddArguments(::System::String^ s)
@@ -66,9 +66,9 @@ void CppSharp::Parser::CppParserOptions::ClearArguments()
::System::String^ CppSharp::Parser::CppParserOptions::GetCompilationOptions(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getCompilationOptions(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getCompilationOptions(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddCompilationOptions(::System::String^ s)
@@ -85,9 +85,9 @@ void CppSharp::Parser::CppParserOptions::ClearCompilationOptions()
::System::String^ CppSharp::Parser::CppParserOptions::GetSourceFiles(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSourceFiles(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSourceFiles(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddSourceFiles(::System::String^ s)
@@ -104,9 +104,9 @@ void CppSharp::Parser::CppParserOptions::ClearSourceFiles()
::System::String^ CppSharp::Parser::CppParserOptions::GetIncludeDirs(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getIncludeDirs(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getIncludeDirs(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddIncludeDirs(::System::String^ s)
@@ -123,9 +123,9 @@ void CppSharp::Parser::CppParserOptions::ClearIncludeDirs()
::System::String^ CppSharp::Parser::CppParserOptions::GetSystemIncludeDirs(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSystemIncludeDirs(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSystemIncludeDirs(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddSystemIncludeDirs(::System::String^ s)
@@ -142,9 +142,9 @@ void CppSharp::Parser::CppParserOptions::ClearSystemIncludeDirs()
::System::String^ CppSharp::Parser::CppParserOptions::GetDefines(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getDefines(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getDefines(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddDefines(::System::String^ s)
@@ -161,9 +161,9 @@ void CppSharp::Parser::CppParserOptions::ClearDefines()
::System::String^ CppSharp::Parser::CppParserOptions::GetUndefines(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getUndefines(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getUndefines(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddUndefines(::System::String^ s)
@@ -180,9 +180,9 @@ void CppSharp::Parser::CppParserOptions::ClearUndefines()
::System::String^ CppSharp::Parser::CppParserOptions::GetSupportedStdTypes(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedStdTypes(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedStdTypes(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddSupportedStdTypes(::System::String^ s)
@@ -199,9 +199,9 @@ void CppSharp::Parser::CppParserOptions::ClearSupportedStdTypes()
::System::String^ CppSharp::Parser::CppParserOptions::GetSupportedFunctionTemplates(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplates(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplates(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppParserOptions::AddSupportedFunctionTemplates(::System::String^ s)
@@ -554,62 +554,62 @@ void CppSharp::Parser::CppParserOptions::SkipFunctionBodies::set(bool value)
::System::String^ CppSharp::Parser::CppParserOptions::ClangVersion::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getClangVersion();
- return clix::marshalString(__ret);
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getClangVersion();
+ return clix::marshalString(___ret);
}
unsigned int CppSharp::Parser::CppParserOptions::ArgumentsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppParserOptions::CompilationOptionsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getCompilationOptionsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getCompilationOptionsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppParserOptions::SourceFilesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSourceFilesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSourceFilesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppParserOptions::IncludeDirsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getIncludeDirsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getIncludeDirsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppParserOptions::SystemIncludeDirsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSystemIncludeDirsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSystemIncludeDirsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppParserOptions::DefinesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getDefinesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getDefinesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppParserOptions::UndefinesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getUndefinesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getUndefinesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppParserOptions::SupportedStdTypesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedStdTypesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedStdTypesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppParserOptions::SupportedFunctionTemplatesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplatesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppParserOptions*)NativePtr)->getSupportedFunctionTemplatesCount();
+ return ___ret;
}
CppSharp::Parser::CppLinkerOptions::CppLinkerOptions(struct ::CppSharp::CppParser::CppLinkerOptions* native)
@@ -647,9 +647,9 @@ CppSharp::Parser::CppLinkerOptions::CppLinkerOptions()
::System::String^ CppSharp::Parser::CppLinkerOptions::GetArguments(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getArguments(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getArguments(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppLinkerOptions::AddArguments(::System::String^ s)
@@ -666,9 +666,9 @@ void CppSharp::Parser::CppLinkerOptions::ClearArguments()
::System::String^ CppSharp::Parser::CppLinkerOptions::GetLibraryDirs(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraryDirs(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraryDirs(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppLinkerOptions::AddLibraryDirs(::System::String^ s)
@@ -685,9 +685,9 @@ void CppSharp::Parser::CppLinkerOptions::ClearLibraryDirs()
::System::String^ CppSharp::Parser::CppLinkerOptions::GetLibraries(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraries(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == 0 ? nullptr : clix::marshalString(__ret));
+ auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraries(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == 0 ? nullptr : clix::marshalString(___ret));
}
void CppSharp::Parser::CppLinkerOptions::AddLibraries(::System::String^ s)
@@ -792,20 +792,20 @@ void CppSharp::Parser::CppLinkerOptions::Libraries::set(::System::Collections::G
unsigned int CppSharp::Parser::CppLinkerOptions::ArgumentsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppLinkerOptions::LibraryDirsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraryDirsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibraryDirsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::CppLinkerOptions::LibrariesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibrariesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::CppLinkerOptions*)NativePtr)->getLibrariesCount();
+ return ___ret;
}
CppSharp::Parser::ParserDiagnostic::ParserDiagnostic(struct ::CppSharp::CppParser::ParserDiagnostic* native)
@@ -954,9 +954,9 @@ CppSharp::Parser::ParserResult::ParserResult(CppSharp::Parser::ParserResult^ _0)
CppSharp::Parser::ParserDiagnostic^ CppSharp::Parser::ParserResult::GetDiagnostics(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnostics(i);
- auto ____ret = new struct ::CppSharp::CppParser::ParserDiagnostic(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserDiagnostic((struct ::CppSharp::CppParser::ParserDiagnostic*)____ret, true);
+ auto ___ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnostics(i);
+ auto _____ret = new struct ::CppSharp::CppParser::ParserDiagnostic(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserDiagnostic((struct ::CppSharp::CppParser::ParserDiagnostic*)_____ret, true);
}
void CppSharp::Parser::ParserResult::AddDiagnostics(CppSharp::Parser::ParserDiagnostic^ s)
@@ -974,9 +974,9 @@ void CppSharp::Parser::ParserResult::ClearDiagnostics()
CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::ParserResult::GetLibraries(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibraries(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((class ::CppSharp::CppParser::AST::NativeLibrary*)__ret);
+ auto ___ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibraries(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::NativeLibrary((class ::CppSharp::CppParser::AST::NativeLibrary*)___ret);
}
void CppSharp::Parser::ParserResult::AddLibraries(CppSharp::Parser::AST::NativeLibrary^ s)
@@ -1073,14 +1073,14 @@ void CppSharp::Parser::ParserResult::TargetInfo::set(CppSharp::Parser::ParserTar
unsigned int CppSharp::Parser::ParserResult::DiagnosticsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnosticsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getDiagnosticsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::ParserResult::LibrariesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibrariesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::ParserResult*)NativePtr)->getLibrariesCount();
+ return ___ret;
}
CppSharp::Parser::ClangParser::ClangParser(class ::CppSharp::CppParser::ClangParser* native)
@@ -1113,17 +1113,17 @@ CppSharp::Parser::ClangParser::~ClangParser()
CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseHeader(CppSharp::Parser::CppParserOptions^ Opts)
{
auto __arg0 = (struct ::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr;
- auto __ret = ::CppSharp::CppParser::ClangParser::ParseHeader(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret);
+ auto ___ret = ::CppSharp::CppParser::ClangParser::ParseHeader(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret);
}
CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::ParseLibrary(CppSharp::Parser::CppLinkerOptions^ Opts)
{
auto __arg0 = (struct ::CppSharp::CppParser::CppLinkerOptions*)Opts->NativePtr;
- auto __ret = ::CppSharp::CppParser::ClangParser::ParseLibrary(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret);
+ auto ___ret = ::CppSharp::CppParser::ClangParser::ParseLibrary(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret);
}
CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Build(CppSharp::Parser::CppParserOptions^ Opts, CppSharp::Parser::CppLinkerOptions^ LinkerOptions, ::System::String^ File, bool Last)
@@ -1131,18 +1131,18 @@ CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Build(CppSharp::P
auto __arg0 = (struct ::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr;
auto __arg1 = (struct ::CppSharp::CppParser::CppLinkerOptions*)LinkerOptions->NativePtr;
auto __arg2 = clix::marshalString(File);
- auto __ret = ::CppSharp::CppParser::ClangParser::Build(__arg0, __arg1, __arg2, Last);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret);
+ auto ___ret = ::CppSharp::CppParser::ClangParser::Build(__arg0, __arg1, __arg2, Last);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret);
}
CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Compile(CppSharp::Parser::CppParserOptions^ Opts, ::System::String^ File)
{
auto __arg0 = (struct ::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr;
auto __arg1 = clix::marshalString(File);
- auto __ret = ::CppSharp::CppParser::ClangParser::Compile(__arg0, __arg1);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret);
+ auto ___ret = ::CppSharp::CppParser::ClangParser::Compile(__arg0, __arg1);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret);
}
CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Link(CppSharp::Parser::CppParserOptions^ Opts, CppSharp::Parser::CppLinkerOptions^ LinkerOptions, ::System::String^ File, bool Last)
@@ -1150,9 +1150,9 @@ CppSharp::Parser::ParserResult^ CppSharp::Parser::ClangParser::Link(CppSharp::Pa
auto __arg0 = (struct ::CppSharp::CppParser::CppParserOptions*)Opts->NativePtr;
auto __arg1 = (struct ::CppSharp::CppParser::CppLinkerOptions*)LinkerOptions->NativePtr;
auto __arg2 = clix::marshalString(File);
- auto __ret = ::CppSharp::CppParser::ClangParser::Link(__arg0, __arg1, __arg2, Last);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)__ret);
+ auto ___ret = ::CppSharp::CppParser::ClangParser::Link(__arg0, __arg1, __arg2, Last);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::ParserResult((struct ::CppSharp::CppParser::ParserResult*)___ret);
}
CppSharp::Parser::ClangParser::ClangParser()
diff --git a/src/CppParser/Bindings/CLI/Decl.cpp b/src/CppParser/Bindings/CLI/Decl.cpp
index 3de0e48dec..6afab65ea7 100644
--- a/src/CppParser/Bindings/CLI/Decl.cpp
+++ b/src/CppParser/Bindings/CLI/Decl.cpp
@@ -58,9 +58,9 @@ CppSharp::Parser::AST::Declaration::Declaration(CppSharp::Parser::AST::Declarati
CppSharp::Parser::AST::PreprocessedEntity^ CppSharp::Parser::AST::Declaration::GetPreprocessedEntities(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getPreprocessedEntities(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::PreprocessedEntity((class ::CppSharp::CppParser::AST::PreprocessedEntity*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getPreprocessedEntities(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::PreprocessedEntity((class ::CppSharp::CppParser::AST::PreprocessedEntity*)___ret);
}
void CppSharp::Parser::AST::Declaration::AddPreprocessedEntities(CppSharp::Parser::AST::PreprocessedEntity^ s)
@@ -78,9 +78,9 @@ void CppSharp::Parser::AST::Declaration::ClearPreprocessedEntities()
CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Declaration::GetRedeclarations(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getRedeclarations(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getRedeclarations(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)___ret);
}
void CppSharp::Parser::AST::Declaration::AddRedeclarations(CppSharp::Parser::AST::Declaration^ s)
@@ -99,9 +99,9 @@ void CppSharp::Parser::AST::Declaration::ClearRedeclarations()
CppSharp::Parser::AST::Declaration::operator CppSharp::Parser::AST::Declaration^(CppSharp::Parser::AST::DeclarationKind kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind;
- auto __ret = (::CppSharp::CppParser::AST::Declaration) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::Declaration(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::Declaration) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::Declaration(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)_____ret, true);
}
::System::IntPtr CppSharp::Parser::AST::Declaration::__Instance::get()
@@ -364,14 +364,14 @@ void CppSharp::Parser::AST::Declaration::Comment::set(CppSharp::Parser::AST::Raw
unsigned int CppSharp::Parser::AST::Declaration::PreprocessedEntitiesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getPreprocessedEntitiesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getPreprocessedEntitiesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::Declaration::RedeclarationsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getRedeclarationsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Declaration*)NativePtr)->getRedeclarationsCount();
+ return ___ret;
}
CppSharp::Parser::AST::DeclarationContext::DeclarationContext(class ::CppSharp::CppParser::AST::DeclarationContext* native)
@@ -414,9 +414,9 @@ CppSharp::Parser::AST::DeclarationContext::DeclarationContext(CppSharp::Parser::
CppSharp::Parser::AST::Namespace^ CppSharp::Parser::AST::DeclarationContext::GetNamespaces(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getNamespaces(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Namespace((class ::CppSharp::CppParser::AST::Namespace*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getNamespaces(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Namespace((class ::CppSharp::CppParser::AST::Namespace*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddNamespaces(CppSharp::Parser::AST::Namespace^ s)
@@ -434,9 +434,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearNamespaces()
CppSharp::Parser::AST::Enumeration^ CppSharp::Parser::AST::DeclarationContext::GetEnums(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getEnums(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration((class ::CppSharp::CppParser::AST::Enumeration*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getEnums(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration((class ::CppSharp::CppParser::AST::Enumeration*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddEnums(CppSharp::Parser::AST::Enumeration^ s)
@@ -454,9 +454,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearEnums()
CppSharp::Parser::AST::Function^ CppSharp::Parser::AST::DeclarationContext::GetFunctions(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFunctions(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Function((class ::CppSharp::CppParser::AST::Function*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFunctions(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Function((class ::CppSharp::CppParser::AST::Function*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddFunctions(CppSharp::Parser::AST::Function^ s)
@@ -474,9 +474,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearFunctions()
CppSharp::Parser::AST::Class^ CppSharp::Parser::AST::DeclarationContext::GetClasses(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getClasses(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Class((class ::CppSharp::CppParser::AST::Class*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getClasses(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Class((class ::CppSharp::CppParser::AST::Class*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddClasses(CppSharp::Parser::AST::Class^ s)
@@ -494,9 +494,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearClasses()
CppSharp::Parser::AST::Template^ CppSharp::Parser::AST::DeclarationContext::GetTemplates(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTemplates(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Template((class ::CppSharp::CppParser::AST::Template*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTemplates(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Template((class ::CppSharp::CppParser::AST::Template*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddTemplates(CppSharp::Parser::AST::Template^ s)
@@ -514,9 +514,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearTemplates()
CppSharp::Parser::AST::TypedefDecl^ CppSharp::Parser::AST::DeclarationContext::GetTypedefs(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypedefs(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypedefDecl((class ::CppSharp::CppParser::AST::TypedefDecl*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypedefs(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypedefDecl((class ::CppSharp::CppParser::AST::TypedefDecl*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddTypedefs(CppSharp::Parser::AST::TypedefDecl^ s)
@@ -534,9 +534,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearTypedefs()
CppSharp::Parser::AST::TypeAlias^ CppSharp::Parser::AST::DeclarationContext::GetTypeAliases(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypeAliases(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypeAlias((class ::CppSharp::CppParser::AST::TypeAlias*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypeAliases(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypeAlias((class ::CppSharp::CppParser::AST::TypeAlias*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddTypeAliases(CppSharp::Parser::AST::TypeAlias^ s)
@@ -554,9 +554,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearTypeAliases()
CppSharp::Parser::AST::Variable^ CppSharp::Parser::AST::DeclarationContext::GetVariables(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getVariables(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Variable((class ::CppSharp::CppParser::AST::Variable*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getVariables(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Variable((class ::CppSharp::CppParser::AST::Variable*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddVariables(CppSharp::Parser::AST::Variable^ s)
@@ -574,9 +574,9 @@ void CppSharp::Parser::AST::DeclarationContext::ClearVariables()
CppSharp::Parser::AST::Friend^ CppSharp::Parser::AST::DeclarationContext::GetFriends(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFriends(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Friend((class ::CppSharp::CppParser::AST::Friend*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFriends(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Friend((class ::CppSharp::CppParser::AST::Friend*)___ret);
}
void CppSharp::Parser::AST::DeclarationContext::AddFriends(CppSharp::Parser::AST::Friend^ s)
@@ -605,9 +605,9 @@ CppSharp::Parser::AST::DeclarationContext::DeclarationContext(CppSharp::Parser::
CppSharp::Parser::AST::DeclarationContext::operator CppSharp::Parser::AST::DeclarationContext^(CppSharp::Parser::AST::DeclarationKind kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind;
- auto __ret = (::CppSharp::CppParser::AST::DeclarationContext) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::DeclarationContext(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::DeclarationContext((class ::CppSharp::CppParser::AST::DeclarationContext*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::DeclarationContext) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::DeclarationContext(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::DeclarationContext((class ::CppSharp::CppParser::AST::DeclarationContext*)_____ret, true);
}
::System::Collections::Generic::List^ CppSharp::Parser::AST::DeclarationContext::Namespaces::get()
@@ -829,56 +829,56 @@ void CppSharp::Parser::AST::DeclarationContext::IsAnonymous::set(bool value)
unsigned int CppSharp::Parser::AST::DeclarationContext::NamespacesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getNamespacesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getNamespacesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::DeclarationContext::EnumsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getEnumsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getEnumsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::DeclarationContext::FunctionsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFunctionsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFunctionsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::DeclarationContext::ClassesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getClassesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getClassesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::DeclarationContext::TemplatesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTemplatesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTemplatesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::DeclarationContext::TypedefsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypedefsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypedefsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::DeclarationContext::TypeAliasesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypeAliasesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getTypeAliasesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::DeclarationContext::VariablesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getVariablesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getVariablesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::DeclarationContext::FriendsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFriendsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->getFriendsCount();
+ return ___ret;
}
CppSharp::Parser::AST::TypedefNameDecl::TypedefNameDecl(class ::CppSharp::CppParser::AST::TypedefNameDecl* native)
@@ -932,9 +932,9 @@ CppSharp::Parser::AST::TypedefNameDecl::TypedefNameDecl(CppSharp::Parser::AST::T
CppSharp::Parser::AST::TypedefNameDecl::operator CppSharp::Parser::AST::TypedefNameDecl^(CppSharp::Parser::AST::DeclarationKind kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind;
- auto __ret = (::CppSharp::CppParser::AST::TypedefNameDecl) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::TypedefNameDecl(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypedefNameDecl((class ::CppSharp::CppParser::AST::TypedefNameDecl*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::TypedefNameDecl) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::TypedefNameDecl(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TypedefNameDecl((class ::CppSharp::CppParser::AST::TypedefNameDecl*)_____ret, true);
}
CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypedefNameDecl::QualifiedType::get()
@@ -1367,9 +1367,9 @@ CppSharp::Parser::AST::CallExprObsolete::CallExprObsolete(::System::String^ str,
CppSharp::Parser::AST::ExpressionObsolete^ CppSharp::Parser::AST::CallExprObsolete::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CallExprObsolete*)NativePtr)->getArguments(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExpressionObsolete((class ::CppSharp::CppParser::AST::ExpressionObsolete*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CallExprObsolete*)NativePtr)->getArguments(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExpressionObsolete((class ::CppSharp::CppParser::AST::ExpressionObsolete*)___ret);
}
void CppSharp::Parser::AST::CallExprObsolete::AddArguments(CppSharp::Parser::AST::ExpressionObsolete^ s)
@@ -1420,8 +1420,8 @@ void CppSharp::Parser::AST::CallExprObsolete::Arguments::set(::System::Collectio
unsigned int CppSharp::Parser::AST::CallExprObsolete::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CallExprObsolete*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CallExprObsolete*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::CXXConstructExprObsolete::CXXConstructExprObsolete(class ::CppSharp::CppParser::AST::CXXConstructExprObsolete* native)
@@ -1465,9 +1465,9 @@ CppSharp::Parser::AST::CXXConstructExprObsolete::CXXConstructExprObsolete(::Syst
CppSharp::Parser::AST::ExpressionObsolete^ CppSharp::Parser::AST::CXXConstructExprObsolete::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CXXConstructExprObsolete*)NativePtr)->getArguments(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExpressionObsolete((class ::CppSharp::CppParser::AST::ExpressionObsolete*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CXXConstructExprObsolete*)NativePtr)->getArguments(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExpressionObsolete((class ::CppSharp::CppParser::AST::ExpressionObsolete*)___ret);
}
void CppSharp::Parser::AST::CXXConstructExprObsolete::AddArguments(CppSharp::Parser::AST::ExpressionObsolete^ s)
@@ -1518,8 +1518,8 @@ void CppSharp::Parser::AST::CXXConstructExprObsolete::Arguments::set(::System::C
unsigned int CppSharp::Parser::AST::CXXConstructExprObsolete::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CXXConstructExprObsolete*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CXXConstructExprObsolete*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::Parameter::Parameter(class ::CppSharp::CppParser::AST::Parameter* native)
@@ -1670,9 +1670,9 @@ CppSharp::Parser::AST::Function::Function()
CppSharp::Parser::AST::Parameter^ CppSharp::Parser::AST::Function::GetParameters(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Function*)NativePtr)->getParameters(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Parameter((class ::CppSharp::CppParser::AST::Parameter*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Function*)NativePtr)->getParameters(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Parameter((class ::CppSharp::CppParser::AST::Parameter*)___ret);
}
void CppSharp::Parser::AST::Function::AddParameters(CppSharp::Parser::AST::Parameter^ s)
@@ -1917,8 +1917,8 @@ void CppSharp::Parser::AST::Function::QualifiedType::set(CppSharp::Parser::AST::
unsigned int CppSharp::Parser::AST::Function::ParametersCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Function*)NativePtr)->getParametersCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Function*)NativePtr)->getParametersCount();
+ return ___ret;
}
CppSharp::Parser::AST::Method::Method(class ::CppSharp::CppParser::AST::Method* native)
@@ -1960,9 +1960,9 @@ CppSharp::Parser::AST::Method::Method()
CppSharp::Parser::AST::Method^ CppSharp::Parser::AST::Method::GetOverriddenMethods(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->getOverriddenMethods(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Method((class ::CppSharp::CppParser::AST::Method*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->getOverriddenMethods(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Method((class ::CppSharp::CppParser::AST::Method*)___ret);
}
void CppSharp::Parser::AST::Method::AddOverriddenMethods(CppSharp::Parser::AST::Method^ s)
@@ -2028,6 +2028,16 @@ void CppSharp::Parser::AST::Method::IsExplicit::set(bool value)
((class ::CppSharp::CppParser::AST::Method*)NativePtr)->isExplicit = value;
}
+bool CppSharp::Parser::AST::Method::IsVolatile::get()
+{
+ return ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->isVolatile;
+}
+
+void CppSharp::Parser::AST::Method::IsVolatile::set(bool value)
+{
+ ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->isVolatile = value;
+}
+
CppSharp::Parser::AST::CXXMethodKind CppSharp::Parser::AST::Method::MethodKind::get()
{
return (CppSharp::Parser::AST::CXXMethodKind)((class ::CppSharp::CppParser::AST::Method*)NativePtr)->methodKind;
@@ -2115,8 +2125,8 @@ void CppSharp::Parser::AST::Method::OverriddenMethods::set(::System::Collections
unsigned int CppSharp::Parser::AST::Method::OverriddenMethodsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->getOverriddenMethodsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Method*)NativePtr)->getOverriddenMethodsCount();
+ return ___ret;
}
CppSharp::Parser::AST::Enumeration::Item::Item(class ::CppSharp::CppParser::AST::Enumeration::Item* native)
@@ -2225,9 +2235,9 @@ CppSharp::Parser::AST::Enumeration::Enumeration()
CppSharp::Parser::AST::Enumeration::Item^ CppSharp::Parser::AST::Enumeration::GetItems(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->getItems(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration::Item((class ::CppSharp::CppParser::AST::Enumeration::Item*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->getItems(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration::Item((class ::CppSharp::CppParser::AST::Enumeration::Item*)___ret);
}
void CppSharp::Parser::AST::Enumeration::AddItems(CppSharp::Parser::AST::Enumeration::Item^ s)
@@ -2246,9 +2256,9 @@ void CppSharp::Parser::AST::Enumeration::ClearItems()
CppSharp::Parser::AST::Enumeration::Item^ CppSharp::Parser::AST::Enumeration::FindItemByName(::System::String^ Name)
{
auto __arg0 = clix::marshalString(Name);
- auto __ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->FindItemByName(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration::Item((class ::CppSharp::CppParser::AST::Enumeration::Item*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->FindItemByName(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Enumeration::Item((class ::CppSharp::CppParser::AST::Enumeration::Item*)___ret);
}
CppSharp::Parser::AST::Enumeration::Enumeration(CppSharp::Parser::AST::Enumeration^ _0)
@@ -2316,8 +2326,8 @@ void CppSharp::Parser::AST::Enumeration::Items::set(::System::Collections::Gener
unsigned int CppSharp::Parser::AST::Enumeration::ItemsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->getItemsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Enumeration*)NativePtr)->getItemsCount();
+ return ___ret;
}
CppSharp::Parser::AST::Variable::Variable(class ::CppSharp::CppParser::AST::Variable* native)
@@ -2763,9 +2773,9 @@ CppSharp::Parser::AST::VTableLayout::VTableLayout(CppSharp::Parser::AST::VTableL
CppSharp::Parser::AST::VTableComponent^ CppSharp::Parser::AST::VTableLayout::GetComponents(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::AST::VTableLayout*)NativePtr)->getComponents(i);
- auto ____ret = new struct ::CppSharp::CppParser::AST::VTableComponent(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VTableComponent((struct ::CppSharp::CppParser::AST::VTableComponent*)____ret, true);
+ auto ___ret = ((struct ::CppSharp::CppParser::AST::VTableLayout*)NativePtr)->getComponents(i);
+ auto _____ret = new struct ::CppSharp::CppParser::AST::VTableComponent(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VTableComponent((struct ::CppSharp::CppParser::AST::VTableComponent*)_____ret, true);
}
void CppSharp::Parser::AST::VTableLayout::AddComponents(CppSharp::Parser::AST::VTableComponent^ s)
@@ -2819,8 +2829,8 @@ void CppSharp::Parser::AST::VTableLayout::Components::set(::System::Collections:
unsigned int CppSharp::Parser::AST::VTableLayout::ComponentsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::AST::VTableLayout*)NativePtr)->getComponentsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::AST::VTableLayout*)NativePtr)->getComponentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::VFTableInfo::VFTableInfo(struct ::CppSharp::CppParser::AST::VFTableInfo* native)
@@ -3118,9 +3128,9 @@ CppSharp::Parser::AST::ClassLayout::ClassLayout()
CppSharp::Parser::AST::VFTableInfo^ CppSharp::Parser::AST::ClassLayout::GetVFTables(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getVFTables(i);
- auto ____ret = new struct ::CppSharp::CppParser::AST::VFTableInfo(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VFTableInfo((struct ::CppSharp::CppParser::AST::VFTableInfo*)____ret, true);
+ auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getVFTables(i);
+ auto _____ret = new struct ::CppSharp::CppParser::AST::VFTableInfo(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VFTableInfo((struct ::CppSharp::CppParser::AST::VFTableInfo*)_____ret, true);
}
void CppSharp::Parser::AST::ClassLayout::AddVFTables(CppSharp::Parser::AST::VFTableInfo^ s)
@@ -3138,9 +3148,9 @@ void CppSharp::Parser::AST::ClassLayout::ClearVFTables()
CppSharp::Parser::AST::LayoutField^ CppSharp::Parser::AST::ClassLayout::GetFields(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getFields(i);
- auto ____ret = new class ::CppSharp::CppParser::AST::LayoutField(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::LayoutField((class ::CppSharp::CppParser::AST::LayoutField*)____ret, true);
+ auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getFields(i);
+ auto _____ret = new class ::CppSharp::CppParser::AST::LayoutField(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::LayoutField((class ::CppSharp::CppParser::AST::LayoutField*)_____ret, true);
}
void CppSharp::Parser::AST::ClassLayout::AddFields(CppSharp::Parser::AST::LayoutField^ s)
@@ -3158,9 +3168,9 @@ void CppSharp::Parser::AST::ClassLayout::ClearFields()
CppSharp::Parser::AST::LayoutBase^ CppSharp::Parser::AST::ClassLayout::GetBases(unsigned int i)
{
- auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getBases(i);
- auto ____ret = new class ::CppSharp::CppParser::AST::LayoutBase(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::LayoutBase((class ::CppSharp::CppParser::AST::LayoutBase*)____ret, true);
+ auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getBases(i);
+ auto _____ret = new class ::CppSharp::CppParser::AST::LayoutBase(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::LayoutBase((class ::CppSharp::CppParser::AST::LayoutBase*)_____ret, true);
}
void CppSharp::Parser::AST::ClassLayout::AddBases(CppSharp::Parser::AST::LayoutBase^ s)
@@ -3357,20 +3367,20 @@ void CppSharp::Parser::AST::ClassLayout::Bases::set(::System::Collections::Gener
unsigned int CppSharp::Parser::AST::ClassLayout::VFTablesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getVFTablesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getVFTablesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::ClassLayout::FieldsCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getFieldsCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getFieldsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::ClassLayout::BasesCount::get()
{
- auto __ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getBasesCount();
- return __ret;
+ auto ___ret = ((struct ::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->getBasesCount();
+ return ___ret;
}
CppSharp::Parser::AST::Class::Class(class ::CppSharp::CppParser::AST::Class* native)
@@ -3412,9 +3422,9 @@ CppSharp::Parser::AST::Class::Class()
CppSharp::Parser::AST::BaseClassSpecifier^ CppSharp::Parser::AST::Class::GetBases(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getBases(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BaseClassSpecifier((struct ::CppSharp::CppParser::AST::BaseClassSpecifier*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getBases(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BaseClassSpecifier((struct ::CppSharp::CppParser::AST::BaseClassSpecifier*)___ret);
}
void CppSharp::Parser::AST::Class::AddBases(CppSharp::Parser::AST::BaseClassSpecifier^ s)
@@ -3432,9 +3442,9 @@ void CppSharp::Parser::AST::Class::ClearBases()
CppSharp::Parser::AST::Field^ CppSharp::Parser::AST::Class::GetFields(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getFields(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Field((class ::CppSharp::CppParser::AST::Field*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getFields(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Field((class ::CppSharp::CppParser::AST::Field*)___ret);
}
void CppSharp::Parser::AST::Class::AddFields(CppSharp::Parser::AST::Field^ s)
@@ -3452,9 +3462,9 @@ void CppSharp::Parser::AST::Class::ClearFields()
CppSharp::Parser::AST::Method^ CppSharp::Parser::AST::Class::GetMethods(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getMethods(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Method((class ::CppSharp::CppParser::AST::Method*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getMethods(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Method((class ::CppSharp::CppParser::AST::Method*)___ret);
}
void CppSharp::Parser::AST::Class::AddMethods(CppSharp::Parser::AST::Method^ s)
@@ -3472,9 +3482,9 @@ void CppSharp::Parser::AST::Class::ClearMethods()
CppSharp::Parser::AST::AccessSpecifierDecl^ CppSharp::Parser::AST::Class::GetSpecifiers(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getSpecifiers(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AccessSpecifierDecl((class ::CppSharp::CppParser::AST::AccessSpecifierDecl*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getSpecifiers(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AccessSpecifierDecl((class ::CppSharp::CppParser::AST::AccessSpecifierDecl*)___ret);
}
void CppSharp::Parser::AST::Class::AddSpecifiers(CppSharp::Parser::AST::AccessSpecifierDecl^ s)
@@ -3714,26 +3724,26 @@ void CppSharp::Parser::AST::Class::Layout::set(CppSharp::Parser::AST::ClassLayou
unsigned int CppSharp::Parser::AST::Class::BasesCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getBasesCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getBasesCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::Class::FieldsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getFieldsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getFieldsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::Class::MethodsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getMethodsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getMethodsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::Class::SpecifiersCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getSpecifiersCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Class*)NativePtr)->getSpecifiersCount();
+ return ___ret;
}
CppSharp::Parser::AST::Template::Template(class ::CppSharp::CppParser::AST::Template* native)
@@ -3783,9 +3793,9 @@ CppSharp::Parser::AST::Template::Template()
CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Template::GetParameters(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Template*)NativePtr)->getParameters(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Template*)NativePtr)->getParameters(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)___ret);
}
void CppSharp::Parser::AST::Template::AddParameters(CppSharp::Parser::AST::Declaration^ s)
@@ -3814,9 +3824,9 @@ CppSharp::Parser::AST::Template::Template(CppSharp::Parser::AST::Template^ _0)
CppSharp::Parser::AST::Template::operator CppSharp::Parser::AST::Template^(CppSharp::Parser::AST::DeclarationKind kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind;
- auto __ret = (::CppSharp::CppParser::AST::Template) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::Template(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Template((class ::CppSharp::CppParser::AST::Template*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::Template) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::Template(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Template((class ::CppSharp::CppParser::AST::Template*)_____ret, true);
}
CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Template::TemplatedDecl::get()
@@ -3854,8 +3864,8 @@ void CppSharp::Parser::AST::Template::Parameters::set(::System::Collections::Gen
unsigned int CppSharp::Parser::AST::Template::ParametersCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::Template*)NativePtr)->getParametersCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::Template*)NativePtr)->getParametersCount();
+ return ___ret;
}
CppSharp::Parser::AST::TypeAliasTemplate::TypeAliasTemplate(class ::CppSharp::CppParser::AST::TypeAliasTemplate* native)
@@ -3956,9 +3966,9 @@ CppSharp::Parser::AST::TemplateParameter::TemplateParameter(CppSharp::Parser::AS
CppSharp::Parser::AST::TemplateParameter::operator CppSharp::Parser::AST::TemplateParameter^(CppSharp::Parser::AST::DeclarationKind kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::DeclarationKind)kind;
- auto __ret = (::CppSharp::CppParser::AST::TemplateParameter) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::TemplateParameter(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateParameter((class ::CppSharp::CppParser::AST::TemplateParameter*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::TemplateParameter) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::TemplateParameter(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateParameter((class ::CppSharp::CppParser::AST::TemplateParameter*)_____ret, true);
}
unsigned int CppSharp::Parser::AST::TemplateParameter::Depth::get()
@@ -4275,9 +4285,9 @@ CppSharp::Parser::AST::ClassTemplate::ClassTemplate()
CppSharp::Parser::AST::ClassTemplateSpecialization^ CppSharp::Parser::AST::ClassTemplate::GetSpecializations(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->getSpecializations(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->getSpecializations(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)___ret);
}
void CppSharp::Parser::AST::ClassTemplate::AddSpecializations(CppSharp::Parser::AST::ClassTemplateSpecialization^ s)
@@ -4296,17 +4306,17 @@ void CppSharp::Parser::AST::ClassTemplate::ClearSpecializations()
CppSharp::Parser::AST::ClassTemplateSpecialization^ CppSharp::Parser::AST::ClassTemplate::FindSpecialization(::System::String^ usr)
{
auto __arg0 = clix::marshalString(usr);
- auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->FindSpecialization(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->FindSpecialization(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplateSpecialization((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)___ret);
}
CppSharp::Parser::AST::ClassTemplatePartialSpecialization^ CppSharp::Parser::AST::ClassTemplate::FindPartialSpecialization(::System::String^ usr)
{
auto __arg0 = clix::marshalString(usr);
- auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->FindPartialSpecialization(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplatePartialSpecialization((class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->FindPartialSpecialization(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ClassTemplatePartialSpecialization((class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization*)___ret);
}
CppSharp::Parser::AST::ClassTemplate::ClassTemplate(CppSharp::Parser::AST::ClassTemplate^ _0)
@@ -4344,8 +4354,8 @@ void CppSharp::Parser::AST::ClassTemplate::Specializations::set(::System::Collec
unsigned int CppSharp::Parser::AST::ClassTemplate::SpecializationsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->getSpecializationsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplate*)NativePtr)->getSpecializationsCount();
+ return ___ret;
}
CppSharp::Parser::AST::ClassTemplateSpecialization::ClassTemplateSpecialization(class ::CppSharp::CppParser::AST::ClassTemplateSpecialization* native)
@@ -4387,9 +4397,9 @@ CppSharp::Parser::AST::ClassTemplateSpecialization::ClassTemplateSpecialization(
CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::ClassTemplateSpecialization::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->getArguments(i);
- auto ____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)____ret, true);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->getArguments(i);
+ auto _____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)_____ret, true);
}
void CppSharp::Parser::AST::ClassTemplateSpecialization::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s)
@@ -4463,8 +4473,8 @@ void CppSharp::Parser::AST::ClassTemplateSpecialization::SpecializationKind::set
unsigned int CppSharp::Parser::AST::ClassTemplateSpecialization::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::ClassTemplatePartialSpecialization::ClassTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::ClassTemplatePartialSpecialization* native)
@@ -4553,9 +4563,9 @@ CppSharp::Parser::AST::FunctionTemplate::FunctionTemplate()
CppSharp::Parser::AST::FunctionTemplateSpecialization^ CppSharp::Parser::AST::FunctionTemplate::GetSpecializations(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->getSpecializations(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->getSpecializations(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)___ret);
}
void CppSharp::Parser::AST::FunctionTemplate::AddSpecializations(CppSharp::Parser::AST::FunctionTemplateSpecialization^ s)
@@ -4574,9 +4584,9 @@ void CppSharp::Parser::AST::FunctionTemplate::ClearSpecializations()
CppSharp::Parser::AST::FunctionTemplateSpecialization^ CppSharp::Parser::AST::FunctionTemplate::FindSpecialization(::System::String^ usr)
{
auto __arg0 = clix::marshalString(usr);
- auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->FindSpecialization(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->FindSpecialization(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FunctionTemplateSpecialization((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)___ret);
}
CppSharp::Parser::AST::FunctionTemplate::FunctionTemplate(CppSharp::Parser::AST::FunctionTemplate^ _0)
@@ -4614,8 +4624,8 @@ void CppSharp::Parser::AST::FunctionTemplate::Specializations::set(::System::Col
unsigned int CppSharp::Parser::AST::FunctionTemplate::SpecializationsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->getSpecializationsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplate*)NativePtr)->getSpecializationsCount();
+ return ___ret;
}
CppSharp::Parser::AST::FunctionTemplateSpecialization::FunctionTemplateSpecialization(class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization* native)
@@ -4653,9 +4663,9 @@ CppSharp::Parser::AST::FunctionTemplateSpecialization::FunctionTemplateSpecializ
CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::FunctionTemplateSpecialization::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->getArguments(i);
- auto ____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)____ret, true);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->getArguments(i);
+ auto _____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)_____ret, true);
}
void CppSharp::Parser::AST::FunctionTemplateSpecialization::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s)
@@ -4748,8 +4758,8 @@ void CppSharp::Parser::AST::FunctionTemplateSpecialization::SpecializationKind::
unsigned int CppSharp::Parser::AST::FunctionTemplateSpecialization::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::VarTemplate::VarTemplate(class ::CppSharp::CppParser::AST::VarTemplate* native)
@@ -4791,9 +4801,9 @@ CppSharp::Parser::AST::VarTemplate::VarTemplate()
CppSharp::Parser::AST::VarTemplateSpecialization^ CppSharp::Parser::AST::VarTemplate::GetSpecializations(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->getSpecializations(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplateSpecialization((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->getSpecializations(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplateSpecialization((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)___ret);
}
void CppSharp::Parser::AST::VarTemplate::AddSpecializations(CppSharp::Parser::AST::VarTemplateSpecialization^ s)
@@ -4812,17 +4822,17 @@ void CppSharp::Parser::AST::VarTemplate::ClearSpecializations()
CppSharp::Parser::AST::VarTemplateSpecialization^ CppSharp::Parser::AST::VarTemplate::FindSpecialization(::System::String^ usr)
{
auto __arg0 = clix::marshalString(usr);
- auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->FindSpecialization(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplateSpecialization((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->FindSpecialization(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplateSpecialization((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)___ret);
}
CppSharp::Parser::AST::VarTemplatePartialSpecialization^ CppSharp::Parser::AST::VarTemplate::FindPartialSpecialization(::System::String^ usr)
{
auto __arg0 = clix::marshalString(usr);
- auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->FindPartialSpecialization(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplatePartialSpecialization((class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->FindPartialSpecialization(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::VarTemplatePartialSpecialization((class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization*)___ret);
}
CppSharp::Parser::AST::VarTemplate::VarTemplate(CppSharp::Parser::AST::VarTemplate^ _0)
@@ -4860,8 +4870,8 @@ void CppSharp::Parser::AST::VarTemplate::Specializations::set(::System::Collecti
unsigned int CppSharp::Parser::AST::VarTemplate::SpecializationsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->getSpecializationsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplate*)NativePtr)->getSpecializationsCount();
+ return ___ret;
}
CppSharp::Parser::AST::VarTemplateSpecialization::VarTemplateSpecialization(class ::CppSharp::CppParser::AST::VarTemplateSpecialization* native)
@@ -4903,9 +4913,9 @@ CppSharp::Parser::AST::VarTemplateSpecialization::VarTemplateSpecialization()
CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::VarTemplateSpecialization::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->getArguments(i);
- auto ____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)____ret, true);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->getArguments(i);
+ auto _____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)_____ret, true);
}
void CppSharp::Parser::AST::VarTemplateSpecialization::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s)
@@ -4979,8 +4989,8 @@ void CppSharp::Parser::AST::VarTemplateSpecialization::SpecializationKind::set(C
unsigned int CppSharp::Parser::AST::VarTemplateSpecialization::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::VarTemplatePartialSpecialization::VarTemplatePartialSpecialization(class ::CppSharp::CppParser::AST::VarTemplatePartialSpecialization* native)
@@ -5419,9 +5429,9 @@ CppSharp::Parser::AST::TranslationUnit::TranslationUnit()
CppSharp::Parser::AST::MacroDefinition^ CppSharp::Parser::AST::TranslationUnit::GetMacros(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->getMacros(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::MacroDefinition((class ::CppSharp::CppParser::AST::MacroDefinition*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->getMacros(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::MacroDefinition((class ::CppSharp::CppParser::AST::MacroDefinition*)___ret);
}
void CppSharp::Parser::AST::TranslationUnit::AddMacros(CppSharp::Parser::AST::MacroDefinition^ s)
@@ -5492,8 +5502,8 @@ void CppSharp::Parser::AST::TranslationUnit::Macros::set(::System::Collections::
unsigned int CppSharp::Parser::AST::TranslationUnit::MacrosCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->getMacrosCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->getMacrosCount();
+ return ___ret;
}
CppSharp::Parser::AST::ASTContext::ASTContext(class ::CppSharp::CppParser::AST::ASTContext* native)
@@ -5532,16 +5542,16 @@ CppSharp::Parser::AST::ASTContext::ASTContext()
CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::ASTContext::FindOrCreateModule(::System::String^ File)
{
auto __arg0 = clix::marshalString(File);
- auto __ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->FindOrCreateModule(__arg0);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TranslationUnit((class ::CppSharp::CppParser::AST::TranslationUnit*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->FindOrCreateModule(__arg0);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TranslationUnit((class ::CppSharp::CppParser::AST::TranslationUnit*)___ret);
}
CppSharp::Parser::AST::TranslationUnit^ CppSharp::Parser::AST::ASTContext::GetTranslationUnits(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnits(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TranslationUnit((class ::CppSharp::CppParser::AST::TranslationUnit*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnits(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TranslationUnit((class ::CppSharp::CppParser::AST::TranslationUnit*)___ret);
}
void CppSharp::Parser::AST::ASTContext::AddTranslationUnits(CppSharp::Parser::AST::TranslationUnit^ s)
@@ -5601,7 +5611,7 @@ void CppSharp::Parser::AST::ASTContext::TranslationUnits::set(::System::Collecti
unsigned int CppSharp::Parser::AST::ASTContext::TranslationUnitsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnitsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::ASTContext*)NativePtr)->getTranslationUnitsCount();
+ return ___ret;
}
diff --git a/src/CppParser/Bindings/CLI/Decl.h b/src/CppParser/Bindings/CLI/Decl.h
index 8c9044c774..cfc54e8565 100644
--- a/src/CppParser/Bindings/CLI/Decl.h
+++ b/src/CppParser/Bindings/CLI/Decl.h
@@ -1120,6 +1120,12 @@ namespace CppSharp
void set(bool);
}
+ property bool IsVolatile
+ {
+ bool get();
+ void set(bool);
+ }
+
property CppSharp::Parser::AST::CXXMethodKind MethodKind
{
CppSharp::Parser::AST::CXXMethodKind get();
diff --git a/src/CppParser/Bindings/CLI/Expr.cpp b/src/CppParser/Bindings/CLI/Expr.cpp
index 6999deb208..c0ad0d3902 100644
--- a/src/CppParser/Bindings/CLI/Expr.cpp
+++ b/src/CppParser/Bindings/CLI/Expr.cpp
@@ -197,9 +197,9 @@ CppSharp::Parser::AST::Expr::Expr(CppSharp::Parser::AST::Expr^ _0)
CppSharp::Parser::AST::Expr::operator CppSharp::Parser::AST::Expr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::Expr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::Expr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::Expr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::Expr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)_____ret, true);
}
CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Expr::Type::get()
@@ -398,9 +398,9 @@ CppSharp::Parser::AST::FullExpr::FullExpr(CppSharp::Parser::AST::FullExpr^ _0)
CppSharp::Parser::AST::FullExpr::operator CppSharp::Parser::AST::FullExpr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::FullExpr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::FullExpr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FullExpr((class ::CppSharp::CppParser::AST::FullExpr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::FullExpr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::FullExpr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::FullExpr((class ::CppSharp::CppParser::AST::FullExpr*)_____ret, true);
}
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::FullExpr::SubExpr::get()
@@ -1851,9 +1851,9 @@ CppSharp::Parser::AST::CallExpr::CallExpr(CppSharp::Parser::AST::StmtClass klass
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CallExpr::Getarguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CallExpr*)NativePtr)->getarguments(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CallExpr*)NativePtr)->getarguments(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}
void CppSharp::Parser::AST::CallExpr::Addarguments(CppSharp::Parser::AST::Expr^ s)
@@ -1882,9 +1882,9 @@ CppSharp::Parser::AST::CallExpr::CallExpr(CppSharp::Parser::AST::CallExpr^ _0)
CppSharp::Parser::AST::CallExpr::operator CppSharp::Parser::AST::CallExpr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::CallExpr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::CallExpr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CallExpr((class ::CppSharp::CppParser::AST::CallExpr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::CallExpr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::CallExpr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CallExpr((class ::CppSharp::CppParser::AST::CallExpr*)_____ret, true);
}
::System::Collections::Generic::List^ CppSharp::Parser::AST::CallExpr::Arguments::get()
@@ -1994,8 +1994,8 @@ void CppSharp::Parser::AST::CallExpr::IsCallToStdMove::set(bool value)
unsigned int CppSharp::Parser::AST::CallExpr::GetargumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CallExpr*)NativePtr)->getargumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CallExpr*)NativePtr)->getargumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::MemberExpr::MemberExpr(class ::CppSharp::CppParser::AST::MemberExpr* native)
@@ -2304,9 +2304,9 @@ CppSharp::Parser::AST::CastExpr::CastExpr(CppSharp::Parser::AST::CastExpr^ _0)
CppSharp::Parser::AST::CastExpr::operator CppSharp::Parser::AST::CastExpr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::CastExpr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::CastExpr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CastExpr((class ::CppSharp::CppParser::AST::CastExpr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::CastExpr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::CastExpr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CastExpr((class ::CppSharp::CppParser::AST::CastExpr*)_____ret, true);
}
CppSharp::Parser::AST::CastKind CppSharp::Parser::AST::CastExpr::CastKind::get()
@@ -2483,9 +2483,9 @@ CppSharp::Parser::AST::ExplicitCastExpr::ExplicitCastExpr(CppSharp::Parser::AST:
CppSharp::Parser::AST::ExplicitCastExpr::operator CppSharp::Parser::AST::ExplicitCastExpr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::ExplicitCastExpr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::ExplicitCastExpr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExplicitCastExpr((class ::CppSharp::CppParser::AST::ExplicitCastExpr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::ExplicitCastExpr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::ExplicitCastExpr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::ExplicitCastExpr((class ::CppSharp::CppParser::AST::ExplicitCastExpr*)_____ret, true);
}
CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::ExplicitCastExpr::TypeAsWritten::get()
@@ -2623,9 +2623,9 @@ CppSharp::Parser::AST::BinaryOperator::BinaryOperator(CppSharp::Parser::AST::Bin
CppSharp::Parser::AST::BinaryOperator::operator CppSharp::Parser::AST::BinaryOperator^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::BinaryOperator) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::BinaryOperator(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BinaryOperator((class ::CppSharp::CppParser::AST::BinaryOperator*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::BinaryOperator) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::BinaryOperator(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::BinaryOperator((class ::CppSharp::CppParser::AST::BinaryOperator*)_____ret, true);
}
CppSharp::Parser::SourceLocation CppSharp::Parser::AST::BinaryOperator::OperatorLoc::get()
@@ -2943,9 +2943,9 @@ CppSharp::Parser::AST::AbstractConditionalOperator::AbstractConditionalOperator(
CppSharp::Parser::AST::AbstractConditionalOperator::operator CppSharp::Parser::AST::AbstractConditionalOperator^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::AbstractConditionalOperator) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::AbstractConditionalOperator(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AbstractConditionalOperator((class ::CppSharp::CppParser::AST::AbstractConditionalOperator*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::AbstractConditionalOperator) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::AbstractConditionalOperator(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AbstractConditionalOperator((class ::CppSharp::CppParser::AST::AbstractConditionalOperator*)_____ret, true);
}
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::AbstractConditionalOperator::Cond::get()
@@ -5485,9 +5485,9 @@ CppSharp::Parser::AST::CXXNamedCastExpr::CXXNamedCastExpr(CppSharp::Parser::AST:
CppSharp::Parser::AST::CXXNamedCastExpr::operator CppSharp::Parser::AST::CXXNamedCastExpr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::CXXNamedCastExpr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::CXXNamedCastExpr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CXXNamedCastExpr((class ::CppSharp::CppParser::AST::CXXNamedCastExpr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::CXXNamedCastExpr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::CXXNamedCastExpr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CXXNamedCastExpr((class ::CppSharp::CppParser::AST::CXXNamedCastExpr*)_____ret, true);
}
::System::String^ CppSharp::Parser::AST::CXXNamedCastExpr::CastName::get()
@@ -6619,9 +6619,9 @@ CppSharp::Parser::AST::CXXConstructExpr::CXXConstructExpr(CppSharp::Parser::AST:
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CXXConstructExpr::Getarguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CXXConstructExpr*)NativePtr)->getarguments(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CXXConstructExpr*)NativePtr)->getarguments(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}
void CppSharp::Parser::AST::CXXConstructExpr::Addarguments(CppSharp::Parser::AST::Expr^ s)
@@ -6650,9 +6650,9 @@ CppSharp::Parser::AST::CXXConstructExpr::CXXConstructExpr(CppSharp::Parser::AST:
CppSharp::Parser::AST::CXXConstructExpr::operator CppSharp::Parser::AST::CXXConstructExpr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::CXXConstructExpr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::CXXConstructExpr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CXXConstructExpr((class ::CppSharp::CppParser::AST::CXXConstructExpr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::CXXConstructExpr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::CXXConstructExpr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CXXConstructExpr((class ::CppSharp::CppParser::AST::CXXConstructExpr*)_____ret, true);
}
::System::Collections::Generic::List^ CppSharp::Parser::AST::CXXConstructExpr::Arguments::get()
@@ -6764,8 +6764,8 @@ void CppSharp::Parser::AST::CXXConstructExpr::NumArgs::set(unsigned int value)
unsigned int CppSharp::Parser::AST::CXXConstructExpr::GetargumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CXXConstructExpr*)NativePtr)->getargumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CXXConstructExpr*)NativePtr)->getargumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::CXXInheritedCtorInitExpr::CXXInheritedCtorInitExpr(class ::CppSharp::CppParser::AST::CXXInheritedCtorInitExpr* native)
@@ -7002,9 +7002,9 @@ CppSharp::Parser::AST::LambdaExpr::LambdaExpr()
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::LambdaExpr::GetcaptureInits(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::LambdaExpr*)NativePtr)->getcapture_inits(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::LambdaExpr*)NativePtr)->getcapture_inits(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}
void CppSharp::Parser::AST::LambdaExpr::AddcaptureInits(CppSharp::Parser::AST::Expr^ s)
@@ -7149,8 +7149,8 @@ void CppSharp::Parser::AST::LambdaExpr::HasExplicitResultType::set(bool value)
unsigned int CppSharp::Parser::AST::LambdaExpr::GetcaptureInitsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::LambdaExpr*)NativePtr)->getcapture_initsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::LambdaExpr*)NativePtr)->getcapture_initsCount();
+ return ___ret;
}
CppSharp::Parser::AST::CXXScalarValueInitExpr::CXXScalarValueInitExpr(class ::CppSharp::CppParser::AST::CXXScalarValueInitExpr* native)
@@ -7245,9 +7245,9 @@ CppSharp::Parser::AST::CXXNewExpr::CXXNewExpr()
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CXXNewExpr::GetplacementArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->getplacement_arguments(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->getplacement_arguments(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}
void CppSharp::Parser::AST::CXXNewExpr::AddplacementArguments(CppSharp::Parser::AST::Expr^ s)
@@ -7444,8 +7444,8 @@ void CppSharp::Parser::AST::CXXNewExpr::DirectInitRange::set(CppSharp::Parser::S
unsigned int CppSharp::Parser::AST::CXXNewExpr::GetplacementArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->getplacement_argumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CXXNewExpr*)NativePtr)->getplacement_argumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::CXXDeleteExpr::CXXDeleteExpr(class ::CppSharp::CppParser::AST::CXXDeleteExpr* native)
@@ -7980,9 +7980,9 @@ CppSharp::Parser::AST::OverloadExpr::OverloadExpr(CppSharp::Parser::AST::Overloa
CppSharp::Parser::AST::OverloadExpr::operator CppSharp::Parser::AST::OverloadExpr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::OverloadExpr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::OverloadExpr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::OverloadExpr((class ::CppSharp::CppParser::AST::OverloadExpr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::OverloadExpr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::OverloadExpr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::OverloadExpr((class ::CppSharp::CppParser::AST::OverloadExpr*)_____ret, true);
}
unsigned int CppSharp::Parser::AST::OverloadExpr::NumDecls::get()
@@ -8353,9 +8353,9 @@ CppSharp::Parser::AST::CXXUnresolvedConstructExpr::CXXUnresolvedConstructExpr()
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CXXUnresolvedConstructExpr::Getarguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CXXUnresolvedConstructExpr*)NativePtr)->getarguments(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CXXUnresolvedConstructExpr*)NativePtr)->getarguments(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}
void CppSharp::Parser::AST::CXXUnresolvedConstructExpr::Addarguments(CppSharp::Parser::AST::Expr^ s)
@@ -8462,8 +8462,8 @@ void CppSharp::Parser::AST::CXXUnresolvedConstructExpr::ArgSize::set(unsigned in
unsigned int CppSharp::Parser::AST::CXXUnresolvedConstructExpr::GetargumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CXXUnresolvedConstructExpr*)NativePtr)->getargumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CXXUnresolvedConstructExpr*)NativePtr)->getargumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::CXXDependentScopeMemberExpr::CXXDependentScopeMemberExpr(class ::CppSharp::CppParser::AST::CXXDependentScopeMemberExpr* native)
@@ -9495,9 +9495,9 @@ CppSharp::Parser::AST::CoroutineSuspendExpr::CoroutineSuspendExpr(CppSharp::Pars
CppSharp::Parser::AST::CoroutineSuspendExpr::operator CppSharp::Parser::AST::CoroutineSuspendExpr^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::CoroutineSuspendExpr) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::CoroutineSuspendExpr(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CoroutineSuspendExpr((class ::CppSharp::CppParser::AST::CoroutineSuspendExpr*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::CoroutineSuspendExpr) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::CoroutineSuspendExpr(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::CoroutineSuspendExpr((class ::CppSharp::CppParser::AST::CoroutineSuspendExpr*)_____ret, true);
}
CppSharp::Parser::SourceLocation CppSharp::Parser::AST::CoroutineSuspendExpr::KeywordLoc::get()
diff --git a/src/CppParser/Bindings/CLI/Sources.cpp b/src/CppParser/Bindings/CLI/Sources.cpp
index 31fe07acf5..e47245567d 100644
--- a/src/CppParser/Bindings/CLI/Sources.cpp
+++ b/src/CppParser/Bindings/CLI/Sources.cpp
@@ -37,8 +37,8 @@ CppSharp::Parser::SourceLocation::SourceLocation(unsigned int ID)
CppSharp::Parser::SourceLocation::operator CppSharp::Parser::SourceLocation(unsigned int ID)
{
- auto __ret = (::CppSharp::CppParser::SourceLocation) ID;
- return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&__ret);
+ auto ___ret = (::CppSharp::CppParser::SourceLocation) ID;
+ return ::CppSharp::Parser::SourceLocation((struct ::CppSharp::CppParser::SourceLocation*)&___ret);
}
unsigned int CppSharp::Parser::SourceLocation::ID::get()
diff --git a/src/CppParser/Bindings/CLI/Stmt.cpp b/src/CppParser/Bindings/CLI/Stmt.cpp
index c683f4fc77..0063c14239 100644
--- a/src/CppParser/Bindings/CLI/Stmt.cpp
+++ b/src/CppParser/Bindings/CLI/Stmt.cpp
@@ -65,9 +65,9 @@ CppSharp::Parser::AST::Stmt::Stmt(CppSharp::Parser::AST::Stmt^ _0)
CppSharp::Parser::AST::Stmt::operator CppSharp::Parser::AST::Stmt^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::Stmt) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::Stmt(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Stmt((class ::CppSharp::CppParser::AST::Stmt*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::Stmt) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::Stmt(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Stmt((class ::CppSharp::CppParser::AST::Stmt*)_____ret, true);
}
::System::IntPtr CppSharp::Parser::AST::Stmt::__Instance::get()
@@ -165,9 +165,9 @@ CppSharp::Parser::AST::DeclStmt::DeclStmt()
CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::DeclStmt::Getdecls(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclStmt*)NativePtr)->getdecls(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclStmt*)NativePtr)->getdecls(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Declaration((class ::CppSharp::CppParser::AST::Declaration*)___ret);
}
void CppSharp::Parser::AST::DeclStmt::Adddecls(CppSharp::Parser::AST::Declaration^ s)
@@ -238,8 +238,8 @@ void CppSharp::Parser::AST::DeclStmt::SingleDecl::set(CppSharp::Parser::AST::Dec
unsigned int CppSharp::Parser::AST::DeclStmt::GetdeclsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DeclStmt*)NativePtr)->getdeclsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DeclStmt*)NativePtr)->getdeclsCount();
+ return ___ret;
}
CppSharp::Parser::AST::NullStmt::NullStmt(class ::CppSharp::CppParser::AST::NullStmt* native)
@@ -344,9 +344,9 @@ CppSharp::Parser::AST::CompoundStmt::CompoundStmt()
CppSharp::Parser::AST::Stmt^ CppSharp::Parser::AST::CompoundStmt::Getbody(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CompoundStmt*)NativePtr)->getbody(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Stmt((class ::CppSharp::CppParser::AST::Stmt*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CompoundStmt*)NativePtr)->getbody(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Stmt((class ::CppSharp::CppParser::AST::Stmt*)___ret);
}
void CppSharp::Parser::AST::CompoundStmt::Addbody(CppSharp::Parser::AST::Stmt^ s)
@@ -461,8 +461,8 @@ void CppSharp::Parser::AST::CompoundStmt::RBracLoc::set(CppSharp::Parser::Source
unsigned int CppSharp::Parser::AST::CompoundStmt::GetbodyCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CompoundStmt*)NativePtr)->getbodyCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CompoundStmt*)NativePtr)->getbodyCount();
+ return ___ret;
}
CppSharp::Parser::AST::SwitchCase::SwitchCase(class ::CppSharp::CppParser::AST::SwitchCase* native)
@@ -517,9 +517,9 @@ CppSharp::Parser::AST::SwitchCase::SwitchCase(CppSharp::Parser::AST::SwitchCase^
CppSharp::Parser::AST::SwitchCase::operator CppSharp::Parser::AST::SwitchCase^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::SwitchCase) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::SwitchCase(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::SwitchCase((class ::CppSharp::CppParser::AST::SwitchCase*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::SwitchCase) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::SwitchCase(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::SwitchCase((class ::CppSharp::CppParser::AST::SwitchCase*)_____ret, true);
}
CppSharp::Parser::SourceLocation CppSharp::Parser::AST::SwitchCase::KeywordLoc::get()
@@ -1802,9 +1802,9 @@ CppSharp::Parser::AST::AsmStmt::AsmStmt(CppSharp::Parser::AST::StmtClass klass)
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::AsmStmt::Getinputs(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getinputs(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getinputs(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}
void CppSharp::Parser::AST::AsmStmt::Addinputs(CppSharp::Parser::AST::Expr^ s)
@@ -1822,9 +1822,9 @@ void CppSharp::Parser::AST::AsmStmt::Clearinputs()
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::AsmStmt::Getoutputs(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getoutputs(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getoutputs(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}
void CppSharp::Parser::AST::AsmStmt::Addoutputs(CppSharp::Parser::AST::Expr^ s)
@@ -1853,9 +1853,9 @@ CppSharp::Parser::AST::AsmStmt::AsmStmt(CppSharp::Parser::AST::AsmStmt^ _0)
CppSharp::Parser::AST::AsmStmt::operator CppSharp::Parser::AST::AsmStmt^(CppSharp::Parser::AST::StmtClass klass)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::StmtClass)klass;
- auto __ret = (::CppSharp::CppParser::AST::AsmStmt) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::AsmStmt(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AsmStmt((class ::CppSharp::CppParser::AST::AsmStmt*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::AsmStmt) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::AsmStmt(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::AsmStmt((class ::CppSharp::CppParser::AST::AsmStmt*)_____ret, true);
}
::System::Collections::Generic::List^ CppSharp::Parser::AST::AsmStmt::Inputs::get()
@@ -1978,14 +1978,14 @@ void CppSharp::Parser::AST::AsmStmt::NumClobbers::set(unsigned int value)
unsigned int CppSharp::Parser::AST::AsmStmt::GetinputsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getinputsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getinputsCount();
+ return ___ret;
}
unsigned int CppSharp::Parser::AST::AsmStmt::GetoutputsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getoutputsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::AsmStmt*)NativePtr)->getoutputsCount();
+ return ___ret;
}
CppSharp::Parser::AST::GCCAsmStmt::AsmStringPiece::AsmStringPiece(class ::CppSharp::CppParser::AST::GCCAsmStmt::AsmStringPiece* native)
@@ -2683,9 +2683,9 @@ CppSharp::Parser::AST::CapturedStmt::CapturedStmt()
CppSharp::Parser::AST::Expr^ CppSharp::Parser::AST::CapturedStmt::GetcaptureInits(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CapturedStmt*)NativePtr)->getcapture_inits(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CapturedStmt*)NativePtr)->getcapture_inits(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Expr((class ::CppSharp::CppParser::AST::Expr*)___ret);
}
void CppSharp::Parser::AST::CapturedStmt::AddcaptureInits(CppSharp::Parser::AST::Expr^ s)
@@ -2756,8 +2756,8 @@ void CppSharp::Parser::AST::CapturedStmt::CaptureSize::set(unsigned int value)
unsigned int CppSharp::Parser::AST::CapturedStmt::GetcaptureInitsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::CapturedStmt*)NativePtr)->getcapture_initsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::CapturedStmt*)NativePtr)->getcapture_initsCount();
+ return ___ret;
}
CppSharp::Parser::AST::CXXCatchStmt::CXXCatchStmt(class ::CppSharp::CppParser::AST::CXXCatchStmt* native)
diff --git a/src/CppParser/Bindings/CLI/Types.cpp b/src/CppParser/Bindings/CLI/Types.cpp
index 5cd2f88b9e..7edd2e9523 100644
--- a/src/CppParser/Bindings/CLI/Types.cpp
+++ b/src/CppParser/Bindings/CLI/Types.cpp
@@ -56,9 +56,9 @@ CppSharp::Parser::AST::Type::Type(CppSharp::Parser::AST::Type^ _0)
CppSharp::Parser::AST::Type::operator CppSharp::Parser::AST::Type^(CppSharp::Parser::AST::TypeKind kind)
{
auto __arg0 = (enum ::CppSharp::CppParser::AST::TypeKind)kind;
- auto __ret = (::CppSharp::CppParser::AST::Type) __arg0;
- auto ____ret = new class ::CppSharp::CppParser::AST::Type(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Type((class ::CppSharp::CppParser::AST::Type*)____ret, true);
+ auto ___ret = (::CppSharp::CppParser::AST::Type) __arg0;
+ auto _____ret = new class ::CppSharp::CppParser::AST::Type(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Type((class ::CppSharp::CppParser::AST::Type*)_____ret, true);
}
::System::IntPtr CppSharp::Parser::AST::Type::__Instance::get()
@@ -420,9 +420,9 @@ CppSharp::Parser::AST::FunctionType::FunctionType()
CppSharp::Parser::AST::Parameter^ CppSharp::Parser::AST::FunctionType::GetParameters(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::FunctionType*)NativePtr)->getParameters(i);
- if (__ret == nullptr) return nullptr;
- return (__ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Parameter((class ::CppSharp::CppParser::AST::Parameter*)__ret);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionType*)NativePtr)->getParameters(i);
+ if (___ret == nullptr) return nullptr;
+ return (___ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::Parameter((class ::CppSharp::CppParser::AST::Parameter*)___ret);
}
void CppSharp::Parser::AST::FunctionType::AddParameters(CppSharp::Parser::AST::Parameter^ s)
@@ -505,8 +505,8 @@ void CppSharp::Parser::AST::FunctionType::Parameters::set(::System::Collections:
unsigned int CppSharp::Parser::AST::FunctionType::ParametersCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::FunctionType*)NativePtr)->getParametersCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::FunctionType*)NativePtr)->getParametersCount();
+ return ___ret;
}
CppSharp::Parser::AST::PointerType::PointerType(class ::CppSharp::CppParser::AST::PointerType* native)
@@ -961,9 +961,9 @@ CppSharp::Parser::AST::TemplateSpecializationType::TemplateSpecializationType(Cp
CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::TemplateSpecializationType::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->getArguments(i);
- auto ____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)____ret, true);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->getArguments(i);
+ auto _____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)_____ret, true);
}
void CppSharp::Parser::AST::TemplateSpecializationType::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s)
@@ -1029,8 +1029,8 @@ void CppSharp::Parser::AST::TemplateSpecializationType::Desugared::set(CppSharp:
unsigned int CppSharp::Parser::AST::TemplateSpecializationType::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::DependentTemplateSpecializationType::DependentTemplateSpecializationType(class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType* native)
@@ -1082,9 +1082,9 @@ CppSharp::Parser::AST::DependentTemplateSpecializationType::DependentTemplateSpe
CppSharp::Parser::AST::TemplateArgument^ CppSharp::Parser::AST::DependentTemplateSpecializationType::GetArguments(unsigned int i)
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->getArguments(i);
- auto ____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(__ret);
- return (____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)____ret, true);
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->getArguments(i);
+ auto _____ret = new struct ::CppSharp::CppParser::AST::TemplateArgument(___ret);
+ return (_____ret == nullptr) ? nullptr : gcnew ::CppSharp::Parser::AST::TemplateArgument((struct ::CppSharp::CppParser::AST::TemplateArgument*)_____ret, true);
}
void CppSharp::Parser::AST::DependentTemplateSpecializationType::AddArguments(CppSharp::Parser::AST::TemplateArgument^ s)
@@ -1140,8 +1140,8 @@ void CppSharp::Parser::AST::DependentTemplateSpecializationType::Desugared::set(
unsigned int CppSharp::Parser::AST::DependentTemplateSpecializationType::ArgumentsCount::get()
{
- auto __ret = ((class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->getArgumentsCount();
- return __ret;
+ auto ___ret = ((class ::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->getArgumentsCount();
+ return ___ret;
}
CppSharp::Parser::AST::TemplateParameterType::TemplateParameterType(class ::CppSharp::CppParser::AST::TemplateParameterType* native)
diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp
index 0ac2c5a0eb..38c9d198b1 100644
--- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp
+++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp
@@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST:
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment__InlineCommandComment(CppSharp::CppParser::AST::InlineCommandComment*__instance) { __instance->~InlineCommandComment(); }
class CppSharp::CppParser::AST::HTMLTagComment& (CppSharp::CppParser::AST::HTMLTagComment::*_15)(class CppSharp::CppParser::AST::HTMLTagComment&&) = &CppSharp::CppParser::AST::HTMLTagComment::operator=;
class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute& (CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::*_16)(const class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute&) = &CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::operator=;
-extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); }
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_HTMLStartTagComment___1__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment(void* __instance, const CppSharp::CppParser::AST::HTMLStartTagComment& _0) { ::new (__instance) CppSharp::CppParser::AST::HTMLStartTagComment(_0); }
class CppSharp::CppParser::AST::HTMLStartTagComment& (CppSharp::CppParser::AST::HTMLStartTagComment::*_17)(class CppSharp::CppParser::AST::HTMLStartTagComment&&) = &CppSharp::CppParser::AST::HTMLStartTagComment::operator=;
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); }
diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs
index 5fcdfc4ebd..fe8c0db530 100644
--- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs
+++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/CppSharp.CppParser.cs
@@ -13,6 +13,8 @@
[assembly:InternalsVisibleTo("CppSharp.Parser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace CppSharp
{
namespace Parser
@@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NativeLibrary(native.ToPointer(), skipVTables);
}
@@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetSymbols(uint i)
{
- var __ret = __Internal.GetSymbols(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSymbols(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSymbols(string s)
@@ -219,8 +223,8 @@ public void ClearSymbols()
public string GetDependencies(uint i)
{
- var __ret = __Internal.GetDependencies(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDependencies(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDependencies(string s)
@@ -264,8 +268,8 @@ public uint SymbolsCount
{
get
{
- var __ret = __Internal.GetSymbolsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSymbolsCount(__Instance);
+ return ___ret;
}
}
@@ -273,8 +277,8 @@ public uint DependenciesCount
{
get
{
- var __ret = __Internal.GetDependenciesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDependenciesCount(__Instance);
+ return ___ret;
}
}
}
@@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Comment(native.ToPointer(), skipVTables);
}
@@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co
internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockContentComment(native.ToPointer(), skipVTables);
}
@@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I
internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullComment(native.ToPointer(), skipVTables);
}
@@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i)
{
- var __ret = __Internal.GetBlocks(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBlocks(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -630,8 +640,8 @@ public uint BlocksCount
{
get
{
- var __ret = __Internal.GetBlocksCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBlocksCount(__Instance);
+ return ___ret;
}
}
}
@@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C
internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineContentComment(native.ToPointer(), skipVTables);
}
@@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block
internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParagraphComment(native.ToPointer(), skipVTables);
}
@@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i)
{
- var __ret = __Internal.GetContent(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetContent(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -887,8 +901,8 @@ public uint ContentCount
{
get
{
- var __ret = __Internal.GetContentCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetContentCount(__Instance);
+ return ___ret;
}
}
}
@@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -1062,6 +1078,8 @@ public string Text
internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockCommandComment(native.ToPointer(), skipVTables);
}
@@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s)
@@ -1204,8 +1222,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -1241,6 +1259,8 @@ public enum PassDirection : uint
internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B
internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public uint GetPosition(uint i)
{
- var __ret = __Internal.GetPosition(__Instance, i);
- return __ret;
+ var ___ret = __Internal.GetPosition(__Instance, i);
+ return ___ret;
}
public void AddPosition(ref uint s)
@@ -1477,8 +1499,8 @@ public uint PositionCount
{
get
{
- var __ret = __Internal.GetPositionCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPositionCount(__Instance);
+ return ___ret;
}
}
}
@@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A
internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockLineComment(native.ToPointer(), skipVTables);
}
@@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B
internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockComment(native.ToPointer(), skipVTables);
}
@@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i)
{
- var __ret = __Internal.GetLines(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLines(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -1728,8 +1754,8 @@ public uint LinesCount
{
get
{
- var __ret = __Internal.GetLinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLinesCount(__Instance);
+ return ___ret;
}
}
}
@@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl
internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimLineComment(native.ToPointer(), skipVTables);
}
@@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -2023,6 +2053,8 @@ public string Text
internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineCommandComment(native.ToPointer(), skipVTables);
}
@@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s)
@@ -2150,8 +2182,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC
internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLTagComment(native.ToPointer(), skipVTables);
}
@@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Attribute(native.ToPointer(), skipVTables);
}
@@ -2429,6 +2465,8 @@ public string Value
internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLStartTagComment(native.ToPointer(), skipVTables);
}
@@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
- __Internal.GetAttributes(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
+ __Internal.GetAttributes(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s)
@@ -2544,8 +2582,8 @@ public uint AttributesCount
{
get
{
- var __ret = __Internal.GetAttributesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetAttributesCount(__Instance);
+ return ___ret;
}
}
}
@@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML
internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLEndTagComment(native.ToPointer(), skipVTables);
}
@@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont
internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TextComment(native.ToPointer(), skipVTables);
}
@@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new RawComment(native.ToPointer(), skipVTables);
}
@@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SourceRange(native.ToPointer(), skipVTables);
}
@@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Type(native.ToPointer(), skipVTables);
}
@@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeQualifiers(native.ToPointer(), skipVTables);
}
@@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new QualifiedType(native.ToPointer(), skipVTables);
}
@@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa
internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TagType(native.ToPointer(), skipVTables);
}
@@ -3811,6 +3865,8 @@ public enum ArraySize
internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayType(native.ToPointer(), skipVTables);
}
@@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi
internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionType(native.ToPointer(), skipVTables);
}
@@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -4103,8 +4161,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -4136,6 +4194,8 @@ public enum TypeModifier
internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PointerType(native.ToPointer(), skipVTables);
}
@@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type
internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberPointerType(native.ToPointer(), skipVTables);
}
@@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis
internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefType(native.ToPointer(), skipVTables);
}
@@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I
internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedType(native.ToPointer(), skipVTables);
}
@@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis
internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DecayedType(native.ToPointer(), skipVTables);
}
@@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateArgument(native.ToPointer(), skipVTables);
}
@@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser
internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -4991,8 +5063,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha
internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -5145,8 +5219,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST.
internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterType(native.ToPointer(), skipVTables);
}
@@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp
internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables);
}
@@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST.
internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InjectedClassNameType(native.ToPointer(), skipVTables);
}
@@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type
internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentNameType(native.ToPointer(), skipVTables);
}
@@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type
internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionType(native.ToPointer(), skipVTables);
}
@@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ
internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryTransformType(native.ToPointer(), skipVTables);
}
@@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty
internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingType(native.ToPointer(), skipVTables);
}
@@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp
internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VectorType(native.ToPointer(), skipVTables);
}
@@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis
internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BuiltinType(native.ToPointer(), skipVTables);
}
@@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Declaration(native.ToPointer(), skipVTables);
}
@@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i)
{
- var __ret = __Internal.GetPreprocessedEntities(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetPreprocessedEntities(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities()
public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i)
{
- var __ret = __Internal.GetRedeclarations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetRedeclarations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount
{
get
{
- var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
+ return ___ret;
}
}
@@ -6824,8 +6918,8 @@ public uint RedeclarationsCount
{
get
{
- var __ret = __Internal.GetRedeclarationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetRedeclarationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec
internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclarationContext(native.ToPointer(), skipVTables);
}
@@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i)
{
- var __ret = __Internal.GetNamespaces(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetNamespaces(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7087,8 +7183,8 @@ public void ClearNamespaces()
public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i)
{
- var __ret = __Internal.GetEnums(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetEnums(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7108,8 +7204,8 @@ public void ClearEnums()
public global::CppSharp.Parser.AST.Function GetFunctions(uint i)
{
- var __ret = __Internal.GetFunctions(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFunctions(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7129,8 +7225,8 @@ public void ClearFunctions()
public global::CppSharp.Parser.AST.Class GetClasses(uint i)
{
- var __ret = __Internal.GetClasses(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetClasses(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7150,8 +7246,8 @@ public void ClearClasses()
public global::CppSharp.Parser.AST.Template GetTemplates(uint i)
{
- var __ret = __Internal.GetTemplates(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTemplates(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7171,8 +7267,8 @@ public void ClearTemplates()
public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i)
{
- var __ret = __Internal.GetTypedefs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypedefs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7192,8 +7288,8 @@ public void ClearTypedefs()
public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i)
{
- var __ret = __Internal.GetTypeAliases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypeAliases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7213,8 +7309,8 @@ public void ClearTypeAliases()
public global::CppSharp.Parser.AST.Variable GetVariables(uint i)
{
- var __ret = __Internal.GetVariables(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetVariables(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7234,8 +7330,8 @@ public void ClearVariables()
public global::CppSharp.Parser.AST.Friend GetFriends(uint i)
{
- var __ret = __Internal.GetFriends(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFriends(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7275,8 +7371,8 @@ public uint NamespacesCount
{
get
{
- var __ret = __Internal.GetNamespacesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetNamespacesCount(__Instance);
+ return ___ret;
}
}
@@ -7284,8 +7380,8 @@ public uint EnumsCount
{
get
{
- var __ret = __Internal.GetEnumsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetEnumsCount(__Instance);
+ return ___ret;
}
}
@@ -7293,8 +7389,8 @@ public uint FunctionsCount
{
get
{
- var __ret = __Internal.GetFunctionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFunctionsCount(__Instance);
+ return ___ret;
}
}
@@ -7302,8 +7398,8 @@ public uint ClassesCount
{
get
{
- var __ret = __Internal.GetClassesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetClassesCount(__Instance);
+ return ___ret;
}
}
@@ -7311,8 +7407,8 @@ public uint TemplatesCount
{
get
{
- var __ret = __Internal.GetTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTemplatesCount(__Instance);
+ return ___ret;
}
}
@@ -7320,8 +7416,8 @@ public uint TypedefsCount
{
get
{
- var __ret = __Internal.GetTypedefsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypedefsCount(__Instance);
+ return ___ret;
}
}
@@ -7329,8 +7425,8 @@ public uint TypeAliasesCount
{
get
{
- var __ret = __Internal.GetTypeAliasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypeAliasesCount(__Instance);
+ return ___ret;
}
}
@@ -7338,8 +7434,8 @@ public uint VariablesCount
{
get
{
- var __ret = __Internal.GetVariablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVariablesCount(__Instance);
+ return ___ret;
}
}
@@ -7347,8 +7443,8 @@ public uint FriendsCount
{
get
{
- var __ret = __Internal.GetFriendsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFriendsCount(__Instance);
+ return ___ret;
}
}
}
@@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar
internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefNameDecl(native.ToPointer(), skipVTables);
}
@@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam
internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefDecl(native.ToPointer(), skipVTables);
}
@@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD
internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAlias(native.ToPointer(), skipVTables);
}
@@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID
internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Friend(native.ToPointer(), skipVTables);
}
@@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StatementObsolete(native.ToPointer(), skipVTables);
}
@@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta
internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionObsolete(native.ToPointer(), skipVTables);
}
@@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST
internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperatorObsolete(native.ToPointer(), skipVTables);
}
@@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre
internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8429,8 +8541,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A
internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8574,8 +8688,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration,
internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parameter(native.ToPointer(), skipVTables);
}
@@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo
internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Function(native.ToPointer(), skipVTables);
}
@@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9224,15 +9342,15 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisposable
{
- [StructLayout(LayoutKind.Sequential, Size = 372)]
+ [StructLayout(LayoutKind.Sequential, Size = 376)]
public new partial struct __Internal
{
internal global::CppSharp.Parser.AST.DeclarationKind kind;
@@ -9292,6 +9410,7 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal byte isStatic;
internal byte isConst;
internal byte isExplicit;
+ internal byte isVolatile;
internal global::CppSharp.Parser.AST.CXXMethodKind methodKind;
internal byte isDefaultConstructor;
internal byte isCopyConstructor;
@@ -9324,6 +9443,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Method(native.ToPointer(), skipVTables);
}
@@ -9401,8 +9522,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i)
{
- var __ret = __Internal.GetOverriddenMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetOverriddenMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9472,6 +9593,19 @@ public bool IsExplicit
}
}
+ public bool IsVolatile
+ {
+ get
+ {
+ return ((__Internal*)__Instance)->isVolatile != 0;
+ }
+
+ set
+ {
+ ((__Internal*)__Instance)->isVolatile = (byte) (value ? 1 : 0);
+ }
+ }
+
public global::CppSharp.Parser.AST.CXXMethodKind MethodKind
{
get
@@ -9556,8 +9690,8 @@ public uint OverriddenMethodsCount
{
get
{
- var __ret = __Internal.GetOverriddenMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetOverriddenMethodsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9680,6 +9814,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis
internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Item(native.ToPointer(), skipVTables);
}
@@ -9785,6 +9921,8 @@ public ulong Value
internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Enumeration(native.ToPointer(), skipVTables);
}
@@ -9862,8 +10000,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i)
{
- var __ret = __Internal.GetItems(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetItems(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9886,9 +10024,9 @@ public void ClearItems()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, Name);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindItemByName(__Instance, __arg0);
+ var ___ret = __Internal.FindItemByName(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9937,8 +10075,8 @@ public uint ItemsCount
{
get
{
- var __ret = __Internal.GetItemsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetItemsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9987,6 +10125,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration,
internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Variable(native.ToPointer(), skipVTables);
}
@@ -10156,6 +10296,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BaseClassSpecifier(native.ToPointer(), skipVTables);
}
@@ -10329,6 +10471,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi
internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Field(native.ToPointer(), skipVTables);
}
@@ -10500,6 +10644,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De
internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AccessSpecifierDecl(native.ToPointer(), skipVTables);
}
@@ -10612,6 +10758,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableComponent(native.ToPointer(), skipVTables);
}
@@ -10777,6 +10925,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableLayout(native.ToPointer(), skipVTables);
}
@@ -10859,9 +11009,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal();
- __Internal.GetComponents(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal();
+ __Internal.GetComponents(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret);
}
public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s)
@@ -10881,8 +11031,8 @@ public uint ComponentsCount
{
get
{
- var __ret = __Internal.GetComponentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetComponentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -10927,6 +11077,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VFTableInfo(native.ToPointer(), skipVTables);
}
@@ -11102,6 +11254,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutField(native.ToPointer(), skipVTables);
}
@@ -11276,6 +11430,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutBase(native.ToPointer(), skipVTables);
}
@@ -11467,6 +11623,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassLayout(native.ToPointer(), skipVTables);
}
@@ -11549,11 +11707,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
- __Internal.GetVFTables(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
+ __Internal.GetVFTables(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s)
@@ -11571,11 +11729,11 @@ public void ClearVFTables()
public global::CppSharp.Parser.AST.LayoutField GetFields(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
- __Internal.GetFields(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
+ __Internal.GetFields(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddFields(global::CppSharp.Parser.AST.LayoutField s)
@@ -11593,11 +11751,11 @@ public void ClearFields()
public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
- __Internal.GetBases(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
+ __Internal.GetBases(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddBases(global::CppSharp.Parser.AST.LayoutBase s)
@@ -11723,8 +11881,8 @@ public uint VFTablesCount
{
get
{
- var __ret = __Internal.GetVFTablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVFTablesCount(__Instance);
+ return ___ret;
}
}
@@ -11732,8 +11890,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -11741,8 +11899,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
}
@@ -11862,6 +12020,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte
internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Class(native.ToPointer(), skipVTables);
}
@@ -11939,8 +12099,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i)
{
- var __ret = __Internal.GetBases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11960,8 +12120,8 @@ public void ClearBases()
public global::CppSharp.Parser.AST.Field GetFields(uint i)
{
- var __ret = __Internal.GetFields(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFields(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11981,8 +12141,8 @@ public void ClearFields()
public global::CppSharp.Parser.AST.Method GetMethods(uint i)
{
- var __ret = __Internal.GetMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12002,8 +12162,8 @@ public void ClearMethods()
public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i)
{
- var __ret = __Internal.GetSpecifiers(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecifiers(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12182,8 +12342,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
@@ -12191,8 +12351,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -12200,8 +12360,8 @@ public uint MethodsCount
{
get
{
- var __ret = __Internal.GetMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMethodsCount(__Instance);
+ return ___ret;
}
}
@@ -12209,8 +12369,8 @@ public uint SpecifiersCount
{
get
{
- var __ret = __Internal.GetSpecifiersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecifiersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12272,6 +12432,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration,
internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Template(native.ToPointer(), skipVTables);
}
@@ -12358,8 +12520,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12400,8 +12562,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12448,6 +12610,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp
internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAliasTemplate(native.ToPointer(), skipVTables);
}
@@ -12567,6 +12731,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl
internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12732,6 +12898,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser.
internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12891,6 +13059,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST.
internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12984,7 +13154,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable
{
- [StructLayout(LayoutKind.Sequential, Size = 144)]
+ [StructLayout(LayoutKind.Sequential, Size = 152)]
public new partial struct __Internal
{
internal global::CppSharp.Parser.AST.DeclarationKind kind;
@@ -13031,6 +13201,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A
internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NonTypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -13250,6 +13422,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template
internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplate(native.ToPointer(), skipVTables);
}
@@ -13327,8 +13501,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13351,9 +13525,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13362,9 +13536,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13372,8 +13546,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13460,6 +13634,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse
internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -13537,9 +13713,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -13586,8 +13762,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13662,6 +13838,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar
internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -13796,6 +13974,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ
internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplate(native.ToPointer(), skipVTables);
}
@@ -13873,8 +14053,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13897,9 +14077,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13907,8 +14087,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13965,6 +14145,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14047,9 +14229,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14110,8 +14292,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14177,6 +14359,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template,
internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplate(native.ToPointer(), skipVTables);
}
@@ -14254,8 +14438,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14278,9 +14462,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14289,9 +14473,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14299,8 +14483,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14364,6 +14548,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser.
internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14441,9 +14627,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14490,8 +14676,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14543,6 +14729,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp.
internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -14659,6 +14847,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS
internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingTypename(native.ToPointer(), skipVTables);
}
@@ -14787,6 +14977,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC
internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Namespace(native.ToPointer(), skipVTables);
}
@@ -14912,6 +15104,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PreprocessedEntity(native.ToPointer(), skipVTables);
}
@@ -15052,6 +15246,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro
internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroDefinition(native.ToPointer(), skipVTables);
}
@@ -15206,6 +15402,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc
internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroExpansion(native.ToPointer(), skipVTables);
}
@@ -15391,6 +15589,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp
internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TranslationUnit(native.ToPointer(), skipVTables);
}
@@ -15468,8 +15668,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i)
{
- var __ret = __Internal.GetMacros(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMacros(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15518,8 +15718,8 @@ public uint MacrosCount
{
get
{
- var __ret = __Internal.GetMacrosCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMacrosCount(__Instance);
+ return ___ret;
}
}
}
@@ -15576,6 +15776,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ASTContext(native.ToPointer(), skipVTables);
}
@@ -15661,16 +15863,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, File);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindOrCreateModule(__Instance, __arg0);
+ var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0);
__basicString0.Dispose(disposing: true, callNativeDtor:false);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i)
{
- var __ret = __Internal.GetTranslationUnits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTranslationUnits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15692,8 +15894,8 @@ public uint TranslationUnitsCount
{
get
{
- var __ret = __Internal.GetTranslationUnitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTranslationUnitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -15877,6 +16079,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Stmt(native.ToPointer(), skipVTables);
}
@@ -16057,6 +16261,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclStmt(native.ToPointer(), skipVTables);
}
@@ -16134,8 +16340,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration Getdecls(uint i)
{
- var __ret = __Internal.Getdecls(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getdecls(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16184,8 +16390,8 @@ public uint GetdeclsCount
{
get
{
- var __ret = __Internal.GetdeclsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetdeclsCount(__Instance);
+ return ___ret;
}
}
}
@@ -16211,6 +16417,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NullStmt(native.ToPointer(), skipVTables);
}
@@ -16336,6 +16544,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundStmt(native.ToPointer(), skipVTables);
}
@@ -16413,8 +16623,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Stmt Getbody(uint i)
{
- var __ret = __Internal.Getbody(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getbody(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16516,8 +16726,8 @@ public uint GetbodyCount
{
get
{
- var __ret = __Internal.GetbodyCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetbodyCount(__Instance);
+ return ___ret;
}
}
}
@@ -16547,6 +16757,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchCase(native.ToPointer(), skipVTables);
}
@@ -16686,6 +16898,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I
internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CaseStmt(native.ToPointer(), skipVTables);
}
@@ -16834,6 +17048,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase
internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DefaultStmt(native.ToPointer(), skipVTables);
}
@@ -16928,6 +17144,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo
private bool __name_OwnsNativeMemory = false;
internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LabelStmt(native.ToPointer(), skipVTables);
}
@@ -17061,6 +17279,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedStmt(native.ToPointer(), skipVTables);
}
@@ -17177,6 +17397,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IfStmt(native.ToPointer(), skipVTables);
}
@@ -17423,6 +17645,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchStmt(native.ToPointer(), skipVTables);
}
@@ -17613,6 +17837,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new WhileStmt(native.ToPointer(), skipVTables);
}
@@ -17763,6 +17989,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DoStmt(native.ToPointer(), skipVTables);
}
@@ -17915,6 +18143,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ForStmt(native.ToPointer(), skipVTables);
}
@@ -18103,6 +18333,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GotoStmt(native.ToPointer(), skipVTables);
}
@@ -18209,6 +18441,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt,
internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IndirectGotoStmt(native.ToPointer(), skipVTables);
}
@@ -18327,6 +18561,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ContinueStmt(native.ToPointer(), skipVTables);
}
@@ -18418,6 +18654,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BreakStmt(native.ToPointer(), skipVTables);
}
@@ -18510,6 +18748,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ReturnStmt(native.ToPointer(), skipVTables);
}
@@ -18653,6 +18893,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStmt(native.ToPointer(), skipVTables);
}
@@ -18739,8 +18981,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getinputs(uint i)
{
- var __ret = __Internal.Getinputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getinputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18760,8 +19002,8 @@ public void Clearinputs()
public global::CppSharp.Parser.AST.Expr Getoutputs(uint i)
{
- var __ret = __Internal.Getoutputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getoutputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18879,8 +19121,8 @@ public uint GetinputsCount
{
get
{
- var __ret = __Internal.GetinputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetinputsCount(__Instance);
+ return ___ret;
}
}
@@ -18888,8 +19130,8 @@ public uint GetoutputsCount
{
get
{
- var __ret = __Internal.GetoutputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetoutputsCount(__Instance);
+ return ___ret;
}
}
}
@@ -18971,6 +19213,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStringPiece(native.ToPointer(), skipVTables);
}
@@ -19120,6 +19364,8 @@ public sbyte Modifier
internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GCCAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19244,6 +19490,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi
internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19395,6 +19643,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID
internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHExceptStmt(native.ToPointer(), skipVTables);
}
@@ -19515,6 +19765,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHFinallyStmt(native.ToPointer(), skipVTables);
}
@@ -19625,6 +19877,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHTryStmt(native.ToPointer(), skipVTables);
}
@@ -19785,6 +20039,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHLeaveStmt(native.ToPointer(), skipVTables);
}
@@ -19938,6 +20194,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Capture(native.ToPointer(), skipVTables);
}
@@ -20094,6 +20352,8 @@ public bool CapturesVariableArrayType
internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CapturedStmt(native.ToPointer(), skipVTables);
}
@@ -20171,8 +20431,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -20221,8 +20481,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -20249,6 +20509,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXCatchStmt(native.ToPointer(), skipVTables);
}
@@ -20371,6 +20633,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTryStmt(native.ToPointer(), skipVTables);
}
@@ -20501,6 +20765,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt,
internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXForRangeStmt(native.ToPointer(), skipVTables);
}
@@ -20760,6 +21026,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST.
internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSDependentExistsStmt(native.ToPointer(), skipVTables);
}
@@ -20950,6 +21218,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CtorArgs(native.ToPointer(), skipVTables);
}
@@ -21028,6 +21298,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineBodyStmt(native.ToPointer(), skipVTables);
}
@@ -21297,6 +21569,8 @@ public enum SubStmt
internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoreturnStmt(native.ToPointer(), skipVTables);
}
@@ -21772,6 +22046,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Classification(native.ToPointer(), skipVTables);
}
@@ -21954,6 +22230,8 @@ public bool IsModifiable
internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Expr(native.ToPointer(), skipVTables);
}
@@ -22249,6 +22527,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullExpr(native.ToPointer(), skipVTables);
}
@@ -22369,6 +22649,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr,
internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConstantExpr(native.ToPointer(), skipVTables);
}
@@ -22463,6 +22745,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr,
internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OpaqueValueExpr(native.ToPointer(), skipVTables);
}
@@ -22606,6 +22890,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -22856,6 +23142,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I
internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IntegerLiteral(native.ToPointer(), skipVTables);
}
@@ -22975,6 +23263,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr
internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FixedPointLiteral(native.ToPointer(), skipVTables);
}
@@ -23104,6 +23394,8 @@ public enum CharacterKind
internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharacterLiteral(native.ToPointer(), skipVTables);
}
@@ -23237,6 +23529,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr,
internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FloatingLiteral(native.ToPointer(), skipVTables);
}
@@ -23368,6 +23662,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr,
internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImaginaryLiteral(native.ToPointer(), skipVTables);
}
@@ -23500,6 +23796,8 @@ public enum StringKind
internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StringLiteral(native.ToPointer(), skipVTables);
}
@@ -23820,6 +24118,8 @@ public enum IdentKind
internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PredefinedExpr(native.ToPointer(), skipVTables);
}
@@ -23940,6 +24240,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenExpr(native.ToPointer(), skipVTables);
}
@@ -24082,6 +24384,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID
internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryOperator(native.ToPointer(), skipVTables);
}
@@ -24321,6 +24625,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OffsetOfExpr(native.ToPointer(), skipVTables);
}
@@ -24471,6 +24777,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A
internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -24663,6 +24971,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp
internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArraySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -24850,6 +25160,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExpr(native.ToPointer(), skipVTables);
}
@@ -24936,8 +25248,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -25071,8 +25383,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -25123,6 +25435,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberExpr(native.ToPointer(), skipVTables);
}
@@ -25387,6 +25701,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex
internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -25529,6 +25845,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos
private bool __castKindName_OwnsNativeMemory = false;
internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CastExpr(native.ToPointer(), skipVTables);
}
@@ -25755,6 +26073,8 @@ public enum OnStack_t
internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25870,6 +26190,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE
internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -26000,6 +26322,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici
internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CStyleCastExpr(native.ToPointer(), skipVTables);
}
@@ -26142,6 +26466,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I
internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperator(native.ToPointer(), skipVTables);
}
@@ -26539,6 +26865,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST
internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundAssignOperator(native.ToPointer(), skipVTables);
}
@@ -26686,6 +27014,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse
internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AbstractConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26866,6 +27196,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab
internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26992,6 +27324,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser.
internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -27113,6 +27447,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AddrLabelExpr(native.ToPointer(), skipVTables);
}
@@ -27233,6 +27569,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StmtExpr(native.ToPointer(), skipVTables);
}
@@ -27367,6 +27705,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ShuffleVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27500,6 +27840,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConvertVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27639,6 +27981,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ChooseExpr(native.ToPointer(), skipVTables);
}
@@ -27839,6 +28183,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GNUNullExpr(native.ToPointer(), skipVTables);
}
@@ -27947,6 +28293,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VAArgExpr(native.ToPointer(), skipVTables);
}
@@ -28103,6 +28451,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InitListExpr(native.ToPointer(), skipVTables);
}
@@ -28401,6 +28751,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Designator(native.ToPointer(), skipVTables);
}
@@ -28655,6 +29007,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FieldDesignator(native.ToPointer(), skipVTables);
}
@@ -28763,6 +29117,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables);
}
@@ -28841,6 +29197,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitExpr(native.ToPointer(), skipVTables);
}
@@ -29013,6 +29371,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NoInitExpr(native.ToPointer(), skipVTables);
}
@@ -29106,6 +29466,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A
internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables);
}
@@ -29227,6 +29589,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr
internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitLoopExpr(native.ToPointer(), skipVTables);
}
@@ -29346,6 +29710,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitIndexExpr(native.ToPointer(), skipVTables);
}
@@ -29437,6 +29803,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST.
internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -29531,6 +29899,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenListExpr(native.ToPointer(), skipVTables);
}
@@ -29669,6 +30039,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E
internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GenericSelectionExpr(native.ToPointer(), skipVTables);
}
@@ -29871,6 +30243,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E
internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtVectorElementExpr(native.ToPointer(), skipVTables);
}
@@ -30030,6 +30404,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockExpr(native.ToPointer(), skipVTables);
}
@@ -30151,6 +30527,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsTypeExpr(native.ToPointer(), skipVTables);
}
@@ -30286,6 +30664,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr,
internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PseudoObjectExpr(native.ToPointer(), skipVTables);
}
@@ -30496,6 +30876,8 @@ public enum AtomicOp
internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AtomicExpr(native.ToPointer(), skipVTables);
}
@@ -30791,6 +31173,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypoExpr(native.ToPointer(), skipVTables);
}
@@ -30898,6 +31282,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca
internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXOperatorCallExpr(native.ToPointer(), skipVTables);
}
@@ -31073,6 +31459,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call
internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXMemberCallExpr(native.ToPointer(), skipVTables);
}
@@ -31223,6 +31611,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal
internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CUDAKernelCallExpr(native.ToPointer(), skipVTables);
}
@@ -31362,6 +31752,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli
private bool __castName_OwnsNativeMemory = false;
internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNamedCastExpr(native.ToPointer(), skipVTables);
}
@@ -31547,6 +31939,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN
internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStaticCastExpr(native.ToPointer(), skipVTables);
}
@@ -31651,6 +32045,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX
internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDynamicCastExpr(native.ToPointer(), skipVTables);
}
@@ -31767,6 +32163,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST
internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables);
}
@@ -31870,6 +32268,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa
internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstCastExpr(native.ToPointer(), skipVTables);
}
@@ -31986,6 +32386,8 @@ public enum LiteralOperatorKind
internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UserDefinedLiteral(native.ToPointer(), skipVTables);
}
@@ -32137,6 +32539,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32255,6 +32659,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST.
internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32360,6 +32766,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser.
internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables);
}
@@ -32468,6 +32876,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTypeidExpr(native.ToPointer(), skipVTables);
}
@@ -32603,6 +33013,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr
internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertyRefExpr(native.ToPointer(), skipVTables);
}
@@ -32750,6 +33162,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS
internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -32888,6 +33302,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUuidofExpr(native.ToPointer(), skipVTables);
}
@@ -33040,6 +33456,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThisExpr(native.ToPointer(), skipVTables);
}
@@ -33160,6 +33578,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThrowExpr(native.ToPointer(), skipVTables);
}
@@ -33293,6 +33713,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr
internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultArgExpr(native.ToPointer(), skipVTables);
}
@@ -33413,6 +33835,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultInitExpr(native.ToPointer(), skipVTables);
}
@@ -33533,6 +33957,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E
internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -33673,6 +34099,8 @@ public enum ConstructionKind
internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExpr(native.ToPointer(), skipVTables);
}
@@ -33759,8 +34187,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -33893,8 +34321,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -33935,6 +34363,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A
internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables);
}
@@ -34076,6 +34506,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST.
internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables);
}
@@ -34218,6 +34650,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST
internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables);
}
@@ -34352,6 +34786,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LambdaExpr(native.ToPointer(), skipVTables);
}
@@ -34429,8 +34865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -34573,8 +35009,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -34613,6 +35049,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST
internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -34754,6 +35192,8 @@ public enum InitializationStyle
internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNewExpr(native.ToPointer(), skipVTables);
}
@@ -34831,8 +35271,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i)
{
- var __ret = __Internal.GetplacementArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetplacementArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -35047,8 +35487,8 @@ public uint GetplacementArgumentsCount
{
get
{
- var __ret = __Internal.GetplacementArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetplacementArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -35092,6 +35532,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDeleteExpr(native.ToPointer(), skipVTables);
}
@@ -35273,6 +35715,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS
internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables);
}
@@ -35473,6 +35917,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35593,6 +36039,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35728,6 +36176,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex
internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35887,6 +36337,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FindResult(native.ToPointer(), skipVTables);
}
@@ -35965,6 +36417,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OverloadExpr(native.ToPointer(), skipVTables);
}
@@ -36184,6 +36638,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedLookupExpr(native.ToPointer(), skipVTables);
}
@@ -36308,6 +36764,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser.
internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -36493,6 +36951,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE
internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExprWithCleanups(native.ToPointer(), skipVTables);
}
@@ -36631,6 +37091,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser
internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables);
}
@@ -36708,8 +37170,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -36798,8 +37260,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -36850,6 +37312,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse
internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37129,6 +37593,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37316,6 +37782,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr,
internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNoexceptExpr(native.ToPointer(), skipVTables);
}
@@ -37436,6 +37904,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr
internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionExpr(native.ToPointer(), skipVTables);
}
@@ -37560,6 +38030,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I
internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SizeOfPackExpr(native.ToPointer(), skipVTables);
}
@@ -37732,6 +38204,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars
internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables);
}
@@ -37852,6 +38326,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp.
internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -37973,6 +38449,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E
internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -38124,6 +38602,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtraState(native.ToPointer(), skipVTables);
}
@@ -38202,6 +38682,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -38355,6 +38837,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFoldExpr(native.ToPointer(), skipVTables);
}
@@ -38572,6 +39056,8 @@ public enum SubExpr
internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineSuspendExpr(native.ToPointer(), skipVTables);
}
@@ -38768,6 +39254,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -38889,6 +39377,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E
internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentCoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -39028,6 +39518,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoyieldExpr(native.ToPointer(), skipVTables);
}
@@ -39199,6 +39691,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserTargetInfo(native.ToPointer(), skipVTables);
}
@@ -39871,6 +40365,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parser(native.ToPointer(), skipVTables);
}
@@ -40081,6 +40577,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppParserOptions(native.ToPointer(), skipVTables);
}
@@ -40163,8 +40661,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40179,8 +40677,8 @@ public void ClearArguments()
public string GetCompilationOptions(uint i)
{
- var __ret = __Internal.GetCompilationOptions(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetCompilationOptions(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddCompilationOptions(string s)
@@ -40195,8 +40693,8 @@ public void ClearCompilationOptions()
public string GetSourceFiles(uint i)
{
- var __ret = __Internal.GetSourceFiles(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSourceFiles(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSourceFiles(string s)
@@ -40211,8 +40709,8 @@ public void ClearSourceFiles()
public string GetIncludeDirs(uint i)
{
- var __ret = __Internal.GetIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddIncludeDirs(string s)
@@ -40227,8 +40725,8 @@ public void ClearIncludeDirs()
public string GetSystemIncludeDirs(uint i)
{
- var __ret = __Internal.GetSystemIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSystemIncludeDirs(string s)
@@ -40243,8 +40741,8 @@ public void ClearSystemIncludeDirs()
public string GetDefines(uint i)
{
- var __ret = __Internal.GetDefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDefines(string s)
@@ -40259,8 +40757,8 @@ public void ClearDefines()
public string GetUndefines(uint i)
{
- var __ret = __Internal.GetUndefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetUndefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddUndefines(string s)
@@ -40275,8 +40773,8 @@ public void ClearUndefines()
public string GetSupportedStdTypes(uint i)
{
- var __ret = __Internal.GetSupportedStdTypes(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedStdTypes(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedStdTypes(string s)
@@ -40291,8 +40789,8 @@ public void ClearSupportedStdTypes()
public string GetSupportedFunctionTemplates(uint i)
{
- var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedFunctionTemplates(string s)
@@ -40454,9 +40952,9 @@ public string ClangVersion
{
get
{
- var __ret = new global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C();
- __Internal.GetClangVersion(new IntPtr(&__ret), __Instance);
- var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret));
+ var ___ret = new global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C();
+ __Internal.GetClangVersion(new IntPtr(&___ret), __Instance);
+ var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret));
var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0);
__basicStringRet0.Dispose();
return __retString0;
@@ -40467,8 +40965,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40476,8 +40974,8 @@ public uint CompilationOptionsCount
{
get
{
- var __ret = __Internal.GetCompilationOptionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetCompilationOptionsCount(__Instance);
+ return ___ret;
}
}
@@ -40485,8 +40983,8 @@ public uint SourceFilesCount
{
get
{
- var __ret = __Internal.GetSourceFilesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSourceFilesCount(__Instance);
+ return ___ret;
}
}
@@ -40494,8 +40992,8 @@ public uint IncludeDirsCount
{
get
{
- var __ret = __Internal.GetIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40503,8 +41001,8 @@ public uint SystemIncludeDirsCount
{
get
{
- var __ret = __Internal.GetSystemIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40512,8 +41010,8 @@ public uint DefinesCount
{
get
{
- var __ret = __Internal.GetDefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40521,8 +41019,8 @@ public uint UndefinesCount
{
get
{
- var __ret = __Internal.GetUndefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetUndefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40530,8 +41028,8 @@ public uint SupportedStdTypesCount
{
get
{
- var __ret = __Internal.GetSupportedStdTypesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedStdTypesCount(__Instance);
+ return ___ret;
}
}
@@ -40539,8 +41037,8 @@ public uint SupportedFunctionTemplatesCount
{
get
{
- var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40620,6 +41118,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppLinkerOptions(native.ToPointer(), skipVTables);
}
@@ -40702,8 +41202,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40718,8 +41218,8 @@ public void ClearArguments()
public string GetLibraryDirs(uint i)
{
- var __ret = __Internal.GetLibraryDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraryDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraryDirs(string s)
@@ -40734,8 +41234,8 @@ public void ClearLibraryDirs()
public string GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraries(string s)
@@ -40752,8 +41252,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40761,8 +41261,8 @@ public uint LibraryDirsCount
{
get
{
- var __ret = __Internal.GetLibraryDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibraryDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40770,8 +41270,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40817,6 +41317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserDiagnostic(native.ToPointer(), skipVTables);
}
@@ -41029,6 +41531,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserResult(native.ToPointer(), skipVTables);
}
@@ -41111,11 +41615,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i)
{
- var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
- __Internal.GetDiagnostics(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret);
- global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
+ __Internal.GetDiagnostics(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret);
+ global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s)
@@ -41133,8 +41637,8 @@ public void ClearDiagnostics()
public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41183,8 +41687,8 @@ public uint DiagnosticsCount
{
get
{
- var __ret = __Internal.GetDiagnosticsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDiagnosticsCount(__Instance);
+ return ___ret;
}
}
@@ -41192,8 +41696,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -41242,6 +41746,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClangParser(native.ToPointer(), skipVTables);
}
@@ -41319,16 +41825,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseHeader(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseHeader(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseLibrary(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseLibrary(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41339,9 +41845,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41351,9 +41857,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString1 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString1, File);
var __arg1 = __basicString1.__Instance;
- var __ret = __Internal.Compile(__arg0, __arg1);
+ var ___ret = __Internal.Compile(__arg0, __arg1);
__basicString1.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41364,9 +41870,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
}
diff --git a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs
index a2bb601c52..c7e2920adf 100644
--- a/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs
+++ b/src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Std.cs
@@ -15,6 +15,8 @@
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace Std
{
}
@@ -86,6 +88,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static Allocator<_Tp> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Allocator<_Tp>(native.ToPointer(), skipVTables);
}
@@ -231,6 +235,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static CharTraits<_CharT> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharTraits<_CharT>(native.ToPointer(), skipVTables);
}
@@ -418,6 +424,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static BasicString<_CharT, _Traits, _Allocator> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BasicString<_CharT, _Traits, _Allocator>(native.ToPointer(), skipVTables);
}
@@ -520,16 +528,16 @@ public partial struct __Internal
public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string __s)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Assign(__arg0, __s);
- var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Assign(__arg0, __s);
+ var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static string Data(this global::Std.BasicString, global::Std.Allocator> @this)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Data(__arg0);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.Data(__arg0);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
}
}
diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser-symbols.cpp
index 04a272aee0..7f36c12992 100644
--- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser-symbols.cpp
+++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser-symbols.cpp
@@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST:
extern "C" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment__InlineCommandComment(CppSharp::CppParser::AST::InlineCommandComment*__instance) { __instance->~InlineCommandComment(); }
class CppSharp::CppParser::AST::HTMLTagComment& (CppSharp::CppParser::AST::HTMLTagComment::*_15)(class CppSharp::CppParser::AST::HTMLTagComment&&) = &CppSharp::CppParser::AST::HTMLTagComment::operator=;
class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute& (CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::*_16)(const class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute&) = &CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::operator=;
-extern "C" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); }
extern "C" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_HTMLStartTagComment___1__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment(void* __instance, const CppSharp::CppParser::AST::HTMLStartTagComment& _0) { ::new (__instance) CppSharp::CppParser::AST::HTMLStartTagComment(_0); }
class CppSharp::CppParser::AST::HTMLStartTagComment& (CppSharp::CppParser::AST::HTMLStartTagComment::*_17)(class CppSharp::CppParser::AST::HTMLStartTagComment&&) = &CppSharp::CppParser::AST::HTMLStartTagComment::operator=;
extern "C" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); }
diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs
index de89c3f760..076c7153e9 100644
--- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs
+++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/CppSharp.CppParser.cs
@@ -13,6 +13,8 @@
[assembly:InternalsVisibleTo("CppSharp.Parser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace CppSharp
{
namespace Parser
@@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NativeLibrary(native.ToPointer(), skipVTables);
}
@@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetSymbols(uint i)
{
- var __ret = __Internal.GetSymbols(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSymbols(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSymbols(string s)
@@ -219,8 +223,8 @@ public void ClearSymbols()
public string GetDependencies(uint i)
{
- var __ret = __Internal.GetDependencies(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDependencies(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDependencies(string s)
@@ -264,8 +268,8 @@ public uint SymbolsCount
{
get
{
- var __ret = __Internal.GetSymbolsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSymbolsCount(__Instance);
+ return ___ret;
}
}
@@ -273,8 +277,8 @@ public uint DependenciesCount
{
get
{
- var __ret = __Internal.GetDependenciesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDependenciesCount(__Instance);
+ return ___ret;
}
}
}
@@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Comment(native.ToPointer(), skipVTables);
}
@@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co
internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockContentComment(native.ToPointer(), skipVTables);
}
@@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I
internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullComment(native.ToPointer(), skipVTables);
}
@@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i)
{
- var __ret = __Internal.GetBlocks(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBlocks(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -630,8 +640,8 @@ public uint BlocksCount
{
get
{
- var __ret = __Internal.GetBlocksCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBlocksCount(__Instance);
+ return ___ret;
}
}
}
@@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C
internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineContentComment(native.ToPointer(), skipVTables);
}
@@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block
internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParagraphComment(native.ToPointer(), skipVTables);
}
@@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i)
{
- var __ret = __Internal.GetContent(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetContent(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -887,8 +901,8 @@ public uint ContentCount
{
get
{
- var __ret = __Internal.GetContentCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetContentCount(__Instance);
+ return ___ret;
}
}
}
@@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -1062,6 +1078,8 @@ public string Text
internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockCommandComment(native.ToPointer(), skipVTables);
}
@@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s)
@@ -1204,8 +1222,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -1241,6 +1259,8 @@ public enum PassDirection
internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B
internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public uint GetPosition(uint i)
{
- var __ret = __Internal.GetPosition(__Instance, i);
- return __ret;
+ var ___ret = __Internal.GetPosition(__Instance, i);
+ return ___ret;
}
public void AddPosition(ref uint s)
@@ -1477,8 +1499,8 @@ public uint PositionCount
{
get
{
- var __ret = __Internal.GetPositionCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPositionCount(__Instance);
+ return ___ret;
}
}
}
@@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A
internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockLineComment(native.ToPointer(), skipVTables);
}
@@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B
internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockComment(native.ToPointer(), skipVTables);
}
@@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i)
{
- var __ret = __Internal.GetLines(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLines(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -1728,8 +1754,8 @@ public uint LinesCount
{
get
{
- var __ret = __Internal.GetLinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLinesCount(__Instance);
+ return ___ret;
}
}
}
@@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl
internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimLineComment(native.ToPointer(), skipVTables);
}
@@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -2023,6 +2053,8 @@ public string Text
internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineCommandComment(native.ToPointer(), skipVTables);
}
@@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s)
@@ -2150,8 +2182,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC
internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLTagComment(native.ToPointer(), skipVTables);
}
@@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Attribute(native.ToPointer(), skipVTables);
}
@@ -2429,6 +2465,8 @@ public string Value
internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLStartTagComment(native.ToPointer(), skipVTables);
}
@@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
- __Internal.GetAttributes(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
+ __Internal.GetAttributes(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s)
@@ -2544,8 +2582,8 @@ public uint AttributesCount
{
get
{
- var __ret = __Internal.GetAttributesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetAttributesCount(__Instance);
+ return ___ret;
}
}
}
@@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML
internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLEndTagComment(native.ToPointer(), skipVTables);
}
@@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont
internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TextComment(native.ToPointer(), skipVTables);
}
@@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new RawComment(native.ToPointer(), skipVTables);
}
@@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SourceRange(native.ToPointer(), skipVTables);
}
@@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Type(native.ToPointer(), skipVTables);
}
@@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeQualifiers(native.ToPointer(), skipVTables);
}
@@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new QualifiedType(native.ToPointer(), skipVTables);
}
@@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa
internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TagType(native.ToPointer(), skipVTables);
}
@@ -3811,6 +3865,8 @@ public enum ArraySize
internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayType(native.ToPointer(), skipVTables);
}
@@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi
internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionType(native.ToPointer(), skipVTables);
}
@@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -4103,8 +4161,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -4136,6 +4194,8 @@ public enum TypeModifier
internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PointerType(native.ToPointer(), skipVTables);
}
@@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type
internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberPointerType(native.ToPointer(), skipVTables);
}
@@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis
internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefType(native.ToPointer(), skipVTables);
}
@@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I
internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedType(native.ToPointer(), skipVTables);
}
@@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis
internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DecayedType(native.ToPointer(), skipVTables);
}
@@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateArgument(native.ToPointer(), skipVTables);
}
@@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser
internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -4991,8 +5063,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha
internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -5145,8 +5219,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST.
internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterType(native.ToPointer(), skipVTables);
}
@@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp
internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables);
}
@@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST.
internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InjectedClassNameType(native.ToPointer(), skipVTables);
}
@@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type
internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentNameType(native.ToPointer(), skipVTables);
}
@@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type
internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionType(native.ToPointer(), skipVTables);
}
@@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ
internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryTransformType(native.ToPointer(), skipVTables);
}
@@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty
internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingType(native.ToPointer(), skipVTables);
}
@@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp
internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VectorType(native.ToPointer(), skipVTables);
}
@@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis
internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BuiltinType(native.ToPointer(), skipVTables);
}
@@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Declaration(native.ToPointer(), skipVTables);
}
@@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i)
{
- var __ret = __Internal.GetPreprocessedEntities(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetPreprocessedEntities(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities()
public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i)
{
- var __ret = __Internal.GetRedeclarations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetRedeclarations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount
{
get
{
- var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
+ return ___ret;
}
}
@@ -6824,8 +6918,8 @@ public uint RedeclarationsCount
{
get
{
- var __ret = __Internal.GetRedeclarationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetRedeclarationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec
internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclarationContext(native.ToPointer(), skipVTables);
}
@@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i)
{
- var __ret = __Internal.GetNamespaces(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetNamespaces(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7087,8 +7183,8 @@ public void ClearNamespaces()
public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i)
{
- var __ret = __Internal.GetEnums(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetEnums(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7108,8 +7204,8 @@ public void ClearEnums()
public global::CppSharp.Parser.AST.Function GetFunctions(uint i)
{
- var __ret = __Internal.GetFunctions(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFunctions(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7129,8 +7225,8 @@ public void ClearFunctions()
public global::CppSharp.Parser.AST.Class GetClasses(uint i)
{
- var __ret = __Internal.GetClasses(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetClasses(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7150,8 +7246,8 @@ public void ClearClasses()
public global::CppSharp.Parser.AST.Template GetTemplates(uint i)
{
- var __ret = __Internal.GetTemplates(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTemplates(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7171,8 +7267,8 @@ public void ClearTemplates()
public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i)
{
- var __ret = __Internal.GetTypedefs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypedefs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7192,8 +7288,8 @@ public void ClearTypedefs()
public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i)
{
- var __ret = __Internal.GetTypeAliases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypeAliases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7213,8 +7309,8 @@ public void ClearTypeAliases()
public global::CppSharp.Parser.AST.Variable GetVariables(uint i)
{
- var __ret = __Internal.GetVariables(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetVariables(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7234,8 +7330,8 @@ public void ClearVariables()
public global::CppSharp.Parser.AST.Friend GetFriends(uint i)
{
- var __ret = __Internal.GetFriends(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFriends(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7275,8 +7371,8 @@ public uint NamespacesCount
{
get
{
- var __ret = __Internal.GetNamespacesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetNamespacesCount(__Instance);
+ return ___ret;
}
}
@@ -7284,8 +7380,8 @@ public uint EnumsCount
{
get
{
- var __ret = __Internal.GetEnumsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetEnumsCount(__Instance);
+ return ___ret;
}
}
@@ -7293,8 +7389,8 @@ public uint FunctionsCount
{
get
{
- var __ret = __Internal.GetFunctionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFunctionsCount(__Instance);
+ return ___ret;
}
}
@@ -7302,8 +7398,8 @@ public uint ClassesCount
{
get
{
- var __ret = __Internal.GetClassesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetClassesCount(__Instance);
+ return ___ret;
}
}
@@ -7311,8 +7407,8 @@ public uint TemplatesCount
{
get
{
- var __ret = __Internal.GetTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTemplatesCount(__Instance);
+ return ___ret;
}
}
@@ -7320,8 +7416,8 @@ public uint TypedefsCount
{
get
{
- var __ret = __Internal.GetTypedefsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypedefsCount(__Instance);
+ return ___ret;
}
}
@@ -7329,8 +7425,8 @@ public uint TypeAliasesCount
{
get
{
- var __ret = __Internal.GetTypeAliasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypeAliasesCount(__Instance);
+ return ___ret;
}
}
@@ -7338,8 +7434,8 @@ public uint VariablesCount
{
get
{
- var __ret = __Internal.GetVariablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVariablesCount(__Instance);
+ return ___ret;
}
}
@@ -7347,8 +7443,8 @@ public uint FriendsCount
{
get
{
- var __ret = __Internal.GetFriendsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFriendsCount(__Instance);
+ return ___ret;
}
}
}
@@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar
internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefNameDecl(native.ToPointer(), skipVTables);
}
@@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam
internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefDecl(native.ToPointer(), skipVTables);
}
@@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD
internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAlias(native.ToPointer(), skipVTables);
}
@@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID
internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Friend(native.ToPointer(), skipVTables);
}
@@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StatementObsolete(native.ToPointer(), skipVTables);
}
@@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta
internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionObsolete(native.ToPointer(), skipVTables);
}
@@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST
internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperatorObsolete(native.ToPointer(), skipVTables);
}
@@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre
internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8429,8 +8541,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A
internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8574,8 +8688,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration,
internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parameter(native.ToPointer(), skipVTables);
}
@@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo
internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Function(native.ToPointer(), skipVTables);
}
@@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9224,15 +9342,15 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisposable
{
- [StructLayout(LayoutKind.Sequential, Size = 440)]
+ [StructLayout(LayoutKind.Sequential, Size = 444)]
public new partial struct __Internal
{
internal global::CppSharp.Parser.AST.DeclarationKind kind;
@@ -9292,6 +9410,7 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal byte isStatic;
internal byte isConst;
internal byte isExplicit;
+ internal byte isVolatile;
internal global::CppSharp.Parser.AST.CXXMethodKind methodKind;
internal byte isDefaultConstructor;
internal byte isCopyConstructor;
@@ -9324,6 +9443,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Method(native.ToPointer(), skipVTables);
}
@@ -9401,8 +9522,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i)
{
- var __ret = __Internal.GetOverriddenMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetOverriddenMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9472,6 +9593,19 @@ public bool IsExplicit
}
}
+ public bool IsVolatile
+ {
+ get
+ {
+ return ((__Internal*)__Instance)->isVolatile != 0;
+ }
+
+ set
+ {
+ ((__Internal*)__Instance)->isVolatile = (byte) (value ? 1 : 0);
+ }
+ }
+
public global::CppSharp.Parser.AST.CXXMethodKind MethodKind
{
get
@@ -9556,8 +9690,8 @@ public uint OverriddenMethodsCount
{
get
{
- var __ret = __Internal.GetOverriddenMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetOverriddenMethodsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9680,6 +9814,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis
internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Item(native.ToPointer(), skipVTables);
}
@@ -9785,6 +9921,8 @@ public ulong Value
internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Enumeration(native.ToPointer(), skipVTables);
}
@@ -9862,8 +10000,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i)
{
- var __ret = __Internal.GetItems(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetItems(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9886,9 +10024,9 @@ public void ClearItems()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, Name);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindItemByName(__Instance, __arg0);
+ var ___ret = __Internal.FindItemByName(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9937,8 +10075,8 @@ public uint ItemsCount
{
get
{
- var __ret = __Internal.GetItemsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetItemsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9987,6 +10125,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration,
internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Variable(native.ToPointer(), skipVTables);
}
@@ -10156,6 +10296,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BaseClassSpecifier(native.ToPointer(), skipVTables);
}
@@ -10329,6 +10471,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi
internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Field(native.ToPointer(), skipVTables);
}
@@ -10500,6 +10644,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De
internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AccessSpecifierDecl(native.ToPointer(), skipVTables);
}
@@ -10612,6 +10758,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableComponent(native.ToPointer(), skipVTables);
}
@@ -10777,6 +10925,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableLayout(native.ToPointer(), skipVTables);
}
@@ -10859,9 +11009,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal();
- __Internal.GetComponents(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal();
+ __Internal.GetComponents(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret);
}
public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s)
@@ -10881,8 +11031,8 @@ public uint ComponentsCount
{
get
{
- var __ret = __Internal.GetComponentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetComponentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -10927,6 +11077,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VFTableInfo(native.ToPointer(), skipVTables);
}
@@ -11102,6 +11254,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutField(native.ToPointer(), skipVTables);
}
@@ -11276,6 +11430,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutBase(native.ToPointer(), skipVTables);
}
@@ -11467,6 +11623,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassLayout(native.ToPointer(), skipVTables);
}
@@ -11549,11 +11707,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
- __Internal.GetVFTables(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
+ __Internal.GetVFTables(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s)
@@ -11571,11 +11729,11 @@ public void ClearVFTables()
public global::CppSharp.Parser.AST.LayoutField GetFields(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
- __Internal.GetFields(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
+ __Internal.GetFields(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddFields(global::CppSharp.Parser.AST.LayoutField s)
@@ -11593,11 +11751,11 @@ public void ClearFields()
public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
- __Internal.GetBases(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
+ __Internal.GetBases(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddBases(global::CppSharp.Parser.AST.LayoutBase s)
@@ -11723,8 +11881,8 @@ public uint VFTablesCount
{
get
{
- var __ret = __Internal.GetVFTablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVFTablesCount(__Instance);
+ return ___ret;
}
}
@@ -11732,8 +11890,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -11741,8 +11899,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
}
@@ -11862,6 +12020,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte
internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Class(native.ToPointer(), skipVTables);
}
@@ -11939,8 +12099,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i)
{
- var __ret = __Internal.GetBases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11960,8 +12120,8 @@ public void ClearBases()
public global::CppSharp.Parser.AST.Field GetFields(uint i)
{
- var __ret = __Internal.GetFields(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFields(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11981,8 +12141,8 @@ public void ClearFields()
public global::CppSharp.Parser.AST.Method GetMethods(uint i)
{
- var __ret = __Internal.GetMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12002,8 +12162,8 @@ public void ClearMethods()
public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i)
{
- var __ret = __Internal.GetSpecifiers(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecifiers(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12182,8 +12342,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
@@ -12191,8 +12351,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -12200,8 +12360,8 @@ public uint MethodsCount
{
get
{
- var __ret = __Internal.GetMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMethodsCount(__Instance);
+ return ___ret;
}
}
@@ -12209,8 +12369,8 @@ public uint SpecifiersCount
{
get
{
- var __ret = __Internal.GetSpecifiersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecifiersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12272,6 +12432,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration,
internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Template(native.ToPointer(), skipVTables);
}
@@ -12358,8 +12520,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12400,8 +12562,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12448,6 +12610,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp
internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAliasTemplate(native.ToPointer(), skipVTables);
}
@@ -12567,6 +12731,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl
internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12732,6 +12898,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser.
internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12891,6 +13059,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST.
internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12984,7 +13154,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable
{
- [StructLayout(LayoutKind.Sequential, Size = 180)]
+ [StructLayout(LayoutKind.Sequential, Size = 188)]
public new partial struct __Internal
{
internal global::CppSharp.Parser.AST.DeclarationKind kind;
@@ -13031,6 +13201,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A
internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NonTypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -13250,6 +13422,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template
internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplate(native.ToPointer(), skipVTables);
}
@@ -13327,8 +13501,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13351,9 +13525,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13362,9 +13536,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13372,8 +13546,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13460,6 +13634,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse
internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -13537,9 +13713,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -13586,8 +13762,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13662,6 +13838,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar
internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -13796,6 +13974,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ
internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplate(native.ToPointer(), skipVTables);
}
@@ -13873,8 +14053,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13897,9 +14077,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13907,8 +14087,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13965,6 +14145,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14047,9 +14229,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14110,8 +14292,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14177,6 +14359,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template,
internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplate(native.ToPointer(), skipVTables);
}
@@ -14254,8 +14438,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14278,9 +14462,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14289,9 +14473,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14299,8 +14483,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14364,6 +14548,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser.
internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14441,9 +14627,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14490,8 +14676,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14543,6 +14729,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp.
internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -14659,6 +14847,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS
internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingTypename(native.ToPointer(), skipVTables);
}
@@ -14788,6 +14978,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC
internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Namespace(native.ToPointer(), skipVTables);
}
@@ -14913,6 +15105,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PreprocessedEntity(native.ToPointer(), skipVTables);
}
@@ -15053,6 +15247,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro
internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroDefinition(native.ToPointer(), skipVTables);
}
@@ -15207,6 +15403,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc
internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroExpansion(native.ToPointer(), skipVTables);
}
@@ -15393,6 +15591,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp
internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TranslationUnit(native.ToPointer(), skipVTables);
}
@@ -15470,8 +15670,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i)
{
- var __ret = __Internal.GetMacros(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMacros(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15520,8 +15720,8 @@ public uint MacrosCount
{
get
{
- var __ret = __Internal.GetMacrosCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMacrosCount(__Instance);
+ return ___ret;
}
}
}
@@ -15578,6 +15778,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ASTContext(native.ToPointer(), skipVTables);
}
@@ -15663,16 +15865,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, File);
var __arg0 = *(global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C*) __basicString0.__Instance;
- var __ret = __Internal.FindOrCreateModule(__Instance, __arg0);
+ var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0);
__basicString0.Dispose(disposing: true, callNativeDtor:false);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i)
{
- var __ret = __Internal.GetTranslationUnits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTranslationUnits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15694,8 +15896,8 @@ public uint TranslationUnitsCount
{
get
{
- var __ret = __Internal.GetTranslationUnitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTranslationUnitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -15879,6 +16081,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Stmt(native.ToPointer(), skipVTables);
}
@@ -16059,6 +16263,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclStmt(native.ToPointer(), skipVTables);
}
@@ -16136,8 +16342,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration Getdecls(uint i)
{
- var __ret = __Internal.Getdecls(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getdecls(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16186,8 +16392,8 @@ public uint GetdeclsCount
{
get
{
- var __ret = __Internal.GetdeclsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetdeclsCount(__Instance);
+ return ___ret;
}
}
}
@@ -16213,6 +16419,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NullStmt(native.ToPointer(), skipVTables);
}
@@ -16338,6 +16546,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundStmt(native.ToPointer(), skipVTables);
}
@@ -16415,8 +16625,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Stmt Getbody(uint i)
{
- var __ret = __Internal.Getbody(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getbody(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16518,8 +16728,8 @@ public uint GetbodyCount
{
get
{
- var __ret = __Internal.GetbodyCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetbodyCount(__Instance);
+ return ___ret;
}
}
}
@@ -16549,6 +16759,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchCase(native.ToPointer(), skipVTables);
}
@@ -16688,6 +16900,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I
internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CaseStmt(native.ToPointer(), skipVTables);
}
@@ -16836,6 +17050,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase
internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DefaultStmt(native.ToPointer(), skipVTables);
}
@@ -16930,6 +17146,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo
private bool __name_OwnsNativeMemory = false;
internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LabelStmt(native.ToPointer(), skipVTables);
}
@@ -17063,6 +17281,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedStmt(native.ToPointer(), skipVTables);
}
@@ -17179,6 +17399,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IfStmt(native.ToPointer(), skipVTables);
}
@@ -17425,6 +17647,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchStmt(native.ToPointer(), skipVTables);
}
@@ -17615,6 +17839,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new WhileStmt(native.ToPointer(), skipVTables);
}
@@ -17765,6 +17991,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DoStmt(native.ToPointer(), skipVTables);
}
@@ -17917,6 +18145,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ForStmt(native.ToPointer(), skipVTables);
}
@@ -18105,6 +18335,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GotoStmt(native.ToPointer(), skipVTables);
}
@@ -18211,6 +18443,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt,
internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IndirectGotoStmt(native.ToPointer(), skipVTables);
}
@@ -18329,6 +18563,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ContinueStmt(native.ToPointer(), skipVTables);
}
@@ -18420,6 +18656,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BreakStmt(native.ToPointer(), skipVTables);
}
@@ -18512,6 +18750,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ReturnStmt(native.ToPointer(), skipVTables);
}
@@ -18655,6 +18895,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStmt(native.ToPointer(), skipVTables);
}
@@ -18741,8 +18983,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getinputs(uint i)
{
- var __ret = __Internal.Getinputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getinputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18762,8 +19004,8 @@ public void Clearinputs()
public global::CppSharp.Parser.AST.Expr Getoutputs(uint i)
{
- var __ret = __Internal.Getoutputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getoutputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18881,8 +19123,8 @@ public uint GetinputsCount
{
get
{
- var __ret = __Internal.GetinputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetinputsCount(__Instance);
+ return ___ret;
}
}
@@ -18890,8 +19132,8 @@ public uint GetoutputsCount
{
get
{
- var __ret = __Internal.GetoutputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetoutputsCount(__Instance);
+ return ___ret;
}
}
}
@@ -18973,6 +19215,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStringPiece(native.ToPointer(), skipVTables);
}
@@ -19122,6 +19366,8 @@ public sbyte Modifier
internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GCCAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19246,6 +19492,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi
internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19397,6 +19645,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID
internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHExceptStmt(native.ToPointer(), skipVTables);
}
@@ -19517,6 +19767,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHFinallyStmt(native.ToPointer(), skipVTables);
}
@@ -19627,6 +19879,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHTryStmt(native.ToPointer(), skipVTables);
}
@@ -19787,6 +20041,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHLeaveStmt(native.ToPointer(), skipVTables);
}
@@ -19940,6 +20196,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Capture(native.ToPointer(), skipVTables);
}
@@ -20096,6 +20354,8 @@ public bool CapturesVariableArrayType
internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CapturedStmt(native.ToPointer(), skipVTables);
}
@@ -20173,8 +20433,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -20223,8 +20483,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -20251,6 +20511,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXCatchStmt(native.ToPointer(), skipVTables);
}
@@ -20373,6 +20635,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTryStmt(native.ToPointer(), skipVTables);
}
@@ -20503,6 +20767,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt,
internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXForRangeStmt(native.ToPointer(), skipVTables);
}
@@ -20762,6 +21028,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST.
internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSDependentExistsStmt(native.ToPointer(), skipVTables);
}
@@ -20952,6 +21220,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CtorArgs(native.ToPointer(), skipVTables);
}
@@ -21030,6 +21300,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineBodyStmt(native.ToPointer(), skipVTables);
}
@@ -21299,6 +21571,8 @@ public enum SubStmt
internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoreturnStmt(native.ToPointer(), skipVTables);
}
@@ -21774,6 +22048,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Classification(native.ToPointer(), skipVTables);
}
@@ -21956,6 +22232,8 @@ public bool IsModifiable
internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Expr(native.ToPointer(), skipVTables);
}
@@ -22251,6 +22529,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullExpr(native.ToPointer(), skipVTables);
}
@@ -22371,6 +22651,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr,
internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConstantExpr(native.ToPointer(), skipVTables);
}
@@ -22466,6 +22748,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr,
internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OpaqueValueExpr(native.ToPointer(), skipVTables);
}
@@ -22609,6 +22893,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -22859,6 +23145,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I
internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IntegerLiteral(native.ToPointer(), skipVTables);
}
@@ -22978,6 +23266,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr
internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FixedPointLiteral(native.ToPointer(), skipVTables);
}
@@ -23107,6 +23397,8 @@ public enum CharacterKind
internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharacterLiteral(native.ToPointer(), skipVTables);
}
@@ -23241,6 +23533,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr,
internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FloatingLiteral(native.ToPointer(), skipVTables);
}
@@ -23372,6 +23666,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr,
internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImaginaryLiteral(native.ToPointer(), skipVTables);
}
@@ -23504,6 +23800,8 @@ public enum StringKind
internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StringLiteral(native.ToPointer(), skipVTables);
}
@@ -23824,6 +24122,8 @@ public enum IdentKind
internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PredefinedExpr(native.ToPointer(), skipVTables);
}
@@ -23944,6 +24244,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenExpr(native.ToPointer(), skipVTables);
}
@@ -24086,6 +24388,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID
internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryOperator(native.ToPointer(), skipVTables);
}
@@ -24325,6 +24629,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OffsetOfExpr(native.ToPointer(), skipVTables);
}
@@ -24475,6 +24781,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A
internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -24667,6 +24975,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp
internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArraySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -24854,6 +25164,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExpr(native.ToPointer(), skipVTables);
}
@@ -24940,8 +25252,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -25075,8 +25387,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -25127,6 +25439,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberExpr(native.ToPointer(), skipVTables);
}
@@ -25391,6 +25705,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex
internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -25533,6 +25849,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos
private bool __castKindName_OwnsNativeMemory = false;
internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CastExpr(native.ToPointer(), skipVTables);
}
@@ -25759,6 +26077,8 @@ public enum OnStack_t
internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25874,6 +26194,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE
internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -26004,6 +26326,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici
internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CStyleCastExpr(native.ToPointer(), skipVTables);
}
@@ -26146,6 +26470,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I
internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperator(native.ToPointer(), skipVTables);
}
@@ -26543,6 +26869,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST
internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundAssignOperator(native.ToPointer(), skipVTables);
}
@@ -26690,6 +27018,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse
internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AbstractConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26870,6 +27200,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab
internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26996,6 +27328,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser.
internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -27117,6 +27451,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AddrLabelExpr(native.ToPointer(), skipVTables);
}
@@ -27237,6 +27573,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StmtExpr(native.ToPointer(), skipVTables);
}
@@ -27371,6 +27709,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ShuffleVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27504,6 +27844,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConvertVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27644,6 +27986,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ChooseExpr(native.ToPointer(), skipVTables);
}
@@ -27844,6 +28188,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GNUNullExpr(native.ToPointer(), skipVTables);
}
@@ -27952,6 +28298,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VAArgExpr(native.ToPointer(), skipVTables);
}
@@ -28108,6 +28456,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InitListExpr(native.ToPointer(), skipVTables);
}
@@ -28406,6 +28756,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Designator(native.ToPointer(), skipVTables);
}
@@ -28660,6 +29012,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FieldDesignator(native.ToPointer(), skipVTables);
}
@@ -28768,6 +29122,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables);
}
@@ -28846,6 +29202,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitExpr(native.ToPointer(), skipVTables);
}
@@ -29018,6 +29376,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NoInitExpr(native.ToPointer(), skipVTables);
}
@@ -29111,6 +29471,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A
internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables);
}
@@ -29232,6 +29594,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr
internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitLoopExpr(native.ToPointer(), skipVTables);
}
@@ -29351,6 +29715,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitIndexExpr(native.ToPointer(), skipVTables);
}
@@ -29442,6 +29808,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST.
internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -29536,6 +29904,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenListExpr(native.ToPointer(), skipVTables);
}
@@ -29674,6 +30044,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E
internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GenericSelectionExpr(native.ToPointer(), skipVTables);
}
@@ -29876,6 +30248,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E
internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtVectorElementExpr(native.ToPointer(), skipVTables);
}
@@ -30035,6 +30409,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockExpr(native.ToPointer(), skipVTables);
}
@@ -30156,6 +30532,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsTypeExpr(native.ToPointer(), skipVTables);
}
@@ -30291,6 +30669,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr,
internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PseudoObjectExpr(native.ToPointer(), skipVTables);
}
@@ -30501,6 +30881,8 @@ public enum AtomicOp
internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AtomicExpr(native.ToPointer(), skipVTables);
}
@@ -30796,6 +31178,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypoExpr(native.ToPointer(), skipVTables);
}
@@ -30903,6 +31287,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca
internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXOperatorCallExpr(native.ToPointer(), skipVTables);
}
@@ -31078,6 +31464,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call
internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXMemberCallExpr(native.ToPointer(), skipVTables);
}
@@ -31228,6 +31616,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal
internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CUDAKernelCallExpr(native.ToPointer(), skipVTables);
}
@@ -31367,6 +31757,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli
private bool __castName_OwnsNativeMemory = false;
internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNamedCastExpr(native.ToPointer(), skipVTables);
}
@@ -31552,6 +31944,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN
internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStaticCastExpr(native.ToPointer(), skipVTables);
}
@@ -31656,6 +32050,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX
internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDynamicCastExpr(native.ToPointer(), skipVTables);
}
@@ -31772,6 +32168,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST
internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables);
}
@@ -31875,6 +32273,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa
internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstCastExpr(native.ToPointer(), skipVTables);
}
@@ -31991,6 +32391,8 @@ public enum LiteralOperatorKind
internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UserDefinedLiteral(native.ToPointer(), skipVTables);
}
@@ -32143,6 +32545,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32261,6 +32665,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST.
internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32366,6 +32772,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser.
internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables);
}
@@ -32474,6 +32882,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTypeidExpr(native.ToPointer(), skipVTables);
}
@@ -32610,6 +33020,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr
internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertyRefExpr(native.ToPointer(), skipVTables);
}
@@ -32757,6 +33169,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS
internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -32895,6 +33309,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUuidofExpr(native.ToPointer(), skipVTables);
}
@@ -33047,6 +33463,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThisExpr(native.ToPointer(), skipVTables);
}
@@ -33167,6 +33585,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThrowExpr(native.ToPointer(), skipVTables);
}
@@ -33300,6 +33720,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr
internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultArgExpr(native.ToPointer(), skipVTables);
}
@@ -33420,6 +33842,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultInitExpr(native.ToPointer(), skipVTables);
}
@@ -33540,6 +33964,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E
internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -33680,6 +34106,8 @@ public enum ConstructionKind
internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExpr(native.ToPointer(), skipVTables);
}
@@ -33766,8 +34194,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -33900,8 +34328,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -33943,6 +34371,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A
internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables);
}
@@ -34084,6 +34514,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST.
internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables);
}
@@ -34226,6 +34658,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST
internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables);
}
@@ -34360,6 +34794,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LambdaExpr(native.ToPointer(), skipVTables);
}
@@ -34437,8 +34873,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -34581,8 +35017,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -34621,6 +35057,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST
internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -34762,6 +35200,8 @@ public enum InitializationStyle
internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNewExpr(native.ToPointer(), skipVTables);
}
@@ -34839,8 +35279,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i)
{
- var __ret = __Internal.GetplacementArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetplacementArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -35055,8 +35495,8 @@ public uint GetplacementArgumentsCount
{
get
{
- var __ret = __Internal.GetplacementArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetplacementArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -35101,6 +35541,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDeleteExpr(native.ToPointer(), skipVTables);
}
@@ -35282,6 +35724,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS
internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables);
}
@@ -35483,6 +35927,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35603,6 +36049,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35738,6 +36186,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex
internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35897,6 +36347,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FindResult(native.ToPointer(), skipVTables);
}
@@ -35975,6 +36427,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OverloadExpr(native.ToPointer(), skipVTables);
}
@@ -36194,6 +36648,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedLookupExpr(native.ToPointer(), skipVTables);
}
@@ -36318,6 +36774,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser.
internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -36503,6 +36961,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE
internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExprWithCleanups(native.ToPointer(), skipVTables);
}
@@ -36641,6 +37101,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser
internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables);
}
@@ -36718,8 +37180,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -36808,8 +37270,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -36861,6 +37323,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse
internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37140,6 +37604,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37327,6 +37793,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr,
internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNoexceptExpr(native.ToPointer(), skipVTables);
}
@@ -37447,6 +37915,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr
internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionExpr(native.ToPointer(), skipVTables);
}
@@ -37571,6 +38041,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I
internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SizeOfPackExpr(native.ToPointer(), skipVTables);
}
@@ -37743,6 +38215,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars
internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables);
}
@@ -37863,6 +38337,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp.
internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -37984,6 +38460,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E
internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -38135,6 +38613,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtraState(native.ToPointer(), skipVTables);
}
@@ -38213,6 +38693,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -38366,6 +38848,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFoldExpr(native.ToPointer(), skipVTables);
}
@@ -38583,6 +39067,8 @@ public enum SubExpr
internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineSuspendExpr(native.ToPointer(), skipVTables);
}
@@ -38779,6 +39265,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -38900,6 +39388,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E
internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentCoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -39039,6 +39529,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoyieldExpr(native.ToPointer(), skipVTables);
}
@@ -39210,6 +39702,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserTargetInfo(native.ToPointer(), skipVTables);
}
@@ -39882,6 +40376,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parser(native.ToPointer(), skipVTables);
}
@@ -40092,6 +40588,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppParserOptions(native.ToPointer(), skipVTables);
}
@@ -40174,8 +40672,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40190,8 +40688,8 @@ public void ClearArguments()
public string GetCompilationOptions(uint i)
{
- var __ret = __Internal.GetCompilationOptions(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetCompilationOptions(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddCompilationOptions(string s)
@@ -40206,8 +40704,8 @@ public void ClearCompilationOptions()
public string GetSourceFiles(uint i)
{
- var __ret = __Internal.GetSourceFiles(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSourceFiles(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSourceFiles(string s)
@@ -40222,8 +40720,8 @@ public void ClearSourceFiles()
public string GetIncludeDirs(uint i)
{
- var __ret = __Internal.GetIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddIncludeDirs(string s)
@@ -40238,8 +40736,8 @@ public void ClearIncludeDirs()
public string GetSystemIncludeDirs(uint i)
{
- var __ret = __Internal.GetSystemIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSystemIncludeDirs(string s)
@@ -40254,8 +40752,8 @@ public void ClearSystemIncludeDirs()
public string GetDefines(uint i)
{
- var __ret = __Internal.GetDefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDefines(string s)
@@ -40270,8 +40768,8 @@ public void ClearDefines()
public string GetUndefines(uint i)
{
- var __ret = __Internal.GetUndefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetUndefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddUndefines(string s)
@@ -40286,8 +40784,8 @@ public void ClearUndefines()
public string GetSupportedStdTypes(uint i)
{
- var __ret = __Internal.GetSupportedStdTypes(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedStdTypes(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedStdTypes(string s)
@@ -40302,8 +40800,8 @@ public void ClearSupportedStdTypes()
public string GetSupportedFunctionTemplates(uint i)
{
- var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedFunctionTemplates(string s)
@@ -40465,9 +40963,9 @@ public string ClangVersion
{
get
{
- var __ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C();
- __Internal.GetClangVersion(__Instance, new IntPtr(&__ret));
- var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret));
+ var ___ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C();
+ __Internal.GetClangVersion(__Instance, new IntPtr(&___ret));
+ var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret));
var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0);
__basicStringRet0.Dispose();
return __retString0;
@@ -40478,8 +40976,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40487,8 +40985,8 @@ public uint CompilationOptionsCount
{
get
{
- var __ret = __Internal.GetCompilationOptionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetCompilationOptionsCount(__Instance);
+ return ___ret;
}
}
@@ -40496,8 +40994,8 @@ public uint SourceFilesCount
{
get
{
- var __ret = __Internal.GetSourceFilesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSourceFilesCount(__Instance);
+ return ___ret;
}
}
@@ -40505,8 +41003,8 @@ public uint IncludeDirsCount
{
get
{
- var __ret = __Internal.GetIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40514,8 +41012,8 @@ public uint SystemIncludeDirsCount
{
get
{
- var __ret = __Internal.GetSystemIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40523,8 +41021,8 @@ public uint DefinesCount
{
get
{
- var __ret = __Internal.GetDefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40532,8 +41030,8 @@ public uint UndefinesCount
{
get
{
- var __ret = __Internal.GetUndefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetUndefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40541,8 +41039,8 @@ public uint SupportedStdTypesCount
{
get
{
- var __ret = __Internal.GetSupportedStdTypesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedStdTypesCount(__Instance);
+ return ___ret;
}
}
@@ -40550,8 +41048,8 @@ public uint SupportedFunctionTemplatesCount
{
get
{
- var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40631,6 +41129,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppLinkerOptions(native.ToPointer(), skipVTables);
}
@@ -40713,8 +41213,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40729,8 +41229,8 @@ public void ClearArguments()
public string GetLibraryDirs(uint i)
{
- var __ret = __Internal.GetLibraryDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraryDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraryDirs(string s)
@@ -40745,8 +41245,8 @@ public void ClearLibraryDirs()
public string GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraries(string s)
@@ -40763,8 +41263,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40772,8 +41272,8 @@ public uint LibraryDirsCount
{
get
{
- var __ret = __Internal.GetLibraryDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibraryDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40781,8 +41281,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40828,6 +41328,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserDiagnostic(native.ToPointer(), skipVTables);
}
@@ -41040,6 +41542,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserResult(native.ToPointer(), skipVTables);
}
@@ -41122,11 +41626,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i)
{
- var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
- __Internal.GetDiagnostics(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret);
- global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
+ __Internal.GetDiagnostics(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret);
+ global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s)
@@ -41144,8 +41648,8 @@ public void ClearDiagnostics()
public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41194,8 +41698,8 @@ public uint DiagnosticsCount
{
get
{
- var __ret = __Internal.GetDiagnosticsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDiagnosticsCount(__Instance);
+ return ___ret;
}
}
@@ -41203,8 +41707,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -41253,6 +41757,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClangParser(native.ToPointer(), skipVTables);
}
@@ -41330,16 +41836,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseHeader(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseHeader(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseLibrary(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseLibrary(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41350,9 +41856,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41362,9 +41868,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString1 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString1, File);
var __arg1 = __basicString1.__Instance;
- var __ret = __Internal.Compile(__arg0, __arg1);
+ var ___ret = __Internal.Compile(__arg0, __arg1);
__basicString1.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41375,9 +41881,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
}
diff --git a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs
index a6427be1ee..7ebca0dad1 100644
--- a/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs
+++ b/src/CppParser/Bindings/CSharp/i686-pc-win32-msvc/Std.cs
@@ -15,6 +15,8 @@
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace Std
{
namespace Vector
@@ -99,6 +101,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static Allocator<_Ty> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Allocator<_Ty>(native.ToPointer(), skipVTables);
}
@@ -167,15 +171,6 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
return;
NativeToManagedMap.TryRemove(__Instance, out _);
DisposePartial(disposing);
- if (callNativeDtor)
- {
- var ___Ty = typeof(_Ty);
- if (___Ty.IsAssignableFrom(typeof(sbyte)))
- {
- return;
- }
- throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: .");
- }
if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero;
@@ -243,6 +238,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static BasicString<_Elem, _Traits, _Alloc> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BasicString<_Elem, _Traits, _Alloc>(native.ToPointer(), skipVTables);
}
@@ -389,6 +386,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static CharTraits<_Elem> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharTraits<_Elem>(native.ToPointer(), skipVTables);
}
@@ -463,16 +462,16 @@ public partial struct __Internal
public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string _Ptr)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Assign(__arg0, _Ptr);
- var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Assign(__arg0, _Ptr);
+ var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static string Data(this global::Std.BasicString, global::Std.Allocator> @this)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Data(__arg0);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.Data(__arg0);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
}
}
diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp
index 0ac2c5a0eb..38c9d198b1 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp
+++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser-symbols.cpp
@@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST:
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment__InlineCommandComment(CppSharp::CppParser::AST::InlineCommandComment*__instance) { __instance->~InlineCommandComment(); }
class CppSharp::CppParser::AST::HTMLTagComment& (CppSharp::CppParser::AST::HTMLTagComment::*_15)(class CppSharp::CppParser::AST::HTMLTagComment&&) = &CppSharp::CppParser::AST::HTMLTagComment::operator=;
class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute& (CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::*_16)(const class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute&) = &CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::operator=;
-extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); }
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_HTMLStartTagComment___1__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment(void* __instance, const CppSharp::CppParser::AST::HTMLStartTagComment& _0) { ::new (__instance) CppSharp::CppParser::AST::HTMLStartTagComment(_0); }
class CppSharp::CppParser::AST::HTMLStartTagComment& (CppSharp::CppParser::AST::HTMLStartTagComment::*_17)(class CppSharp::CppParser::AST::HTMLStartTagComment&&) = &CppSharp::CppParser::AST::HTMLStartTagComment::operator=;
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); }
diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs
index 576edd3c17..0aee6b458e 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs
+++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/CppSharp.CppParser.cs
@@ -13,6 +13,8 @@
[assembly:InternalsVisibleTo("CppSharp.Parser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace CppSharp
{
namespace Parser
@@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NativeLibrary(native.ToPointer(), skipVTables);
}
@@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetSymbols(uint i)
{
- var __ret = __Internal.GetSymbols(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSymbols(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSymbols(string s)
@@ -219,8 +223,8 @@ public void ClearSymbols()
public string GetDependencies(uint i)
{
- var __ret = __Internal.GetDependencies(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDependencies(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDependencies(string s)
@@ -264,8 +268,8 @@ public uint SymbolsCount
{
get
{
- var __ret = __Internal.GetSymbolsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSymbolsCount(__Instance);
+ return ___ret;
}
}
@@ -273,8 +277,8 @@ public uint DependenciesCount
{
get
{
- var __ret = __Internal.GetDependenciesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDependenciesCount(__Instance);
+ return ___ret;
}
}
}
@@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Comment(native.ToPointer(), skipVTables);
}
@@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co
internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockContentComment(native.ToPointer(), skipVTables);
}
@@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I
internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullComment(native.ToPointer(), skipVTables);
}
@@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i)
{
- var __ret = __Internal.GetBlocks(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBlocks(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -630,8 +640,8 @@ public uint BlocksCount
{
get
{
- var __ret = __Internal.GetBlocksCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBlocksCount(__Instance);
+ return ___ret;
}
}
}
@@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C
internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineContentComment(native.ToPointer(), skipVTables);
}
@@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block
internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParagraphComment(native.ToPointer(), skipVTables);
}
@@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i)
{
- var __ret = __Internal.GetContent(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetContent(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -887,8 +901,8 @@ public uint ContentCount
{
get
{
- var __ret = __Internal.GetContentCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetContentCount(__Instance);
+ return ___ret;
}
}
}
@@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -1062,6 +1078,8 @@ public string Text
internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockCommandComment(native.ToPointer(), skipVTables);
}
@@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s)
@@ -1204,8 +1222,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -1241,6 +1259,8 @@ public enum PassDirection : uint
internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B
internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public uint GetPosition(uint i)
{
- var __ret = __Internal.GetPosition(__Instance, i);
- return __ret;
+ var ___ret = __Internal.GetPosition(__Instance, i);
+ return ___ret;
}
public void AddPosition(ref uint s)
@@ -1477,8 +1499,8 @@ public uint PositionCount
{
get
{
- var __ret = __Internal.GetPositionCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPositionCount(__Instance);
+ return ___ret;
}
}
}
@@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A
internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockLineComment(native.ToPointer(), skipVTables);
}
@@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B
internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockComment(native.ToPointer(), skipVTables);
}
@@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i)
{
- var __ret = __Internal.GetLines(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLines(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -1728,8 +1754,8 @@ public uint LinesCount
{
get
{
- var __ret = __Internal.GetLinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLinesCount(__Instance);
+ return ___ret;
}
}
}
@@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl
internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimLineComment(native.ToPointer(), skipVTables);
}
@@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -2023,6 +2053,8 @@ public string Text
internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineCommandComment(native.ToPointer(), skipVTables);
}
@@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s)
@@ -2150,8 +2182,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC
internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLTagComment(native.ToPointer(), skipVTables);
}
@@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Attribute(native.ToPointer(), skipVTables);
}
@@ -2429,6 +2465,8 @@ public string Value
internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLStartTagComment(native.ToPointer(), skipVTables);
}
@@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
- __Internal.GetAttributes(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
+ __Internal.GetAttributes(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s)
@@ -2544,8 +2582,8 @@ public uint AttributesCount
{
get
{
- var __ret = __Internal.GetAttributesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetAttributesCount(__Instance);
+ return ___ret;
}
}
}
@@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML
internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLEndTagComment(native.ToPointer(), skipVTables);
}
@@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont
internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TextComment(native.ToPointer(), skipVTables);
}
@@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new RawComment(native.ToPointer(), skipVTables);
}
@@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SourceRange(native.ToPointer(), skipVTables);
}
@@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Type(native.ToPointer(), skipVTables);
}
@@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeQualifiers(native.ToPointer(), skipVTables);
}
@@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new QualifiedType(native.ToPointer(), skipVTables);
}
@@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa
internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TagType(native.ToPointer(), skipVTables);
}
@@ -3811,6 +3865,8 @@ public enum ArraySize
internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayType(native.ToPointer(), skipVTables);
}
@@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi
internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionType(native.ToPointer(), skipVTables);
}
@@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -4103,8 +4161,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -4136,6 +4194,8 @@ public enum TypeModifier
internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PointerType(native.ToPointer(), skipVTables);
}
@@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type
internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberPointerType(native.ToPointer(), skipVTables);
}
@@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis
internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefType(native.ToPointer(), skipVTables);
}
@@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I
internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedType(native.ToPointer(), skipVTables);
}
@@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis
internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DecayedType(native.ToPointer(), skipVTables);
}
@@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateArgument(native.ToPointer(), skipVTables);
}
@@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser
internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -4991,8 +5063,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha
internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -5145,8 +5219,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST.
internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterType(native.ToPointer(), skipVTables);
}
@@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp
internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables);
}
@@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST.
internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InjectedClassNameType(native.ToPointer(), skipVTables);
}
@@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type
internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentNameType(native.ToPointer(), skipVTables);
}
@@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type
internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionType(native.ToPointer(), skipVTables);
}
@@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ
internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryTransformType(native.ToPointer(), skipVTables);
}
@@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty
internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingType(native.ToPointer(), skipVTables);
}
@@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp
internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VectorType(native.ToPointer(), skipVTables);
}
@@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis
internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BuiltinType(native.ToPointer(), skipVTables);
}
@@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Declaration(native.ToPointer(), skipVTables);
}
@@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i)
{
- var __ret = __Internal.GetPreprocessedEntities(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetPreprocessedEntities(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities()
public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i)
{
- var __ret = __Internal.GetRedeclarations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetRedeclarations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount
{
get
{
- var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
+ return ___ret;
}
}
@@ -6824,8 +6918,8 @@ public uint RedeclarationsCount
{
get
{
- var __ret = __Internal.GetRedeclarationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetRedeclarationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec
internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclarationContext(native.ToPointer(), skipVTables);
}
@@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i)
{
- var __ret = __Internal.GetNamespaces(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetNamespaces(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7087,8 +7183,8 @@ public void ClearNamespaces()
public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i)
{
- var __ret = __Internal.GetEnums(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetEnums(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7108,8 +7204,8 @@ public void ClearEnums()
public global::CppSharp.Parser.AST.Function GetFunctions(uint i)
{
- var __ret = __Internal.GetFunctions(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFunctions(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7129,8 +7225,8 @@ public void ClearFunctions()
public global::CppSharp.Parser.AST.Class GetClasses(uint i)
{
- var __ret = __Internal.GetClasses(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetClasses(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7150,8 +7246,8 @@ public void ClearClasses()
public global::CppSharp.Parser.AST.Template GetTemplates(uint i)
{
- var __ret = __Internal.GetTemplates(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTemplates(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7171,8 +7267,8 @@ public void ClearTemplates()
public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i)
{
- var __ret = __Internal.GetTypedefs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypedefs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7192,8 +7288,8 @@ public void ClearTypedefs()
public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i)
{
- var __ret = __Internal.GetTypeAliases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypeAliases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7213,8 +7309,8 @@ public void ClearTypeAliases()
public global::CppSharp.Parser.AST.Variable GetVariables(uint i)
{
- var __ret = __Internal.GetVariables(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetVariables(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7234,8 +7330,8 @@ public void ClearVariables()
public global::CppSharp.Parser.AST.Friend GetFriends(uint i)
{
- var __ret = __Internal.GetFriends(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFriends(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7275,8 +7371,8 @@ public uint NamespacesCount
{
get
{
- var __ret = __Internal.GetNamespacesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetNamespacesCount(__Instance);
+ return ___ret;
}
}
@@ -7284,8 +7380,8 @@ public uint EnumsCount
{
get
{
- var __ret = __Internal.GetEnumsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetEnumsCount(__Instance);
+ return ___ret;
}
}
@@ -7293,8 +7389,8 @@ public uint FunctionsCount
{
get
{
- var __ret = __Internal.GetFunctionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFunctionsCount(__Instance);
+ return ___ret;
}
}
@@ -7302,8 +7398,8 @@ public uint ClassesCount
{
get
{
- var __ret = __Internal.GetClassesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetClassesCount(__Instance);
+ return ___ret;
}
}
@@ -7311,8 +7407,8 @@ public uint TemplatesCount
{
get
{
- var __ret = __Internal.GetTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTemplatesCount(__Instance);
+ return ___ret;
}
}
@@ -7320,8 +7416,8 @@ public uint TypedefsCount
{
get
{
- var __ret = __Internal.GetTypedefsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypedefsCount(__Instance);
+ return ___ret;
}
}
@@ -7329,8 +7425,8 @@ public uint TypeAliasesCount
{
get
{
- var __ret = __Internal.GetTypeAliasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypeAliasesCount(__Instance);
+ return ___ret;
}
}
@@ -7338,8 +7434,8 @@ public uint VariablesCount
{
get
{
- var __ret = __Internal.GetVariablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVariablesCount(__Instance);
+ return ___ret;
}
}
@@ -7347,8 +7443,8 @@ public uint FriendsCount
{
get
{
- var __ret = __Internal.GetFriendsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFriendsCount(__Instance);
+ return ___ret;
}
}
}
@@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar
internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefNameDecl(native.ToPointer(), skipVTables);
}
@@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam
internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefDecl(native.ToPointer(), skipVTables);
}
@@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD
internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAlias(native.ToPointer(), skipVTables);
}
@@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID
internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Friend(native.ToPointer(), skipVTables);
}
@@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StatementObsolete(native.ToPointer(), skipVTables);
}
@@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta
internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionObsolete(native.ToPointer(), skipVTables);
}
@@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST
internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperatorObsolete(native.ToPointer(), skipVTables);
}
@@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre
internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8429,8 +8541,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A
internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8574,8 +8688,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration,
internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parameter(native.ToPointer(), skipVTables);
}
@@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo
internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Function(native.ToPointer(), skipVTables);
}
@@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9224,8 +9342,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -9292,6 +9410,7 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal byte isStatic;
internal byte isConst;
internal byte isExplicit;
+ internal byte isVolatile;
internal global::CppSharp.Parser.AST.CXXMethodKind methodKind;
internal byte isDefaultConstructor;
internal byte isCopyConstructor;
@@ -9324,6 +9443,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Method(native.ToPointer(), skipVTables);
}
@@ -9401,8 +9522,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i)
{
- var __ret = __Internal.GetOverriddenMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetOverriddenMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9472,6 +9593,19 @@ public bool IsExplicit
}
}
+ public bool IsVolatile
+ {
+ get
+ {
+ return ((__Internal*)__Instance)->isVolatile != 0;
+ }
+
+ set
+ {
+ ((__Internal*)__Instance)->isVolatile = (byte) (value ? 1 : 0);
+ }
+ }
+
public global::CppSharp.Parser.AST.CXXMethodKind MethodKind
{
get
@@ -9556,8 +9690,8 @@ public uint OverriddenMethodsCount
{
get
{
- var __ret = __Internal.GetOverriddenMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetOverriddenMethodsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9680,6 +9814,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis
internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Item(native.ToPointer(), skipVTables);
}
@@ -9785,6 +9921,8 @@ public ulong Value
internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Enumeration(native.ToPointer(), skipVTables);
}
@@ -9862,8 +10000,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i)
{
- var __ret = __Internal.GetItems(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetItems(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9886,9 +10024,9 @@ public void ClearItems()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, Name);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindItemByName(__Instance, __arg0);
+ var ___ret = __Internal.FindItemByName(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9937,8 +10075,8 @@ public uint ItemsCount
{
get
{
- var __ret = __Internal.GetItemsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetItemsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9987,6 +10125,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration,
internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Variable(native.ToPointer(), skipVTables);
}
@@ -10156,6 +10296,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BaseClassSpecifier(native.ToPointer(), skipVTables);
}
@@ -10329,6 +10471,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi
internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Field(native.ToPointer(), skipVTables);
}
@@ -10500,6 +10644,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De
internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AccessSpecifierDecl(native.ToPointer(), skipVTables);
}
@@ -10612,6 +10758,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableComponent(native.ToPointer(), skipVTables);
}
@@ -10777,6 +10925,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableLayout(native.ToPointer(), skipVTables);
}
@@ -10859,8 +11009,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i)
{
- var __ret = __Internal.GetComponents(__Instance, i);
- return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret);
+ var ___ret = __Internal.GetComponents(__Instance, i);
+ return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret);
}
public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s)
@@ -10880,8 +11030,8 @@ public uint ComponentsCount
{
get
{
- var __ret = __Internal.GetComponentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetComponentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -10926,6 +11076,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VFTableInfo(native.ToPointer(), skipVTables);
}
@@ -11101,6 +11253,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutField(native.ToPointer(), skipVTables);
}
@@ -11275,6 +11429,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutBase(native.ToPointer(), skipVTables);
}
@@ -11466,6 +11622,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassLayout(native.ToPointer(), skipVTables);
}
@@ -11548,11 +11706,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
- __Internal.GetVFTables(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
+ __Internal.GetVFTables(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s)
@@ -11570,11 +11728,11 @@ public void ClearVFTables()
public global::CppSharp.Parser.AST.LayoutField GetFields(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
- __Internal.GetFields(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
+ __Internal.GetFields(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddFields(global::CppSharp.Parser.AST.LayoutField s)
@@ -11592,11 +11750,11 @@ public void ClearFields()
public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
- __Internal.GetBases(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
+ __Internal.GetBases(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddBases(global::CppSharp.Parser.AST.LayoutBase s)
@@ -11722,8 +11880,8 @@ public uint VFTablesCount
{
get
{
- var __ret = __Internal.GetVFTablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVFTablesCount(__Instance);
+ return ___ret;
}
}
@@ -11731,8 +11889,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -11740,8 +11898,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
}
@@ -11861,6 +12019,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte
internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Class(native.ToPointer(), skipVTables);
}
@@ -11938,8 +12098,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i)
{
- var __ret = __Internal.GetBases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11959,8 +12119,8 @@ public void ClearBases()
public global::CppSharp.Parser.AST.Field GetFields(uint i)
{
- var __ret = __Internal.GetFields(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFields(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11980,8 +12140,8 @@ public void ClearFields()
public global::CppSharp.Parser.AST.Method GetMethods(uint i)
{
- var __ret = __Internal.GetMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12001,8 +12161,8 @@ public void ClearMethods()
public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i)
{
- var __ret = __Internal.GetSpecifiers(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecifiers(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12181,8 +12341,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
@@ -12190,8 +12350,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -12199,8 +12359,8 @@ public uint MethodsCount
{
get
{
- var __ret = __Internal.GetMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMethodsCount(__Instance);
+ return ___ret;
}
}
@@ -12208,8 +12368,8 @@ public uint SpecifiersCount
{
get
{
- var __ret = __Internal.GetSpecifiersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecifiersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12271,6 +12431,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration,
internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Template(native.ToPointer(), skipVTables);
}
@@ -12357,8 +12519,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12399,8 +12561,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12447,6 +12609,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp
internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAliasTemplate(native.ToPointer(), skipVTables);
}
@@ -12566,6 +12730,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl
internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12731,6 +12897,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser.
internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12890,6 +13058,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST.
internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12983,7 +13153,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable
{
- [StructLayout(LayoutKind.Sequential, Size = 240)]
+ [StructLayout(LayoutKind.Sequential, Size = 256)]
public new partial struct __Internal
{
internal global::CppSharp.Parser.AST.DeclarationKind kind;
@@ -13030,6 +13200,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A
internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NonTypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -13249,6 +13421,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template
internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplate(native.ToPointer(), skipVTables);
}
@@ -13326,8 +13500,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13350,9 +13524,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13361,9 +13535,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13371,8 +13545,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13459,6 +13633,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse
internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -13536,9 +13712,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -13585,8 +13761,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13661,6 +13837,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar
internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -13795,6 +13973,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ
internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplate(native.ToPointer(), skipVTables);
}
@@ -13872,8 +14052,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13896,9 +14076,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13906,8 +14086,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13964,6 +14144,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14046,9 +14228,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14109,8 +14291,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14176,6 +14358,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template,
internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplate(native.ToPointer(), skipVTables);
}
@@ -14253,8 +14437,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14277,9 +14461,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14288,9 +14472,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14298,8 +14482,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14363,6 +14547,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser.
internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14440,9 +14626,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14489,8 +14675,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14542,6 +14728,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp.
internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -14658,6 +14846,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS
internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingTypename(native.ToPointer(), skipVTables);
}
@@ -14786,6 +14976,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC
internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Namespace(native.ToPointer(), skipVTables);
}
@@ -14911,6 +15103,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PreprocessedEntity(native.ToPointer(), skipVTables);
}
@@ -15051,6 +15245,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro
internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroDefinition(native.ToPointer(), skipVTables);
}
@@ -15205,6 +15401,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc
internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroExpansion(native.ToPointer(), skipVTables);
}
@@ -15390,6 +15588,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp
internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TranslationUnit(native.ToPointer(), skipVTables);
}
@@ -15467,8 +15667,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i)
{
- var __ret = __Internal.GetMacros(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMacros(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15517,8 +15717,8 @@ public uint MacrosCount
{
get
{
- var __ret = __Internal.GetMacrosCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMacrosCount(__Instance);
+ return ___ret;
}
}
}
@@ -15575,6 +15775,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ASTContext(native.ToPointer(), skipVTables);
}
@@ -15660,16 +15862,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, File);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindOrCreateModule(__Instance, __arg0);
+ var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0);
__basicString0.Dispose(disposing: true, callNativeDtor:false);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i)
{
- var __ret = __Internal.GetTranslationUnits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTranslationUnits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15691,8 +15893,8 @@ public uint TranslationUnitsCount
{
get
{
- var __ret = __Internal.GetTranslationUnitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTranslationUnitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -15876,6 +16078,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Stmt(native.ToPointer(), skipVTables);
}
@@ -16056,6 +16260,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclStmt(native.ToPointer(), skipVTables);
}
@@ -16133,8 +16339,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration Getdecls(uint i)
{
- var __ret = __Internal.Getdecls(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getdecls(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16183,8 +16389,8 @@ public uint GetdeclsCount
{
get
{
- var __ret = __Internal.GetdeclsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetdeclsCount(__Instance);
+ return ___ret;
}
}
}
@@ -16210,6 +16416,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NullStmt(native.ToPointer(), skipVTables);
}
@@ -16335,6 +16543,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundStmt(native.ToPointer(), skipVTables);
}
@@ -16412,8 +16622,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Stmt Getbody(uint i)
{
- var __ret = __Internal.Getbody(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getbody(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16515,8 +16725,8 @@ public uint GetbodyCount
{
get
{
- var __ret = __Internal.GetbodyCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetbodyCount(__Instance);
+ return ___ret;
}
}
}
@@ -16546,6 +16756,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchCase(native.ToPointer(), skipVTables);
}
@@ -16685,6 +16897,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I
internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CaseStmt(native.ToPointer(), skipVTables);
}
@@ -16833,6 +17047,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase
internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DefaultStmt(native.ToPointer(), skipVTables);
}
@@ -16927,6 +17143,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo
private bool __name_OwnsNativeMemory = false;
internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LabelStmt(native.ToPointer(), skipVTables);
}
@@ -17060,6 +17278,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedStmt(native.ToPointer(), skipVTables);
}
@@ -17176,6 +17396,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IfStmt(native.ToPointer(), skipVTables);
}
@@ -17422,6 +17644,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchStmt(native.ToPointer(), skipVTables);
}
@@ -17612,6 +17836,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new WhileStmt(native.ToPointer(), skipVTables);
}
@@ -17762,6 +17988,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DoStmt(native.ToPointer(), skipVTables);
}
@@ -17914,6 +18142,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ForStmt(native.ToPointer(), skipVTables);
}
@@ -18102,6 +18332,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GotoStmt(native.ToPointer(), skipVTables);
}
@@ -18208,6 +18440,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt,
internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IndirectGotoStmt(native.ToPointer(), skipVTables);
}
@@ -18326,6 +18560,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ContinueStmt(native.ToPointer(), skipVTables);
}
@@ -18417,6 +18653,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BreakStmt(native.ToPointer(), skipVTables);
}
@@ -18509,6 +18747,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ReturnStmt(native.ToPointer(), skipVTables);
}
@@ -18652,6 +18892,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStmt(native.ToPointer(), skipVTables);
}
@@ -18738,8 +18980,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getinputs(uint i)
{
- var __ret = __Internal.Getinputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getinputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18759,8 +19001,8 @@ public void Clearinputs()
public global::CppSharp.Parser.AST.Expr Getoutputs(uint i)
{
- var __ret = __Internal.Getoutputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getoutputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18878,8 +19120,8 @@ public uint GetinputsCount
{
get
{
- var __ret = __Internal.GetinputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetinputsCount(__Instance);
+ return ___ret;
}
}
@@ -18887,8 +19129,8 @@ public uint GetoutputsCount
{
get
{
- var __ret = __Internal.GetoutputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetoutputsCount(__Instance);
+ return ___ret;
}
}
}
@@ -18970,6 +19212,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStringPiece(native.ToPointer(), skipVTables);
}
@@ -19119,6 +19363,8 @@ public sbyte Modifier
internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GCCAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19243,6 +19489,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi
internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19394,6 +19642,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID
internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHExceptStmt(native.ToPointer(), skipVTables);
}
@@ -19514,6 +19764,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHFinallyStmt(native.ToPointer(), skipVTables);
}
@@ -19624,6 +19876,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHTryStmt(native.ToPointer(), skipVTables);
}
@@ -19784,6 +20038,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHLeaveStmt(native.ToPointer(), skipVTables);
}
@@ -19937,6 +20193,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Capture(native.ToPointer(), skipVTables);
}
@@ -20093,6 +20351,8 @@ public bool CapturesVariableArrayType
internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CapturedStmt(native.ToPointer(), skipVTables);
}
@@ -20170,8 +20430,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -20220,8 +20480,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -20248,6 +20508,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXCatchStmt(native.ToPointer(), skipVTables);
}
@@ -20370,6 +20632,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTryStmt(native.ToPointer(), skipVTables);
}
@@ -20500,6 +20764,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt,
internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXForRangeStmt(native.ToPointer(), skipVTables);
}
@@ -20759,6 +21025,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST.
internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSDependentExistsStmt(native.ToPointer(), skipVTables);
}
@@ -20949,6 +21217,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CtorArgs(native.ToPointer(), skipVTables);
}
@@ -21027,6 +21297,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineBodyStmt(native.ToPointer(), skipVTables);
}
@@ -21296,6 +21568,8 @@ public enum SubStmt
internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoreturnStmt(native.ToPointer(), skipVTables);
}
@@ -21771,6 +22045,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Classification(native.ToPointer(), skipVTables);
}
@@ -21953,6 +22229,8 @@ public bool IsModifiable
internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Expr(native.ToPointer(), skipVTables);
}
@@ -22248,6 +22526,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullExpr(native.ToPointer(), skipVTables);
}
@@ -22368,6 +22648,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr,
internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConstantExpr(native.ToPointer(), skipVTables);
}
@@ -22462,6 +22744,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr,
internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OpaqueValueExpr(native.ToPointer(), skipVTables);
}
@@ -22605,6 +22889,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -22855,6 +23141,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I
internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IntegerLiteral(native.ToPointer(), skipVTables);
}
@@ -22974,6 +23262,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr
internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FixedPointLiteral(native.ToPointer(), skipVTables);
}
@@ -23103,6 +23393,8 @@ public enum CharacterKind
internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharacterLiteral(native.ToPointer(), skipVTables);
}
@@ -23236,6 +23528,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr,
internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FloatingLiteral(native.ToPointer(), skipVTables);
}
@@ -23367,6 +23661,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr,
internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImaginaryLiteral(native.ToPointer(), skipVTables);
}
@@ -23499,6 +23795,8 @@ public enum StringKind
internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StringLiteral(native.ToPointer(), skipVTables);
}
@@ -23819,6 +24117,8 @@ public enum IdentKind
internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PredefinedExpr(native.ToPointer(), skipVTables);
}
@@ -23939,6 +24239,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenExpr(native.ToPointer(), skipVTables);
}
@@ -24081,6 +24383,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID
internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryOperator(native.ToPointer(), skipVTables);
}
@@ -24320,6 +24624,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OffsetOfExpr(native.ToPointer(), skipVTables);
}
@@ -24470,6 +24776,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A
internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -24662,6 +24970,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp
internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArraySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -24849,6 +25159,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExpr(native.ToPointer(), skipVTables);
}
@@ -24935,8 +25247,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -25070,8 +25382,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -25122,6 +25434,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberExpr(native.ToPointer(), skipVTables);
}
@@ -25386,6 +25700,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex
internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -25528,6 +25844,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos
private bool __castKindName_OwnsNativeMemory = false;
internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CastExpr(native.ToPointer(), skipVTables);
}
@@ -25754,6 +26072,8 @@ public enum OnStack_t
internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25869,6 +26189,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE
internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25999,6 +26321,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici
internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CStyleCastExpr(native.ToPointer(), skipVTables);
}
@@ -26141,6 +26465,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I
internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperator(native.ToPointer(), skipVTables);
}
@@ -26538,6 +26864,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST
internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundAssignOperator(native.ToPointer(), skipVTables);
}
@@ -26685,6 +27013,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse
internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AbstractConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26865,6 +27195,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab
internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26991,6 +27323,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser.
internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -27112,6 +27446,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AddrLabelExpr(native.ToPointer(), skipVTables);
}
@@ -27232,6 +27568,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StmtExpr(native.ToPointer(), skipVTables);
}
@@ -27366,6 +27704,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ShuffleVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27499,6 +27839,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConvertVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27638,6 +27980,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ChooseExpr(native.ToPointer(), skipVTables);
}
@@ -27838,6 +28182,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GNUNullExpr(native.ToPointer(), skipVTables);
}
@@ -27946,6 +28292,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VAArgExpr(native.ToPointer(), skipVTables);
}
@@ -28102,6 +28450,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InitListExpr(native.ToPointer(), skipVTables);
}
@@ -28400,6 +28750,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Designator(native.ToPointer(), skipVTables);
}
@@ -28654,6 +29006,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FieldDesignator(native.ToPointer(), skipVTables);
}
@@ -28762,6 +29116,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables);
}
@@ -28840,6 +29196,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitExpr(native.ToPointer(), skipVTables);
}
@@ -29012,6 +29370,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NoInitExpr(native.ToPointer(), skipVTables);
}
@@ -29105,6 +29465,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A
internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables);
}
@@ -29226,6 +29588,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr
internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitLoopExpr(native.ToPointer(), skipVTables);
}
@@ -29345,6 +29709,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitIndexExpr(native.ToPointer(), skipVTables);
}
@@ -29436,6 +29802,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST.
internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -29530,6 +29898,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenListExpr(native.ToPointer(), skipVTables);
}
@@ -29668,6 +30038,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E
internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GenericSelectionExpr(native.ToPointer(), skipVTables);
}
@@ -29870,6 +30242,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E
internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtVectorElementExpr(native.ToPointer(), skipVTables);
}
@@ -30029,6 +30403,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockExpr(native.ToPointer(), skipVTables);
}
@@ -30150,6 +30526,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsTypeExpr(native.ToPointer(), skipVTables);
}
@@ -30285,6 +30663,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr,
internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PseudoObjectExpr(native.ToPointer(), skipVTables);
}
@@ -30495,6 +30875,8 @@ public enum AtomicOp
internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AtomicExpr(native.ToPointer(), skipVTables);
}
@@ -30790,6 +31172,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypoExpr(native.ToPointer(), skipVTables);
}
@@ -30897,6 +31281,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca
internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXOperatorCallExpr(native.ToPointer(), skipVTables);
}
@@ -31072,6 +31458,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call
internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXMemberCallExpr(native.ToPointer(), skipVTables);
}
@@ -31222,6 +31610,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal
internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CUDAKernelCallExpr(native.ToPointer(), skipVTables);
}
@@ -31361,6 +31751,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli
private bool __castName_OwnsNativeMemory = false;
internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNamedCastExpr(native.ToPointer(), skipVTables);
}
@@ -31546,6 +31938,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN
internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStaticCastExpr(native.ToPointer(), skipVTables);
}
@@ -31650,6 +32044,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX
internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDynamicCastExpr(native.ToPointer(), skipVTables);
}
@@ -31766,6 +32162,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST
internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables);
}
@@ -31869,6 +32267,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa
internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstCastExpr(native.ToPointer(), skipVTables);
}
@@ -31985,6 +32385,8 @@ public enum LiteralOperatorKind
internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UserDefinedLiteral(native.ToPointer(), skipVTables);
}
@@ -32136,6 +32538,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32254,6 +32658,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST.
internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32359,6 +32765,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser.
internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables);
}
@@ -32467,6 +32875,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTypeidExpr(native.ToPointer(), skipVTables);
}
@@ -32602,6 +33012,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr
internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertyRefExpr(native.ToPointer(), skipVTables);
}
@@ -32749,6 +33161,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS
internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -32887,6 +33301,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUuidofExpr(native.ToPointer(), skipVTables);
}
@@ -33039,6 +33455,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThisExpr(native.ToPointer(), skipVTables);
}
@@ -33159,6 +33577,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThrowExpr(native.ToPointer(), skipVTables);
}
@@ -33292,6 +33712,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr
internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultArgExpr(native.ToPointer(), skipVTables);
}
@@ -33412,6 +33834,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultInitExpr(native.ToPointer(), skipVTables);
}
@@ -33532,6 +33956,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E
internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -33672,6 +34098,8 @@ public enum ConstructionKind
internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExpr(native.ToPointer(), skipVTables);
}
@@ -33758,8 +34186,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -33892,8 +34320,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -33934,6 +34362,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A
internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables);
}
@@ -34075,6 +34505,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST.
internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables);
}
@@ -34217,6 +34649,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST
internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables);
}
@@ -34351,6 +34785,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LambdaExpr(native.ToPointer(), skipVTables);
}
@@ -34428,8 +34864,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -34572,8 +35008,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -34612,6 +35048,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST
internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -34753,6 +35191,8 @@ public enum InitializationStyle
internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNewExpr(native.ToPointer(), skipVTables);
}
@@ -34830,8 +35270,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i)
{
- var __ret = __Internal.GetplacementArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetplacementArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -35046,8 +35486,8 @@ public uint GetplacementArgumentsCount
{
get
{
- var __ret = __Internal.GetplacementArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetplacementArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -35091,6 +35531,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDeleteExpr(native.ToPointer(), skipVTables);
}
@@ -35272,6 +35714,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS
internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables);
}
@@ -35472,6 +35916,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35592,6 +36038,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35727,6 +36175,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex
internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35886,6 +36336,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FindResult(native.ToPointer(), skipVTables);
}
@@ -35964,6 +36416,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OverloadExpr(native.ToPointer(), skipVTables);
}
@@ -36183,6 +36637,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedLookupExpr(native.ToPointer(), skipVTables);
}
@@ -36307,6 +36763,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser.
internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -36492,6 +36950,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE
internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExprWithCleanups(native.ToPointer(), skipVTables);
}
@@ -36630,6 +37090,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser
internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables);
}
@@ -36707,8 +37169,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -36797,8 +37259,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -36849,6 +37311,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse
internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37128,6 +37592,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37315,6 +37781,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr,
internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNoexceptExpr(native.ToPointer(), skipVTables);
}
@@ -37435,6 +37903,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr
internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionExpr(native.ToPointer(), skipVTables);
}
@@ -37559,6 +38029,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I
internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SizeOfPackExpr(native.ToPointer(), skipVTables);
}
@@ -37731,6 +38203,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars
internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables);
}
@@ -37851,6 +38325,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp.
internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -37972,6 +38448,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E
internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -38123,6 +38601,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtraState(native.ToPointer(), skipVTables);
}
@@ -38201,6 +38681,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -38354,6 +38836,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFoldExpr(native.ToPointer(), skipVTables);
}
@@ -38571,6 +39055,8 @@ public enum SubExpr
internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineSuspendExpr(native.ToPointer(), skipVTables);
}
@@ -38767,6 +39253,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -38888,6 +39376,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E
internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentCoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -39027,6 +39517,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoyieldExpr(native.ToPointer(), skipVTables);
}
@@ -39198,6 +39690,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserTargetInfo(native.ToPointer(), skipVTables);
}
@@ -39870,6 +40364,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parser(native.ToPointer(), skipVTables);
}
@@ -40080,6 +40576,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppParserOptions(native.ToPointer(), skipVTables);
}
@@ -40162,8 +40660,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40178,8 +40676,8 @@ public void ClearArguments()
public string GetCompilationOptions(uint i)
{
- var __ret = __Internal.GetCompilationOptions(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetCompilationOptions(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddCompilationOptions(string s)
@@ -40194,8 +40692,8 @@ public void ClearCompilationOptions()
public string GetSourceFiles(uint i)
{
- var __ret = __Internal.GetSourceFiles(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSourceFiles(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSourceFiles(string s)
@@ -40210,8 +40708,8 @@ public void ClearSourceFiles()
public string GetIncludeDirs(uint i)
{
- var __ret = __Internal.GetIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddIncludeDirs(string s)
@@ -40226,8 +40724,8 @@ public void ClearIncludeDirs()
public string GetSystemIncludeDirs(uint i)
{
- var __ret = __Internal.GetSystemIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSystemIncludeDirs(string s)
@@ -40242,8 +40740,8 @@ public void ClearSystemIncludeDirs()
public string GetDefines(uint i)
{
- var __ret = __Internal.GetDefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDefines(string s)
@@ -40258,8 +40756,8 @@ public void ClearDefines()
public string GetUndefines(uint i)
{
- var __ret = __Internal.GetUndefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetUndefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddUndefines(string s)
@@ -40274,8 +40772,8 @@ public void ClearUndefines()
public string GetSupportedStdTypes(uint i)
{
- var __ret = __Internal.GetSupportedStdTypes(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedStdTypes(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedStdTypes(string s)
@@ -40290,8 +40788,8 @@ public void ClearSupportedStdTypes()
public string GetSupportedFunctionTemplates(uint i)
{
- var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedFunctionTemplates(string s)
@@ -40453,9 +40951,9 @@ public string ClangVersion
{
get
{
- var __ret = new global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C();
- __Internal.GetClangVersion(new IntPtr(&__ret), __Instance);
- var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret));
+ var ___ret = new global::Std.BasicString.__Internalc__N_std_N___1_S_basic_string__C___N_std_N___1_S_char_traits__C___N_std_N___1_S_allocator__C();
+ __Internal.GetClangVersion(new IntPtr(&___ret), __Instance);
+ var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret));
var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0);
__basicStringRet0.Dispose();
return __retString0;
@@ -40466,8 +40964,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40475,8 +40973,8 @@ public uint CompilationOptionsCount
{
get
{
- var __ret = __Internal.GetCompilationOptionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetCompilationOptionsCount(__Instance);
+ return ___ret;
}
}
@@ -40484,8 +40982,8 @@ public uint SourceFilesCount
{
get
{
- var __ret = __Internal.GetSourceFilesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSourceFilesCount(__Instance);
+ return ___ret;
}
}
@@ -40493,8 +40991,8 @@ public uint IncludeDirsCount
{
get
{
- var __ret = __Internal.GetIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40502,8 +41000,8 @@ public uint SystemIncludeDirsCount
{
get
{
- var __ret = __Internal.GetSystemIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40511,8 +41009,8 @@ public uint DefinesCount
{
get
{
- var __ret = __Internal.GetDefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40520,8 +41018,8 @@ public uint UndefinesCount
{
get
{
- var __ret = __Internal.GetUndefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetUndefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40529,8 +41027,8 @@ public uint SupportedStdTypesCount
{
get
{
- var __ret = __Internal.GetSupportedStdTypesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedStdTypesCount(__Instance);
+ return ___ret;
}
}
@@ -40538,8 +41036,8 @@ public uint SupportedFunctionTemplatesCount
{
get
{
- var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40619,6 +41117,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppLinkerOptions(native.ToPointer(), skipVTables);
}
@@ -40701,8 +41201,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40717,8 +41217,8 @@ public void ClearArguments()
public string GetLibraryDirs(uint i)
{
- var __ret = __Internal.GetLibraryDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraryDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraryDirs(string s)
@@ -40733,8 +41233,8 @@ public void ClearLibraryDirs()
public string GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraries(string s)
@@ -40751,8 +41251,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40760,8 +41260,8 @@ public uint LibraryDirsCount
{
get
{
- var __ret = __Internal.GetLibraryDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibraryDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40769,8 +41269,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40816,6 +41316,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserDiagnostic(native.ToPointer(), skipVTables);
}
@@ -41028,6 +41530,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserResult(native.ToPointer(), skipVTables);
}
@@ -41110,11 +41614,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i)
{
- var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
- __Internal.GetDiagnostics(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret);
- global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
+ __Internal.GetDiagnostics(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret);
+ global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s)
@@ -41132,8 +41636,8 @@ public void ClearDiagnostics()
public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41182,8 +41686,8 @@ public uint DiagnosticsCount
{
get
{
- var __ret = __Internal.GetDiagnosticsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDiagnosticsCount(__Instance);
+ return ___ret;
}
}
@@ -41191,8 +41695,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -41241,6 +41745,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClangParser(native.ToPointer(), skipVTables);
}
@@ -41318,16 +41824,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseHeader(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseHeader(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseLibrary(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseLibrary(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41338,9 +41844,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41350,9 +41856,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString1 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString1, File);
var __arg1 = __basicString1.__Instance;
- var __ret = __Internal.Compile(__arg0, __arg1);
+ var ___ret = __Internal.Compile(__arg0, __arg1);
__basicString1.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41363,9 +41869,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
}
diff --git a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs
index c3b49d4bb0..086462296a 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs
+++ b/src/CppParser/Bindings/CSharp/x86_64-apple-darwin12.4.0/Std.cs
@@ -15,6 +15,8 @@
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace Std
{
}
@@ -86,6 +88,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static Allocator<_Tp> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Allocator<_Tp>(native.ToPointer(), skipVTables);
}
@@ -231,6 +235,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static CharTraits<_CharT> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharTraits<_CharT>(native.ToPointer(), skipVTables);
}
@@ -418,6 +424,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static BasicString<_CharT, _Traits, _Allocator> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BasicString<_CharT, _Traits, _Allocator>(native.ToPointer(), skipVTables);
}
@@ -520,16 +528,16 @@ public partial struct __Internal
public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string __s)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Assign(__arg0, __s);
- var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Assign(__arg0, __s);
+ var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static string Data(this global::Std.BasicString, global::Std.Allocator> @this)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Data(__arg0);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.Data(__arg0);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
}
}
diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser-symbols.cpp
index 0ac2c5a0eb..38c9d198b1 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser-symbols.cpp
+++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser-symbols.cpp
@@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST:
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment__InlineCommandComment(CppSharp::CppParser::AST::InlineCommandComment*__instance) { __instance->~InlineCommandComment(); }
class CppSharp::CppParser::AST::HTMLTagComment& (CppSharp::CppParser::AST::HTMLTagComment::*_15)(class CppSharp::CppParser::AST::HTMLTagComment&&) = &CppSharp::CppParser::AST::HTMLTagComment::operator=;
class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute& (CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::*_16)(const class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute&) = &CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::operator=;
-extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); }
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_HTMLStartTagComment___1__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment(void* __instance, const CppSharp::CppParser::AST::HTMLStartTagComment& _0) { ::new (__instance) CppSharp::CppParser::AST::HTMLStartTagComment(_0); }
class CppSharp::CppParser::AST::HTMLStartTagComment& (CppSharp::CppParser::AST::HTMLStartTagComment::*_17)(class CppSharp::CppParser::AST::HTMLStartTagComment&&) = &CppSharp::CppParser::AST::HTMLStartTagComment::operator=;
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); }
diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs
index 4c6201974c..5c0c7a9d4d 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs
+++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/CppSharp.CppParser.cs
@@ -13,6 +13,8 @@
[assembly:InternalsVisibleTo("CppSharp.Parser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace CppSharp
{
namespace Parser
@@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NativeLibrary(native.ToPointer(), skipVTables);
}
@@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetSymbols(uint i)
{
- var __ret = __Internal.GetSymbols(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSymbols(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSymbols(string s)
@@ -219,8 +223,8 @@ public void ClearSymbols()
public string GetDependencies(uint i)
{
- var __ret = __Internal.GetDependencies(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDependencies(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDependencies(string s)
@@ -264,8 +268,8 @@ public uint SymbolsCount
{
get
{
- var __ret = __Internal.GetSymbolsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSymbolsCount(__Instance);
+ return ___ret;
}
}
@@ -273,8 +277,8 @@ public uint DependenciesCount
{
get
{
- var __ret = __Internal.GetDependenciesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDependenciesCount(__Instance);
+ return ___ret;
}
}
}
@@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Comment(native.ToPointer(), skipVTables);
}
@@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co
internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockContentComment(native.ToPointer(), skipVTables);
}
@@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I
internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullComment(native.ToPointer(), skipVTables);
}
@@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i)
{
- var __ret = __Internal.GetBlocks(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBlocks(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -630,8 +640,8 @@ public uint BlocksCount
{
get
{
- var __ret = __Internal.GetBlocksCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBlocksCount(__Instance);
+ return ___ret;
}
}
}
@@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C
internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineContentComment(native.ToPointer(), skipVTables);
}
@@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block
internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParagraphComment(native.ToPointer(), skipVTables);
}
@@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i)
{
- var __ret = __Internal.GetContent(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetContent(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -887,8 +901,8 @@ public uint ContentCount
{
get
{
- var __ret = __Internal.GetContentCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetContentCount(__Instance);
+ return ___ret;
}
}
}
@@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -1062,6 +1078,8 @@ public string Text
internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockCommandComment(native.ToPointer(), skipVTables);
}
@@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s)
@@ -1204,8 +1222,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -1241,6 +1259,8 @@ public enum PassDirection : uint
internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B
internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public uint GetPosition(uint i)
{
- var __ret = __Internal.GetPosition(__Instance, i);
- return __ret;
+ var ___ret = __Internal.GetPosition(__Instance, i);
+ return ___ret;
}
public void AddPosition(ref uint s)
@@ -1477,8 +1499,8 @@ public uint PositionCount
{
get
{
- var __ret = __Internal.GetPositionCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPositionCount(__Instance);
+ return ___ret;
}
}
}
@@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A
internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockLineComment(native.ToPointer(), skipVTables);
}
@@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B
internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockComment(native.ToPointer(), skipVTables);
}
@@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i)
{
- var __ret = __Internal.GetLines(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLines(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -1728,8 +1754,8 @@ public uint LinesCount
{
get
{
- var __ret = __Internal.GetLinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLinesCount(__Instance);
+ return ___ret;
}
}
}
@@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl
internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimLineComment(native.ToPointer(), skipVTables);
}
@@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -2023,6 +2053,8 @@ public string Text
internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineCommandComment(native.ToPointer(), skipVTables);
}
@@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s)
@@ -2150,8 +2182,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC
internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLTagComment(native.ToPointer(), skipVTables);
}
@@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Attribute(native.ToPointer(), skipVTables);
}
@@ -2429,6 +2465,8 @@ public string Value
internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLStartTagComment(native.ToPointer(), skipVTables);
}
@@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
- __Internal.GetAttributes(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
+ __Internal.GetAttributes(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s)
@@ -2544,8 +2582,8 @@ public uint AttributesCount
{
get
{
- var __ret = __Internal.GetAttributesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetAttributesCount(__Instance);
+ return ___ret;
}
}
}
@@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML
internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLEndTagComment(native.ToPointer(), skipVTables);
}
@@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont
internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TextComment(native.ToPointer(), skipVTables);
}
@@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new RawComment(native.ToPointer(), skipVTables);
}
@@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SourceRange(native.ToPointer(), skipVTables);
}
@@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Type(native.ToPointer(), skipVTables);
}
@@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeQualifiers(native.ToPointer(), skipVTables);
}
@@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new QualifiedType(native.ToPointer(), skipVTables);
}
@@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa
internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TagType(native.ToPointer(), skipVTables);
}
@@ -3811,6 +3865,8 @@ public enum ArraySize
internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayType(native.ToPointer(), skipVTables);
}
@@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi
internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionType(native.ToPointer(), skipVTables);
}
@@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -4103,8 +4161,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -4136,6 +4194,8 @@ public enum TypeModifier
internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PointerType(native.ToPointer(), skipVTables);
}
@@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type
internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberPointerType(native.ToPointer(), skipVTables);
}
@@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis
internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefType(native.ToPointer(), skipVTables);
}
@@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I
internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedType(native.ToPointer(), skipVTables);
}
@@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis
internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DecayedType(native.ToPointer(), skipVTables);
}
@@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateArgument(native.ToPointer(), skipVTables);
}
@@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser
internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -4991,8 +5063,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha
internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -5145,8 +5219,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST.
internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterType(native.ToPointer(), skipVTables);
}
@@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp
internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables);
}
@@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST.
internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InjectedClassNameType(native.ToPointer(), skipVTables);
}
@@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type
internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentNameType(native.ToPointer(), skipVTables);
}
@@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type
internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionType(native.ToPointer(), skipVTables);
}
@@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ
internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryTransformType(native.ToPointer(), skipVTables);
}
@@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty
internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingType(native.ToPointer(), skipVTables);
}
@@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp
internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VectorType(native.ToPointer(), skipVTables);
}
@@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis
internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BuiltinType(native.ToPointer(), skipVTables);
}
@@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Declaration(native.ToPointer(), skipVTables);
}
@@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i)
{
- var __ret = __Internal.GetPreprocessedEntities(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetPreprocessedEntities(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities()
public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i)
{
- var __ret = __Internal.GetRedeclarations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetRedeclarations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount
{
get
{
- var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
+ return ___ret;
}
}
@@ -6824,8 +6918,8 @@ public uint RedeclarationsCount
{
get
{
- var __ret = __Internal.GetRedeclarationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetRedeclarationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec
internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclarationContext(native.ToPointer(), skipVTables);
}
@@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i)
{
- var __ret = __Internal.GetNamespaces(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetNamespaces(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7087,8 +7183,8 @@ public void ClearNamespaces()
public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i)
{
- var __ret = __Internal.GetEnums(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetEnums(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7108,8 +7204,8 @@ public void ClearEnums()
public global::CppSharp.Parser.AST.Function GetFunctions(uint i)
{
- var __ret = __Internal.GetFunctions(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFunctions(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7129,8 +7225,8 @@ public void ClearFunctions()
public global::CppSharp.Parser.AST.Class GetClasses(uint i)
{
- var __ret = __Internal.GetClasses(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetClasses(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7150,8 +7246,8 @@ public void ClearClasses()
public global::CppSharp.Parser.AST.Template GetTemplates(uint i)
{
- var __ret = __Internal.GetTemplates(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTemplates(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7171,8 +7267,8 @@ public void ClearTemplates()
public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i)
{
- var __ret = __Internal.GetTypedefs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypedefs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7192,8 +7288,8 @@ public void ClearTypedefs()
public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i)
{
- var __ret = __Internal.GetTypeAliases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypeAliases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7213,8 +7309,8 @@ public void ClearTypeAliases()
public global::CppSharp.Parser.AST.Variable GetVariables(uint i)
{
- var __ret = __Internal.GetVariables(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetVariables(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7234,8 +7330,8 @@ public void ClearVariables()
public global::CppSharp.Parser.AST.Friend GetFriends(uint i)
{
- var __ret = __Internal.GetFriends(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFriends(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7275,8 +7371,8 @@ public uint NamespacesCount
{
get
{
- var __ret = __Internal.GetNamespacesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetNamespacesCount(__Instance);
+ return ___ret;
}
}
@@ -7284,8 +7380,8 @@ public uint EnumsCount
{
get
{
- var __ret = __Internal.GetEnumsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetEnumsCount(__Instance);
+ return ___ret;
}
}
@@ -7293,8 +7389,8 @@ public uint FunctionsCount
{
get
{
- var __ret = __Internal.GetFunctionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFunctionsCount(__Instance);
+ return ___ret;
}
}
@@ -7302,8 +7398,8 @@ public uint ClassesCount
{
get
{
- var __ret = __Internal.GetClassesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetClassesCount(__Instance);
+ return ___ret;
}
}
@@ -7311,8 +7407,8 @@ public uint TemplatesCount
{
get
{
- var __ret = __Internal.GetTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTemplatesCount(__Instance);
+ return ___ret;
}
}
@@ -7320,8 +7416,8 @@ public uint TypedefsCount
{
get
{
- var __ret = __Internal.GetTypedefsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypedefsCount(__Instance);
+ return ___ret;
}
}
@@ -7329,8 +7425,8 @@ public uint TypeAliasesCount
{
get
{
- var __ret = __Internal.GetTypeAliasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypeAliasesCount(__Instance);
+ return ___ret;
}
}
@@ -7338,8 +7434,8 @@ public uint VariablesCount
{
get
{
- var __ret = __Internal.GetVariablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVariablesCount(__Instance);
+ return ___ret;
}
}
@@ -7347,8 +7443,8 @@ public uint FriendsCount
{
get
{
- var __ret = __Internal.GetFriendsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFriendsCount(__Instance);
+ return ___ret;
}
}
}
@@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar
internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefNameDecl(native.ToPointer(), skipVTables);
}
@@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam
internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefDecl(native.ToPointer(), skipVTables);
}
@@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD
internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAlias(native.ToPointer(), skipVTables);
}
@@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID
internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Friend(native.ToPointer(), skipVTables);
}
@@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StatementObsolete(native.ToPointer(), skipVTables);
}
@@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta
internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionObsolete(native.ToPointer(), skipVTables);
}
@@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST
internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperatorObsolete(native.ToPointer(), skipVTables);
}
@@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre
internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8429,8 +8541,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A
internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8574,8 +8688,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration,
internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parameter(native.ToPointer(), skipVTables);
}
@@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo
internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Function(native.ToPointer(), skipVTables);
}
@@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9224,8 +9342,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -9292,6 +9410,7 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal byte isStatic;
internal byte isConst;
internal byte isExplicit;
+ internal byte isVolatile;
internal global::CppSharp.Parser.AST.CXXMethodKind methodKind;
internal byte isDefaultConstructor;
internal byte isCopyConstructor;
@@ -9324,6 +9443,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Method(native.ToPointer(), skipVTables);
}
@@ -9401,8 +9522,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i)
{
- var __ret = __Internal.GetOverriddenMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetOverriddenMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9472,6 +9593,19 @@ public bool IsExplicit
}
}
+ public bool IsVolatile
+ {
+ get
+ {
+ return ((__Internal*)__Instance)->isVolatile != 0;
+ }
+
+ set
+ {
+ ((__Internal*)__Instance)->isVolatile = (byte) (value ? 1 : 0);
+ }
+ }
+
public global::CppSharp.Parser.AST.CXXMethodKind MethodKind
{
get
@@ -9556,8 +9690,8 @@ public uint OverriddenMethodsCount
{
get
{
- var __ret = __Internal.GetOverriddenMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetOverriddenMethodsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9680,6 +9814,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis
internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Item(native.ToPointer(), skipVTables);
}
@@ -9785,6 +9921,8 @@ public ulong Value
internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Enumeration(native.ToPointer(), skipVTables);
}
@@ -9862,8 +10000,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i)
{
- var __ret = __Internal.GetItems(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetItems(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9886,9 +10024,9 @@ public void ClearItems()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, Name);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindItemByName(__Instance, __arg0);
+ var ___ret = __Internal.FindItemByName(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9937,8 +10075,8 @@ public uint ItemsCount
{
get
{
- var __ret = __Internal.GetItemsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetItemsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9987,6 +10125,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration,
internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Variable(native.ToPointer(), skipVTables);
}
@@ -10156,6 +10296,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BaseClassSpecifier(native.ToPointer(), skipVTables);
}
@@ -10329,6 +10471,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi
internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Field(native.ToPointer(), skipVTables);
}
@@ -10500,6 +10644,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De
internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AccessSpecifierDecl(native.ToPointer(), skipVTables);
}
@@ -10612,6 +10758,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableComponent(native.ToPointer(), skipVTables);
}
@@ -10777,6 +10925,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableLayout(native.ToPointer(), skipVTables);
}
@@ -10859,8 +11009,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i)
{
- var __ret = __Internal.GetComponents(__Instance, i);
- return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret);
+ var ___ret = __Internal.GetComponents(__Instance, i);
+ return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret);
}
public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s)
@@ -10880,8 +11030,8 @@ public uint ComponentsCount
{
get
{
- var __ret = __Internal.GetComponentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetComponentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -10926,6 +11076,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VFTableInfo(native.ToPointer(), skipVTables);
}
@@ -11101,6 +11253,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutField(native.ToPointer(), skipVTables);
}
@@ -11275,6 +11429,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutBase(native.ToPointer(), skipVTables);
}
@@ -11466,6 +11622,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassLayout(native.ToPointer(), skipVTables);
}
@@ -11548,11 +11706,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
- __Internal.GetVFTables(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
+ __Internal.GetVFTables(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s)
@@ -11570,11 +11728,11 @@ public void ClearVFTables()
public global::CppSharp.Parser.AST.LayoutField GetFields(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
- __Internal.GetFields(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
+ __Internal.GetFields(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddFields(global::CppSharp.Parser.AST.LayoutField s)
@@ -11592,11 +11750,11 @@ public void ClearFields()
public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
- __Internal.GetBases(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
+ __Internal.GetBases(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddBases(global::CppSharp.Parser.AST.LayoutBase s)
@@ -11722,8 +11880,8 @@ public uint VFTablesCount
{
get
{
- var __ret = __Internal.GetVFTablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVFTablesCount(__Instance);
+ return ___ret;
}
}
@@ -11731,8 +11889,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -11740,8 +11898,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
}
@@ -11861,6 +12019,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte
internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Class(native.ToPointer(), skipVTables);
}
@@ -11938,8 +12098,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i)
{
- var __ret = __Internal.GetBases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11959,8 +12119,8 @@ public void ClearBases()
public global::CppSharp.Parser.AST.Field GetFields(uint i)
{
- var __ret = __Internal.GetFields(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFields(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11980,8 +12140,8 @@ public void ClearFields()
public global::CppSharp.Parser.AST.Method GetMethods(uint i)
{
- var __ret = __Internal.GetMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12001,8 +12161,8 @@ public void ClearMethods()
public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i)
{
- var __ret = __Internal.GetSpecifiers(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecifiers(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12181,8 +12341,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
@@ -12190,8 +12350,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -12199,8 +12359,8 @@ public uint MethodsCount
{
get
{
- var __ret = __Internal.GetMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMethodsCount(__Instance);
+ return ___ret;
}
}
@@ -12208,8 +12368,8 @@ public uint SpecifiersCount
{
get
{
- var __ret = __Internal.GetSpecifiersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecifiersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12271,6 +12431,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration,
internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Template(native.ToPointer(), skipVTables);
}
@@ -12357,8 +12519,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12399,8 +12561,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12447,6 +12609,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp
internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAliasTemplate(native.ToPointer(), skipVTables);
}
@@ -12566,6 +12730,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl
internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12731,6 +12897,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser.
internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12890,6 +13058,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST.
internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12983,7 +13153,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable
{
- [StructLayout(LayoutKind.Sequential, Size = 264)]
+ [StructLayout(LayoutKind.Sequential, Size = 280)]
public new partial struct __Internal
{
internal global::CppSharp.Parser.AST.DeclarationKind kind;
@@ -13030,6 +13200,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A
internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NonTypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -13249,6 +13421,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template
internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplate(native.ToPointer(), skipVTables);
}
@@ -13326,8 +13500,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13350,9 +13524,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13361,9 +13535,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13371,8 +13545,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13459,6 +13633,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse
internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -13536,9 +13712,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -13585,8 +13761,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13661,6 +13837,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar
internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -13795,6 +13973,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ
internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplate(native.ToPointer(), skipVTables);
}
@@ -13872,8 +14052,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13896,9 +14076,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13906,8 +14086,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13964,6 +14144,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14046,9 +14228,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14109,8 +14291,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14176,6 +14358,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template,
internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplate(native.ToPointer(), skipVTables);
}
@@ -14253,8 +14437,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14277,9 +14461,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14288,9 +14472,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14298,8 +14482,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14363,6 +14547,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser.
internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14440,9 +14626,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14489,8 +14675,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14542,6 +14728,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp.
internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -14658,6 +14846,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS
internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingTypename(native.ToPointer(), skipVTables);
}
@@ -14786,6 +14976,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC
internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Namespace(native.ToPointer(), skipVTables);
}
@@ -14911,6 +15103,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PreprocessedEntity(native.ToPointer(), skipVTables);
}
@@ -15051,6 +15245,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro
internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroDefinition(native.ToPointer(), skipVTables);
}
@@ -15205,6 +15401,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc
internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroExpansion(native.ToPointer(), skipVTables);
}
@@ -15390,6 +15588,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp
internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TranslationUnit(native.ToPointer(), skipVTables);
}
@@ -15467,8 +15667,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i)
{
- var __ret = __Internal.GetMacros(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMacros(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15517,8 +15717,8 @@ public uint MacrosCount
{
get
{
- var __ret = __Internal.GetMacrosCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMacrosCount(__Instance);
+ return ___ret;
}
}
}
@@ -15575,6 +15775,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ASTContext(native.ToPointer(), skipVTables);
}
@@ -15660,16 +15862,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, File);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindOrCreateModule(__Instance, __arg0);
+ var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0);
__basicString0.Dispose(disposing: true, callNativeDtor:false);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i)
{
- var __ret = __Internal.GetTranslationUnits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTranslationUnits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15691,8 +15893,8 @@ public uint TranslationUnitsCount
{
get
{
- var __ret = __Internal.GetTranslationUnitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTranslationUnitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -15876,6 +16078,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Stmt(native.ToPointer(), skipVTables);
}
@@ -16056,6 +16260,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclStmt(native.ToPointer(), skipVTables);
}
@@ -16133,8 +16339,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration Getdecls(uint i)
{
- var __ret = __Internal.Getdecls(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getdecls(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16183,8 +16389,8 @@ public uint GetdeclsCount
{
get
{
- var __ret = __Internal.GetdeclsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetdeclsCount(__Instance);
+ return ___ret;
}
}
}
@@ -16210,6 +16416,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NullStmt(native.ToPointer(), skipVTables);
}
@@ -16335,6 +16543,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundStmt(native.ToPointer(), skipVTables);
}
@@ -16412,8 +16622,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Stmt Getbody(uint i)
{
- var __ret = __Internal.Getbody(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getbody(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16515,8 +16725,8 @@ public uint GetbodyCount
{
get
{
- var __ret = __Internal.GetbodyCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetbodyCount(__Instance);
+ return ___ret;
}
}
}
@@ -16546,6 +16756,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchCase(native.ToPointer(), skipVTables);
}
@@ -16685,6 +16897,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I
internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CaseStmt(native.ToPointer(), skipVTables);
}
@@ -16833,6 +17047,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase
internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DefaultStmt(native.ToPointer(), skipVTables);
}
@@ -16927,6 +17143,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo
private bool __name_OwnsNativeMemory = false;
internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LabelStmt(native.ToPointer(), skipVTables);
}
@@ -17060,6 +17278,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedStmt(native.ToPointer(), skipVTables);
}
@@ -17176,6 +17396,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IfStmt(native.ToPointer(), skipVTables);
}
@@ -17422,6 +17644,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchStmt(native.ToPointer(), skipVTables);
}
@@ -17612,6 +17836,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new WhileStmt(native.ToPointer(), skipVTables);
}
@@ -17762,6 +17988,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DoStmt(native.ToPointer(), skipVTables);
}
@@ -17914,6 +18142,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ForStmt(native.ToPointer(), skipVTables);
}
@@ -18102,6 +18332,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GotoStmt(native.ToPointer(), skipVTables);
}
@@ -18208,6 +18440,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt,
internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IndirectGotoStmt(native.ToPointer(), skipVTables);
}
@@ -18326,6 +18560,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ContinueStmt(native.ToPointer(), skipVTables);
}
@@ -18417,6 +18653,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BreakStmt(native.ToPointer(), skipVTables);
}
@@ -18509,6 +18747,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ReturnStmt(native.ToPointer(), skipVTables);
}
@@ -18652,6 +18892,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStmt(native.ToPointer(), skipVTables);
}
@@ -18738,8 +18980,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getinputs(uint i)
{
- var __ret = __Internal.Getinputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getinputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18759,8 +19001,8 @@ public void Clearinputs()
public global::CppSharp.Parser.AST.Expr Getoutputs(uint i)
{
- var __ret = __Internal.Getoutputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getoutputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18878,8 +19120,8 @@ public uint GetinputsCount
{
get
{
- var __ret = __Internal.GetinputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetinputsCount(__Instance);
+ return ___ret;
}
}
@@ -18887,8 +19129,8 @@ public uint GetoutputsCount
{
get
{
- var __ret = __Internal.GetoutputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetoutputsCount(__Instance);
+ return ___ret;
}
}
}
@@ -18970,6 +19212,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStringPiece(native.ToPointer(), skipVTables);
}
@@ -19119,6 +19363,8 @@ public sbyte Modifier
internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GCCAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19243,6 +19489,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi
internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19394,6 +19642,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID
internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHExceptStmt(native.ToPointer(), skipVTables);
}
@@ -19514,6 +19764,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHFinallyStmt(native.ToPointer(), skipVTables);
}
@@ -19624,6 +19876,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHTryStmt(native.ToPointer(), skipVTables);
}
@@ -19784,6 +20038,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHLeaveStmt(native.ToPointer(), skipVTables);
}
@@ -19937,6 +20193,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Capture(native.ToPointer(), skipVTables);
}
@@ -20093,6 +20351,8 @@ public bool CapturesVariableArrayType
internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CapturedStmt(native.ToPointer(), skipVTables);
}
@@ -20170,8 +20430,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -20220,8 +20480,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -20248,6 +20508,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXCatchStmt(native.ToPointer(), skipVTables);
}
@@ -20370,6 +20632,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTryStmt(native.ToPointer(), skipVTables);
}
@@ -20500,6 +20764,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt,
internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXForRangeStmt(native.ToPointer(), skipVTables);
}
@@ -20759,6 +21025,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST.
internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSDependentExistsStmt(native.ToPointer(), skipVTables);
}
@@ -20949,6 +21217,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CtorArgs(native.ToPointer(), skipVTables);
}
@@ -21027,6 +21297,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineBodyStmt(native.ToPointer(), skipVTables);
}
@@ -21296,6 +21568,8 @@ public enum SubStmt
internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoreturnStmt(native.ToPointer(), skipVTables);
}
@@ -21771,6 +22045,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Classification(native.ToPointer(), skipVTables);
}
@@ -21953,6 +22229,8 @@ public bool IsModifiable
internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Expr(native.ToPointer(), skipVTables);
}
@@ -22248,6 +22526,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullExpr(native.ToPointer(), skipVTables);
}
@@ -22368,6 +22648,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr,
internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConstantExpr(native.ToPointer(), skipVTables);
}
@@ -22462,6 +22744,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr,
internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OpaqueValueExpr(native.ToPointer(), skipVTables);
}
@@ -22605,6 +22889,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -22855,6 +23141,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I
internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IntegerLiteral(native.ToPointer(), skipVTables);
}
@@ -22974,6 +23262,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr
internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FixedPointLiteral(native.ToPointer(), skipVTables);
}
@@ -23103,6 +23393,8 @@ public enum CharacterKind
internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharacterLiteral(native.ToPointer(), skipVTables);
}
@@ -23236,6 +23528,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr,
internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FloatingLiteral(native.ToPointer(), skipVTables);
}
@@ -23367,6 +23661,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr,
internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImaginaryLiteral(native.ToPointer(), skipVTables);
}
@@ -23499,6 +23795,8 @@ public enum StringKind
internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StringLiteral(native.ToPointer(), skipVTables);
}
@@ -23819,6 +24117,8 @@ public enum IdentKind
internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PredefinedExpr(native.ToPointer(), skipVTables);
}
@@ -23939,6 +24239,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenExpr(native.ToPointer(), skipVTables);
}
@@ -24081,6 +24383,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID
internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryOperator(native.ToPointer(), skipVTables);
}
@@ -24320,6 +24624,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OffsetOfExpr(native.ToPointer(), skipVTables);
}
@@ -24470,6 +24776,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A
internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -24662,6 +24970,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp
internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArraySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -24849,6 +25159,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExpr(native.ToPointer(), skipVTables);
}
@@ -24935,8 +25247,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -25070,8 +25382,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -25122,6 +25434,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberExpr(native.ToPointer(), skipVTables);
}
@@ -25386,6 +25700,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex
internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -25528,6 +25844,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos
private bool __castKindName_OwnsNativeMemory = false;
internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CastExpr(native.ToPointer(), skipVTables);
}
@@ -25754,6 +26072,8 @@ public enum OnStack_t
internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25869,6 +26189,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE
internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25999,6 +26321,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici
internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CStyleCastExpr(native.ToPointer(), skipVTables);
}
@@ -26141,6 +26465,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I
internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperator(native.ToPointer(), skipVTables);
}
@@ -26538,6 +26864,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST
internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundAssignOperator(native.ToPointer(), skipVTables);
}
@@ -26685,6 +27013,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse
internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AbstractConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26865,6 +27195,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab
internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26991,6 +27323,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser.
internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -27112,6 +27446,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AddrLabelExpr(native.ToPointer(), skipVTables);
}
@@ -27232,6 +27568,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StmtExpr(native.ToPointer(), skipVTables);
}
@@ -27366,6 +27704,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ShuffleVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27499,6 +27839,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConvertVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27638,6 +27980,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ChooseExpr(native.ToPointer(), skipVTables);
}
@@ -27838,6 +28182,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GNUNullExpr(native.ToPointer(), skipVTables);
}
@@ -27946,6 +28292,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VAArgExpr(native.ToPointer(), skipVTables);
}
@@ -28102,6 +28450,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InitListExpr(native.ToPointer(), skipVTables);
}
@@ -28400,6 +28750,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Designator(native.ToPointer(), skipVTables);
}
@@ -28654,6 +29006,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FieldDesignator(native.ToPointer(), skipVTables);
}
@@ -28762,6 +29116,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables);
}
@@ -28840,6 +29196,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitExpr(native.ToPointer(), skipVTables);
}
@@ -29012,6 +29370,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NoInitExpr(native.ToPointer(), skipVTables);
}
@@ -29105,6 +29465,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A
internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables);
}
@@ -29226,6 +29588,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr
internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitLoopExpr(native.ToPointer(), skipVTables);
}
@@ -29345,6 +29709,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitIndexExpr(native.ToPointer(), skipVTables);
}
@@ -29436,6 +29802,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST.
internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -29530,6 +29898,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenListExpr(native.ToPointer(), skipVTables);
}
@@ -29668,6 +30038,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E
internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GenericSelectionExpr(native.ToPointer(), skipVTables);
}
@@ -29870,6 +30242,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E
internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtVectorElementExpr(native.ToPointer(), skipVTables);
}
@@ -30029,6 +30403,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockExpr(native.ToPointer(), skipVTables);
}
@@ -30150,6 +30526,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsTypeExpr(native.ToPointer(), skipVTables);
}
@@ -30285,6 +30663,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr,
internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PseudoObjectExpr(native.ToPointer(), skipVTables);
}
@@ -30495,6 +30875,8 @@ public enum AtomicOp
internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AtomicExpr(native.ToPointer(), skipVTables);
}
@@ -30790,6 +31172,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypoExpr(native.ToPointer(), skipVTables);
}
@@ -30897,6 +31281,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca
internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXOperatorCallExpr(native.ToPointer(), skipVTables);
}
@@ -31072,6 +31458,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call
internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXMemberCallExpr(native.ToPointer(), skipVTables);
}
@@ -31222,6 +31610,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal
internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CUDAKernelCallExpr(native.ToPointer(), skipVTables);
}
@@ -31361,6 +31751,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli
private bool __castName_OwnsNativeMemory = false;
internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNamedCastExpr(native.ToPointer(), skipVTables);
}
@@ -31546,6 +31938,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN
internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStaticCastExpr(native.ToPointer(), skipVTables);
}
@@ -31650,6 +32044,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX
internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDynamicCastExpr(native.ToPointer(), skipVTables);
}
@@ -31766,6 +32162,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST
internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables);
}
@@ -31869,6 +32267,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa
internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstCastExpr(native.ToPointer(), skipVTables);
}
@@ -31985,6 +32385,8 @@ public enum LiteralOperatorKind
internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UserDefinedLiteral(native.ToPointer(), skipVTables);
}
@@ -32136,6 +32538,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32254,6 +32658,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST.
internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32359,6 +32765,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser.
internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables);
}
@@ -32467,6 +32875,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTypeidExpr(native.ToPointer(), skipVTables);
}
@@ -32602,6 +33012,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr
internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertyRefExpr(native.ToPointer(), skipVTables);
}
@@ -32749,6 +33161,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS
internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -32887,6 +33301,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUuidofExpr(native.ToPointer(), skipVTables);
}
@@ -33039,6 +33455,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThisExpr(native.ToPointer(), skipVTables);
}
@@ -33159,6 +33577,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThrowExpr(native.ToPointer(), skipVTables);
}
@@ -33292,6 +33712,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr
internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultArgExpr(native.ToPointer(), skipVTables);
}
@@ -33412,6 +33834,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultInitExpr(native.ToPointer(), skipVTables);
}
@@ -33532,6 +33956,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E
internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -33672,6 +34098,8 @@ public enum ConstructionKind
internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExpr(native.ToPointer(), skipVTables);
}
@@ -33758,8 +34186,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -33892,8 +34320,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -33934,6 +34362,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A
internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables);
}
@@ -34075,6 +34505,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST.
internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables);
}
@@ -34217,6 +34649,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST
internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables);
}
@@ -34351,6 +34785,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LambdaExpr(native.ToPointer(), skipVTables);
}
@@ -34428,8 +34864,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -34572,8 +35008,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -34612,6 +35048,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST
internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -34753,6 +35191,8 @@ public enum InitializationStyle
internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNewExpr(native.ToPointer(), skipVTables);
}
@@ -34830,8 +35270,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i)
{
- var __ret = __Internal.GetplacementArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetplacementArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -35046,8 +35486,8 @@ public uint GetplacementArgumentsCount
{
get
{
- var __ret = __Internal.GetplacementArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetplacementArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -35091,6 +35531,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDeleteExpr(native.ToPointer(), skipVTables);
}
@@ -35272,6 +35714,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS
internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables);
}
@@ -35472,6 +35916,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35592,6 +36038,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35727,6 +36175,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex
internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35886,6 +36336,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FindResult(native.ToPointer(), skipVTables);
}
@@ -35964,6 +36416,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OverloadExpr(native.ToPointer(), skipVTables);
}
@@ -36183,6 +36637,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedLookupExpr(native.ToPointer(), skipVTables);
}
@@ -36307,6 +36763,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser.
internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -36492,6 +36950,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE
internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExprWithCleanups(native.ToPointer(), skipVTables);
}
@@ -36630,6 +37090,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser
internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables);
}
@@ -36707,8 +37169,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -36797,8 +37259,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -36849,6 +37311,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse
internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37128,6 +37592,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37315,6 +37781,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr,
internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNoexceptExpr(native.ToPointer(), skipVTables);
}
@@ -37435,6 +37903,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr
internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionExpr(native.ToPointer(), skipVTables);
}
@@ -37559,6 +38029,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I
internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SizeOfPackExpr(native.ToPointer(), skipVTables);
}
@@ -37731,6 +38203,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars
internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables);
}
@@ -37851,6 +38325,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp.
internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -37972,6 +38448,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E
internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -38123,6 +38601,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtraState(native.ToPointer(), skipVTables);
}
@@ -38201,6 +38681,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -38354,6 +38836,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFoldExpr(native.ToPointer(), skipVTables);
}
@@ -38571,6 +39055,8 @@ public enum SubExpr
internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineSuspendExpr(native.ToPointer(), skipVTables);
}
@@ -38767,6 +39253,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -38888,6 +39376,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E
internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentCoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -39027,6 +39517,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoyieldExpr(native.ToPointer(), skipVTables);
}
@@ -39198,6 +39690,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserTargetInfo(native.ToPointer(), skipVTables);
}
@@ -39870,6 +40364,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parser(native.ToPointer(), skipVTables);
}
@@ -40080,6 +40576,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppParserOptions(native.ToPointer(), skipVTables);
}
@@ -40162,8 +40660,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40178,8 +40676,8 @@ public void ClearArguments()
public string GetCompilationOptions(uint i)
{
- var __ret = __Internal.GetCompilationOptions(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetCompilationOptions(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddCompilationOptions(string s)
@@ -40194,8 +40692,8 @@ public void ClearCompilationOptions()
public string GetSourceFiles(uint i)
{
- var __ret = __Internal.GetSourceFiles(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSourceFiles(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSourceFiles(string s)
@@ -40210,8 +40708,8 @@ public void ClearSourceFiles()
public string GetIncludeDirs(uint i)
{
- var __ret = __Internal.GetIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddIncludeDirs(string s)
@@ -40226,8 +40724,8 @@ public void ClearIncludeDirs()
public string GetSystemIncludeDirs(uint i)
{
- var __ret = __Internal.GetSystemIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSystemIncludeDirs(string s)
@@ -40242,8 +40740,8 @@ public void ClearSystemIncludeDirs()
public string GetDefines(uint i)
{
- var __ret = __Internal.GetDefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDefines(string s)
@@ -40258,8 +40756,8 @@ public void ClearDefines()
public string GetUndefines(uint i)
{
- var __ret = __Internal.GetUndefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetUndefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddUndefines(string s)
@@ -40274,8 +40772,8 @@ public void ClearUndefines()
public string GetSupportedStdTypes(uint i)
{
- var __ret = __Internal.GetSupportedStdTypes(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedStdTypes(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedStdTypes(string s)
@@ -40290,8 +40788,8 @@ public void ClearSupportedStdTypes()
public string GetSupportedFunctionTemplates(uint i)
{
- var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedFunctionTemplates(string s)
@@ -40453,9 +40951,9 @@ public string ClangVersion
{
get
{
- var __ret = new global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C();
- __Internal.GetClangVersion(new IntPtr(&__ret), __Instance);
- var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret));
+ var ___ret = new global::Std.BasicString.__Internalc__N_std_N___cxx11_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C();
+ __Internal.GetClangVersion(new IntPtr(&___ret), __Instance);
+ var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret));
var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0);
__basicStringRet0.Dispose();
return __retString0;
@@ -40466,8 +40964,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40475,8 +40973,8 @@ public uint CompilationOptionsCount
{
get
{
- var __ret = __Internal.GetCompilationOptionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetCompilationOptionsCount(__Instance);
+ return ___ret;
}
}
@@ -40484,8 +40982,8 @@ public uint SourceFilesCount
{
get
{
- var __ret = __Internal.GetSourceFilesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSourceFilesCount(__Instance);
+ return ___ret;
}
}
@@ -40493,8 +40991,8 @@ public uint IncludeDirsCount
{
get
{
- var __ret = __Internal.GetIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40502,8 +41000,8 @@ public uint SystemIncludeDirsCount
{
get
{
- var __ret = __Internal.GetSystemIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40511,8 +41009,8 @@ public uint DefinesCount
{
get
{
- var __ret = __Internal.GetDefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40520,8 +41018,8 @@ public uint UndefinesCount
{
get
{
- var __ret = __Internal.GetUndefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetUndefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40529,8 +41027,8 @@ public uint SupportedStdTypesCount
{
get
{
- var __ret = __Internal.GetSupportedStdTypesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedStdTypesCount(__Instance);
+ return ___ret;
}
}
@@ -40538,8 +41036,8 @@ public uint SupportedFunctionTemplatesCount
{
get
{
- var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40619,6 +41117,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppLinkerOptions(native.ToPointer(), skipVTables);
}
@@ -40701,8 +41201,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40717,8 +41217,8 @@ public void ClearArguments()
public string GetLibraryDirs(uint i)
{
- var __ret = __Internal.GetLibraryDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraryDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraryDirs(string s)
@@ -40733,8 +41233,8 @@ public void ClearLibraryDirs()
public string GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraries(string s)
@@ -40751,8 +41251,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40760,8 +41260,8 @@ public uint LibraryDirsCount
{
get
{
- var __ret = __Internal.GetLibraryDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibraryDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40769,8 +41269,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40816,6 +41316,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserDiagnostic(native.ToPointer(), skipVTables);
}
@@ -41028,6 +41530,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserResult(native.ToPointer(), skipVTables);
}
@@ -41110,11 +41614,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i)
{
- var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
- __Internal.GetDiagnostics(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret);
- global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
+ __Internal.GetDiagnostics(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret);
+ global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s)
@@ -41132,8 +41636,8 @@ public void ClearDiagnostics()
public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41182,8 +41686,8 @@ public uint DiagnosticsCount
{
get
{
- var __ret = __Internal.GetDiagnosticsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDiagnosticsCount(__Instance);
+ return ___ret;
}
}
@@ -41191,8 +41695,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -41241,6 +41745,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClangParser(native.ToPointer(), skipVTables);
}
@@ -41318,16 +41824,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseHeader(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseHeader(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseLibrary(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseLibrary(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41338,9 +41844,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41350,9 +41856,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString1 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString1, File);
var __arg1 = __basicString1.__Instance;
- var __ret = __Internal.Compile(__arg0, __arg1);
+ var ___ret = __Internal.Compile(__arg0, __arg1);
__basicString1.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41363,9 +41869,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
}
diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs
index cba538aca3..cdf0bbf78f 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs
+++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi/Std.cs
@@ -15,6 +15,8 @@
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace Std
{
namespace Allocator
@@ -52,6 +54,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static Allocator<_Tp> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Allocator<_Tp>(native.ToPointer(), skipVTables);
}
@@ -256,6 +260,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static CharTraits<_CharT> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharTraits<_CharT>(native.ToPointer(), skipVTables);
}
@@ -390,6 +396,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static BasicString<_CharT, _Traits, _Alloc> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BasicString<_CharT, _Traits, _Alloc>(native.ToPointer(), skipVTables);
}
@@ -492,16 +500,16 @@ public partial struct __Internal
public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string __s)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Assign(__arg0, __s);
- var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Assign(__arg0, __s);
+ var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static string Data(this global::Std.BasicString, global::Std.Allocator> @this)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Data(__arg0);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.Data(__arg0);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
}
}
diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser-symbols.cpp
index 0ac2c5a0eb..38c9d198b1 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser-symbols.cpp
+++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser-symbols.cpp
@@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST:
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment__InlineCommandComment(CppSharp::CppParser::AST::InlineCommandComment*__instance) { __instance->~InlineCommandComment(); }
class CppSharp::CppParser::AST::HTMLTagComment& (CppSharp::CppParser::AST::HTMLTagComment::*_15)(class CppSharp::CppParser::AST::HTMLTagComment&&) = &CppSharp::CppParser::AST::HTMLTagComment::operator=;
class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute& (CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::*_16)(const class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute&) = &CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::operator=;
-extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); }
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_HTMLStartTagComment___1__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment(void* __instance, const CppSharp::CppParser::AST::HTMLStartTagComment& _0) { ::new (__instance) CppSharp::CppParser::AST::HTMLStartTagComment(_0); }
class CppSharp::CppParser::AST::HTMLStartTagComment& (CppSharp::CppParser::AST::HTMLStartTagComment::*_17)(class CppSharp::CppParser::AST::HTMLStartTagComment&&) = &CppSharp::CppParser::AST::HTMLStartTagComment::operator=;
extern "C" void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); }
diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs
index 2b7e1e837c..58d27ea063 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs
+++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/CppSharp.CppParser.cs
@@ -13,6 +13,8 @@
[assembly:InternalsVisibleTo("CppSharp.Parser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace CppSharp
{
namespace Parser
@@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NativeLibrary(native.ToPointer(), skipVTables);
}
@@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetSymbols(uint i)
{
- var __ret = __Internal.GetSymbols(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSymbols(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSymbols(string s)
@@ -219,8 +223,8 @@ public void ClearSymbols()
public string GetDependencies(uint i)
{
- var __ret = __Internal.GetDependencies(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDependencies(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDependencies(string s)
@@ -264,8 +268,8 @@ public uint SymbolsCount
{
get
{
- var __ret = __Internal.GetSymbolsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSymbolsCount(__Instance);
+ return ___ret;
}
}
@@ -273,8 +277,8 @@ public uint DependenciesCount
{
get
{
- var __ret = __Internal.GetDependenciesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDependenciesCount(__Instance);
+ return ___ret;
}
}
}
@@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Comment(native.ToPointer(), skipVTables);
}
@@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co
internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockContentComment(native.ToPointer(), skipVTables);
}
@@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I
internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullComment(native.ToPointer(), skipVTables);
}
@@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i)
{
- var __ret = __Internal.GetBlocks(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBlocks(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -630,8 +640,8 @@ public uint BlocksCount
{
get
{
- var __ret = __Internal.GetBlocksCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBlocksCount(__Instance);
+ return ___ret;
}
}
}
@@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C
internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineContentComment(native.ToPointer(), skipVTables);
}
@@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block
internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParagraphComment(native.ToPointer(), skipVTables);
}
@@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i)
{
- var __ret = __Internal.GetContent(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetContent(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -887,8 +901,8 @@ public uint ContentCount
{
get
{
- var __ret = __Internal.GetContentCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetContentCount(__Instance);
+ return ___ret;
}
}
}
@@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -1062,6 +1078,8 @@ public string Text
internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockCommandComment(native.ToPointer(), skipVTables);
}
@@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s)
@@ -1204,8 +1222,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -1241,6 +1259,8 @@ public enum PassDirection : uint
internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B
internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public uint GetPosition(uint i)
{
- var __ret = __Internal.GetPosition(__Instance, i);
- return __ret;
+ var ___ret = __Internal.GetPosition(__Instance, i);
+ return ___ret;
}
public void AddPosition(ref uint s)
@@ -1477,8 +1499,8 @@ public uint PositionCount
{
get
{
- var __ret = __Internal.GetPositionCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPositionCount(__Instance);
+ return ___ret;
}
}
}
@@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A
internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockLineComment(native.ToPointer(), skipVTables);
}
@@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B
internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockComment(native.ToPointer(), skipVTables);
}
@@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i)
{
- var __ret = __Internal.GetLines(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLines(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -1728,8 +1754,8 @@ public uint LinesCount
{
get
{
- var __ret = __Internal.GetLinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLinesCount(__Instance);
+ return ___ret;
}
}
}
@@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl
internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimLineComment(native.ToPointer(), skipVTables);
}
@@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -2023,6 +2053,8 @@ public string Text
internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineCommandComment(native.ToPointer(), skipVTables);
}
@@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s)
@@ -2150,8 +2182,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC
internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLTagComment(native.ToPointer(), skipVTables);
}
@@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Attribute(native.ToPointer(), skipVTables);
}
@@ -2429,6 +2465,8 @@ public string Value
internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLStartTagComment(native.ToPointer(), skipVTables);
}
@@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
- __Internal.GetAttributes(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
+ __Internal.GetAttributes(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s)
@@ -2544,8 +2582,8 @@ public uint AttributesCount
{
get
{
- var __ret = __Internal.GetAttributesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetAttributesCount(__Instance);
+ return ___ret;
}
}
}
@@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML
internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLEndTagComment(native.ToPointer(), skipVTables);
}
@@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont
internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TextComment(native.ToPointer(), skipVTables);
}
@@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new RawComment(native.ToPointer(), skipVTables);
}
@@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SourceRange(native.ToPointer(), skipVTables);
}
@@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Type(native.ToPointer(), skipVTables);
}
@@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeQualifiers(native.ToPointer(), skipVTables);
}
@@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new QualifiedType(native.ToPointer(), skipVTables);
}
@@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa
internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TagType(native.ToPointer(), skipVTables);
}
@@ -3811,6 +3865,8 @@ public enum ArraySize
internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayType(native.ToPointer(), skipVTables);
}
@@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi
internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionType(native.ToPointer(), skipVTables);
}
@@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -4103,8 +4161,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -4136,6 +4194,8 @@ public enum TypeModifier
internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PointerType(native.ToPointer(), skipVTables);
}
@@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type
internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberPointerType(native.ToPointer(), skipVTables);
}
@@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis
internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefType(native.ToPointer(), skipVTables);
}
@@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I
internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedType(native.ToPointer(), skipVTables);
}
@@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis
internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DecayedType(native.ToPointer(), skipVTables);
}
@@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateArgument(native.ToPointer(), skipVTables);
}
@@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser
internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -4991,8 +5063,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha
internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -5145,8 +5219,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST.
internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterType(native.ToPointer(), skipVTables);
}
@@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp
internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables);
}
@@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST.
internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InjectedClassNameType(native.ToPointer(), skipVTables);
}
@@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type
internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentNameType(native.ToPointer(), skipVTables);
}
@@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type
internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionType(native.ToPointer(), skipVTables);
}
@@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ
internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryTransformType(native.ToPointer(), skipVTables);
}
@@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty
internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingType(native.ToPointer(), skipVTables);
}
@@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp
internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VectorType(native.ToPointer(), skipVTables);
}
@@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis
internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BuiltinType(native.ToPointer(), skipVTables);
}
@@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Declaration(native.ToPointer(), skipVTables);
}
@@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i)
{
- var __ret = __Internal.GetPreprocessedEntities(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetPreprocessedEntities(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities()
public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i)
{
- var __ret = __Internal.GetRedeclarations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetRedeclarations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount
{
get
{
- var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
+ return ___ret;
}
}
@@ -6824,8 +6918,8 @@ public uint RedeclarationsCount
{
get
{
- var __ret = __Internal.GetRedeclarationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetRedeclarationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec
internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclarationContext(native.ToPointer(), skipVTables);
}
@@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i)
{
- var __ret = __Internal.GetNamespaces(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetNamespaces(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7087,8 +7183,8 @@ public void ClearNamespaces()
public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i)
{
- var __ret = __Internal.GetEnums(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetEnums(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7108,8 +7204,8 @@ public void ClearEnums()
public global::CppSharp.Parser.AST.Function GetFunctions(uint i)
{
- var __ret = __Internal.GetFunctions(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFunctions(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7129,8 +7225,8 @@ public void ClearFunctions()
public global::CppSharp.Parser.AST.Class GetClasses(uint i)
{
- var __ret = __Internal.GetClasses(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetClasses(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7150,8 +7246,8 @@ public void ClearClasses()
public global::CppSharp.Parser.AST.Template GetTemplates(uint i)
{
- var __ret = __Internal.GetTemplates(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTemplates(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7171,8 +7267,8 @@ public void ClearTemplates()
public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i)
{
- var __ret = __Internal.GetTypedefs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypedefs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7192,8 +7288,8 @@ public void ClearTypedefs()
public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i)
{
- var __ret = __Internal.GetTypeAliases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypeAliases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7213,8 +7309,8 @@ public void ClearTypeAliases()
public global::CppSharp.Parser.AST.Variable GetVariables(uint i)
{
- var __ret = __Internal.GetVariables(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetVariables(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7234,8 +7330,8 @@ public void ClearVariables()
public global::CppSharp.Parser.AST.Friend GetFriends(uint i)
{
- var __ret = __Internal.GetFriends(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFriends(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7275,8 +7371,8 @@ public uint NamespacesCount
{
get
{
- var __ret = __Internal.GetNamespacesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetNamespacesCount(__Instance);
+ return ___ret;
}
}
@@ -7284,8 +7380,8 @@ public uint EnumsCount
{
get
{
- var __ret = __Internal.GetEnumsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetEnumsCount(__Instance);
+ return ___ret;
}
}
@@ -7293,8 +7389,8 @@ public uint FunctionsCount
{
get
{
- var __ret = __Internal.GetFunctionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFunctionsCount(__Instance);
+ return ___ret;
}
}
@@ -7302,8 +7398,8 @@ public uint ClassesCount
{
get
{
- var __ret = __Internal.GetClassesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetClassesCount(__Instance);
+ return ___ret;
}
}
@@ -7311,8 +7407,8 @@ public uint TemplatesCount
{
get
{
- var __ret = __Internal.GetTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTemplatesCount(__Instance);
+ return ___ret;
}
}
@@ -7320,8 +7416,8 @@ public uint TypedefsCount
{
get
{
- var __ret = __Internal.GetTypedefsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypedefsCount(__Instance);
+ return ___ret;
}
}
@@ -7329,8 +7425,8 @@ public uint TypeAliasesCount
{
get
{
- var __ret = __Internal.GetTypeAliasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypeAliasesCount(__Instance);
+ return ___ret;
}
}
@@ -7338,8 +7434,8 @@ public uint VariablesCount
{
get
{
- var __ret = __Internal.GetVariablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVariablesCount(__Instance);
+ return ___ret;
}
}
@@ -7347,8 +7443,8 @@ public uint FriendsCount
{
get
{
- var __ret = __Internal.GetFriendsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFriendsCount(__Instance);
+ return ___ret;
}
}
}
@@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar
internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefNameDecl(native.ToPointer(), skipVTables);
}
@@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam
internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefDecl(native.ToPointer(), skipVTables);
}
@@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD
internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAlias(native.ToPointer(), skipVTables);
}
@@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID
internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Friend(native.ToPointer(), skipVTables);
}
@@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StatementObsolete(native.ToPointer(), skipVTables);
}
@@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta
internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionObsolete(native.ToPointer(), skipVTables);
}
@@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST
internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperatorObsolete(native.ToPointer(), skipVTables);
}
@@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre
internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8429,8 +8541,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A
internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8574,8 +8688,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration,
internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parameter(native.ToPointer(), skipVTables);
}
@@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo
internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Function(native.ToPointer(), skipVTables);
}
@@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9224,8 +9342,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -9292,6 +9410,7 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal byte isStatic;
internal byte isConst;
internal byte isExplicit;
+ internal byte isVolatile;
internal global::CppSharp.Parser.AST.CXXMethodKind methodKind;
internal byte isDefaultConstructor;
internal byte isCopyConstructor;
@@ -9324,6 +9443,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Method(native.ToPointer(), skipVTables);
}
@@ -9401,8 +9522,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i)
{
- var __ret = __Internal.GetOverriddenMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetOverriddenMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9472,6 +9593,19 @@ public bool IsExplicit
}
}
+ public bool IsVolatile
+ {
+ get
+ {
+ return ((__Internal*)__Instance)->isVolatile != 0;
+ }
+
+ set
+ {
+ ((__Internal*)__Instance)->isVolatile = (byte) (value ? 1 : 0);
+ }
+ }
+
public global::CppSharp.Parser.AST.CXXMethodKind MethodKind
{
get
@@ -9556,8 +9690,8 @@ public uint OverriddenMethodsCount
{
get
{
- var __ret = __Internal.GetOverriddenMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetOverriddenMethodsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9680,6 +9814,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis
internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Item(native.ToPointer(), skipVTables);
}
@@ -9785,6 +9921,8 @@ public ulong Value
internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Enumeration(native.ToPointer(), skipVTables);
}
@@ -9862,8 +10000,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i)
{
- var __ret = __Internal.GetItems(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetItems(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9886,9 +10024,9 @@ public void ClearItems()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, Name);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindItemByName(__Instance, __arg0);
+ var ___ret = __Internal.FindItemByName(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9937,8 +10075,8 @@ public uint ItemsCount
{
get
{
- var __ret = __Internal.GetItemsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetItemsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9987,6 +10125,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration,
internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Variable(native.ToPointer(), skipVTables);
}
@@ -10156,6 +10296,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BaseClassSpecifier(native.ToPointer(), skipVTables);
}
@@ -10329,6 +10471,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi
internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Field(native.ToPointer(), skipVTables);
}
@@ -10500,6 +10644,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De
internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AccessSpecifierDecl(native.ToPointer(), skipVTables);
}
@@ -10612,6 +10758,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableComponent(native.ToPointer(), skipVTables);
}
@@ -10777,6 +10925,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableLayout(native.ToPointer(), skipVTables);
}
@@ -10859,8 +11009,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i)
{
- var __ret = __Internal.GetComponents(__Instance, i);
- return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret);
+ var ___ret = __Internal.GetComponents(__Instance, i);
+ return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret);
}
public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s)
@@ -10880,8 +11030,8 @@ public uint ComponentsCount
{
get
{
- var __ret = __Internal.GetComponentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetComponentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -10926,6 +11076,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VFTableInfo(native.ToPointer(), skipVTables);
}
@@ -11101,6 +11253,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutField(native.ToPointer(), skipVTables);
}
@@ -11275,6 +11429,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutBase(native.ToPointer(), skipVTables);
}
@@ -11466,6 +11622,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassLayout(native.ToPointer(), skipVTables);
}
@@ -11548,11 +11706,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
- __Internal.GetVFTables(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
+ __Internal.GetVFTables(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s)
@@ -11570,11 +11728,11 @@ public void ClearVFTables()
public global::CppSharp.Parser.AST.LayoutField GetFields(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
- __Internal.GetFields(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
+ __Internal.GetFields(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddFields(global::CppSharp.Parser.AST.LayoutField s)
@@ -11592,11 +11750,11 @@ public void ClearFields()
public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
- __Internal.GetBases(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
+ __Internal.GetBases(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddBases(global::CppSharp.Parser.AST.LayoutBase s)
@@ -11722,8 +11880,8 @@ public uint VFTablesCount
{
get
{
- var __ret = __Internal.GetVFTablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVFTablesCount(__Instance);
+ return ___ret;
}
}
@@ -11731,8 +11889,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -11740,8 +11898,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
}
@@ -11861,6 +12019,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte
internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Class(native.ToPointer(), skipVTables);
}
@@ -11938,8 +12098,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i)
{
- var __ret = __Internal.GetBases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11959,8 +12119,8 @@ public void ClearBases()
public global::CppSharp.Parser.AST.Field GetFields(uint i)
{
- var __ret = __Internal.GetFields(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFields(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11980,8 +12140,8 @@ public void ClearFields()
public global::CppSharp.Parser.AST.Method GetMethods(uint i)
{
- var __ret = __Internal.GetMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12001,8 +12161,8 @@ public void ClearMethods()
public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i)
{
- var __ret = __Internal.GetSpecifiers(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecifiers(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12181,8 +12341,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
@@ -12190,8 +12350,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -12199,8 +12359,8 @@ public uint MethodsCount
{
get
{
- var __ret = __Internal.GetMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMethodsCount(__Instance);
+ return ___ret;
}
}
@@ -12208,8 +12368,8 @@ public uint SpecifiersCount
{
get
{
- var __ret = __Internal.GetSpecifiersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecifiersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12271,6 +12431,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration,
internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Template(native.ToPointer(), skipVTables);
}
@@ -12357,8 +12519,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12399,8 +12561,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12447,6 +12609,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp
internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAliasTemplate(native.ToPointer(), skipVTables);
}
@@ -12566,6 +12730,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl
internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12731,6 +12897,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser.
internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12890,6 +13058,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST.
internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12983,7 +13153,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable
{
- [StructLayout(LayoutKind.Sequential, Size = 192)]
+ [StructLayout(LayoutKind.Sequential, Size = 208)]
public new partial struct __Internal
{
internal global::CppSharp.Parser.AST.DeclarationKind kind;
@@ -13030,6 +13200,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A
internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NonTypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -13249,6 +13421,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template
internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplate(native.ToPointer(), skipVTables);
}
@@ -13326,8 +13500,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13350,9 +13524,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13361,9 +13535,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13371,8 +13545,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13459,6 +13633,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse
internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -13536,9 +13712,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -13585,8 +13761,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13661,6 +13837,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar
internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -13795,6 +13973,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ
internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplate(native.ToPointer(), skipVTables);
}
@@ -13872,8 +14052,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13896,9 +14076,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13906,8 +14086,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13964,6 +14144,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14046,9 +14228,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14109,8 +14291,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14176,6 +14358,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template,
internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplate(native.ToPointer(), skipVTables);
}
@@ -14253,8 +14437,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14277,9 +14461,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14288,9 +14472,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14298,8 +14482,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14363,6 +14547,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser.
internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14440,9 +14626,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(new IntPtr(&__ret), __Instance, i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(new IntPtr(&___ret), __Instance, i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14489,8 +14675,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14542,6 +14728,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp.
internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -14658,6 +14846,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS
internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingTypename(native.ToPointer(), skipVTables);
}
@@ -14786,6 +14976,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC
internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Namespace(native.ToPointer(), skipVTables);
}
@@ -14911,6 +15103,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PreprocessedEntity(native.ToPointer(), skipVTables);
}
@@ -15051,6 +15245,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro
internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroDefinition(native.ToPointer(), skipVTables);
}
@@ -15205,6 +15401,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc
internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroExpansion(native.ToPointer(), skipVTables);
}
@@ -15390,6 +15588,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp
internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TranslationUnit(native.ToPointer(), skipVTables);
}
@@ -15467,8 +15667,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i)
{
- var __ret = __Internal.GetMacros(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMacros(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15517,8 +15717,8 @@ public uint MacrosCount
{
get
{
- var __ret = __Internal.GetMacrosCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMacrosCount(__Instance);
+ return ___ret;
}
}
}
@@ -15575,6 +15775,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ASTContext(native.ToPointer(), skipVTables);
}
@@ -15660,16 +15862,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, File);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindOrCreateModule(__Instance, __arg0);
+ var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0);
__basicString0.Dispose(disposing: true, callNativeDtor:false);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i)
{
- var __ret = __Internal.GetTranslationUnits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTranslationUnits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15691,8 +15893,8 @@ public uint TranslationUnitsCount
{
get
{
- var __ret = __Internal.GetTranslationUnitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTranslationUnitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -15876,6 +16078,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Stmt(native.ToPointer(), skipVTables);
}
@@ -16056,6 +16260,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclStmt(native.ToPointer(), skipVTables);
}
@@ -16133,8 +16339,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration Getdecls(uint i)
{
- var __ret = __Internal.Getdecls(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getdecls(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16183,8 +16389,8 @@ public uint GetdeclsCount
{
get
{
- var __ret = __Internal.GetdeclsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetdeclsCount(__Instance);
+ return ___ret;
}
}
}
@@ -16210,6 +16416,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NullStmt(native.ToPointer(), skipVTables);
}
@@ -16335,6 +16543,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundStmt(native.ToPointer(), skipVTables);
}
@@ -16412,8 +16622,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Stmt Getbody(uint i)
{
- var __ret = __Internal.Getbody(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getbody(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16515,8 +16725,8 @@ public uint GetbodyCount
{
get
{
- var __ret = __Internal.GetbodyCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetbodyCount(__Instance);
+ return ___ret;
}
}
}
@@ -16546,6 +16756,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchCase(native.ToPointer(), skipVTables);
}
@@ -16685,6 +16897,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I
internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CaseStmt(native.ToPointer(), skipVTables);
}
@@ -16833,6 +17047,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase
internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DefaultStmt(native.ToPointer(), skipVTables);
}
@@ -16927,6 +17143,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo
private bool __name_OwnsNativeMemory = false;
internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LabelStmt(native.ToPointer(), skipVTables);
}
@@ -17060,6 +17278,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedStmt(native.ToPointer(), skipVTables);
}
@@ -17176,6 +17396,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IfStmt(native.ToPointer(), skipVTables);
}
@@ -17422,6 +17644,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchStmt(native.ToPointer(), skipVTables);
}
@@ -17612,6 +17836,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new WhileStmt(native.ToPointer(), skipVTables);
}
@@ -17762,6 +17988,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DoStmt(native.ToPointer(), skipVTables);
}
@@ -17914,6 +18142,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ForStmt(native.ToPointer(), skipVTables);
}
@@ -18102,6 +18332,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GotoStmt(native.ToPointer(), skipVTables);
}
@@ -18208,6 +18440,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt,
internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IndirectGotoStmt(native.ToPointer(), skipVTables);
}
@@ -18326,6 +18560,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ContinueStmt(native.ToPointer(), skipVTables);
}
@@ -18417,6 +18653,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BreakStmt(native.ToPointer(), skipVTables);
}
@@ -18509,6 +18747,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ReturnStmt(native.ToPointer(), skipVTables);
}
@@ -18652,6 +18892,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStmt(native.ToPointer(), skipVTables);
}
@@ -18738,8 +18980,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getinputs(uint i)
{
- var __ret = __Internal.Getinputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getinputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18759,8 +19001,8 @@ public void Clearinputs()
public global::CppSharp.Parser.AST.Expr Getoutputs(uint i)
{
- var __ret = __Internal.Getoutputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getoutputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18878,8 +19120,8 @@ public uint GetinputsCount
{
get
{
- var __ret = __Internal.GetinputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetinputsCount(__Instance);
+ return ___ret;
}
}
@@ -18887,8 +19129,8 @@ public uint GetoutputsCount
{
get
{
- var __ret = __Internal.GetoutputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetoutputsCount(__Instance);
+ return ___ret;
}
}
}
@@ -18970,6 +19212,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStringPiece(native.ToPointer(), skipVTables);
}
@@ -19119,6 +19363,8 @@ public sbyte Modifier
internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GCCAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19243,6 +19489,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi
internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19394,6 +19642,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID
internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHExceptStmt(native.ToPointer(), skipVTables);
}
@@ -19514,6 +19764,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHFinallyStmt(native.ToPointer(), skipVTables);
}
@@ -19624,6 +19876,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHTryStmt(native.ToPointer(), skipVTables);
}
@@ -19784,6 +20038,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHLeaveStmt(native.ToPointer(), skipVTables);
}
@@ -19937,6 +20193,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Capture(native.ToPointer(), skipVTables);
}
@@ -20093,6 +20351,8 @@ public bool CapturesVariableArrayType
internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CapturedStmt(native.ToPointer(), skipVTables);
}
@@ -20170,8 +20430,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -20220,8 +20480,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -20248,6 +20508,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXCatchStmt(native.ToPointer(), skipVTables);
}
@@ -20370,6 +20632,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTryStmt(native.ToPointer(), skipVTables);
}
@@ -20500,6 +20764,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt,
internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXForRangeStmt(native.ToPointer(), skipVTables);
}
@@ -20759,6 +21025,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST.
internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSDependentExistsStmt(native.ToPointer(), skipVTables);
}
@@ -20949,6 +21217,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CtorArgs(native.ToPointer(), skipVTables);
}
@@ -21027,6 +21297,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineBodyStmt(native.ToPointer(), skipVTables);
}
@@ -21296,6 +21568,8 @@ public enum SubStmt
internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoreturnStmt(native.ToPointer(), skipVTables);
}
@@ -21771,6 +22045,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Classification(native.ToPointer(), skipVTables);
}
@@ -21953,6 +22229,8 @@ public bool IsModifiable
internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Expr(native.ToPointer(), skipVTables);
}
@@ -22248,6 +22526,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullExpr(native.ToPointer(), skipVTables);
}
@@ -22368,6 +22648,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr,
internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConstantExpr(native.ToPointer(), skipVTables);
}
@@ -22462,6 +22744,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr,
internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OpaqueValueExpr(native.ToPointer(), skipVTables);
}
@@ -22605,6 +22889,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -22855,6 +23141,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I
internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IntegerLiteral(native.ToPointer(), skipVTables);
}
@@ -22974,6 +23262,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr
internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FixedPointLiteral(native.ToPointer(), skipVTables);
}
@@ -23103,6 +23393,8 @@ public enum CharacterKind
internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharacterLiteral(native.ToPointer(), skipVTables);
}
@@ -23236,6 +23528,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr,
internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FloatingLiteral(native.ToPointer(), skipVTables);
}
@@ -23367,6 +23661,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr,
internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImaginaryLiteral(native.ToPointer(), skipVTables);
}
@@ -23499,6 +23795,8 @@ public enum StringKind
internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StringLiteral(native.ToPointer(), skipVTables);
}
@@ -23819,6 +24117,8 @@ public enum IdentKind
internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PredefinedExpr(native.ToPointer(), skipVTables);
}
@@ -23939,6 +24239,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenExpr(native.ToPointer(), skipVTables);
}
@@ -24081,6 +24383,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID
internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryOperator(native.ToPointer(), skipVTables);
}
@@ -24320,6 +24624,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OffsetOfExpr(native.ToPointer(), skipVTables);
}
@@ -24470,6 +24776,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A
internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -24662,6 +24970,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp
internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArraySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -24849,6 +25159,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExpr(native.ToPointer(), skipVTables);
}
@@ -24935,8 +25247,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -25070,8 +25382,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -25122,6 +25434,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberExpr(native.ToPointer(), skipVTables);
}
@@ -25386,6 +25700,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex
internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -25528,6 +25844,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos
private bool __castKindName_OwnsNativeMemory = false;
internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CastExpr(native.ToPointer(), skipVTables);
}
@@ -25754,6 +26072,8 @@ public enum OnStack_t
internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25869,6 +26189,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE
internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25999,6 +26321,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici
internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CStyleCastExpr(native.ToPointer(), skipVTables);
}
@@ -26141,6 +26465,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I
internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperator(native.ToPointer(), skipVTables);
}
@@ -26538,6 +26864,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST
internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundAssignOperator(native.ToPointer(), skipVTables);
}
@@ -26685,6 +27013,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse
internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AbstractConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26865,6 +27195,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab
internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26991,6 +27323,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser.
internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -27112,6 +27446,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AddrLabelExpr(native.ToPointer(), skipVTables);
}
@@ -27232,6 +27568,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StmtExpr(native.ToPointer(), skipVTables);
}
@@ -27366,6 +27704,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ShuffleVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27499,6 +27839,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConvertVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27638,6 +27980,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ChooseExpr(native.ToPointer(), skipVTables);
}
@@ -27838,6 +28182,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GNUNullExpr(native.ToPointer(), skipVTables);
}
@@ -27946,6 +28292,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VAArgExpr(native.ToPointer(), skipVTables);
}
@@ -28102,6 +28450,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InitListExpr(native.ToPointer(), skipVTables);
}
@@ -28400,6 +28750,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Designator(native.ToPointer(), skipVTables);
}
@@ -28654,6 +29006,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FieldDesignator(native.ToPointer(), skipVTables);
}
@@ -28762,6 +29116,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables);
}
@@ -28840,6 +29196,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitExpr(native.ToPointer(), skipVTables);
}
@@ -29012,6 +29370,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NoInitExpr(native.ToPointer(), skipVTables);
}
@@ -29105,6 +29465,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A
internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables);
}
@@ -29226,6 +29588,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr
internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitLoopExpr(native.ToPointer(), skipVTables);
}
@@ -29345,6 +29709,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitIndexExpr(native.ToPointer(), skipVTables);
}
@@ -29436,6 +29802,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST.
internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -29530,6 +29898,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenListExpr(native.ToPointer(), skipVTables);
}
@@ -29668,6 +30038,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E
internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GenericSelectionExpr(native.ToPointer(), skipVTables);
}
@@ -29870,6 +30242,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E
internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtVectorElementExpr(native.ToPointer(), skipVTables);
}
@@ -30029,6 +30403,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockExpr(native.ToPointer(), skipVTables);
}
@@ -30150,6 +30526,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsTypeExpr(native.ToPointer(), skipVTables);
}
@@ -30285,6 +30663,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr,
internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PseudoObjectExpr(native.ToPointer(), skipVTables);
}
@@ -30495,6 +30875,8 @@ public enum AtomicOp
internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AtomicExpr(native.ToPointer(), skipVTables);
}
@@ -30790,6 +31172,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypoExpr(native.ToPointer(), skipVTables);
}
@@ -30897,6 +31281,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca
internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXOperatorCallExpr(native.ToPointer(), skipVTables);
}
@@ -31072,6 +31458,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call
internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXMemberCallExpr(native.ToPointer(), skipVTables);
}
@@ -31222,6 +31610,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal
internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CUDAKernelCallExpr(native.ToPointer(), skipVTables);
}
@@ -31361,6 +31751,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli
private bool __castName_OwnsNativeMemory = false;
internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNamedCastExpr(native.ToPointer(), skipVTables);
}
@@ -31546,6 +31938,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN
internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStaticCastExpr(native.ToPointer(), skipVTables);
}
@@ -31650,6 +32044,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX
internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDynamicCastExpr(native.ToPointer(), skipVTables);
}
@@ -31766,6 +32162,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST
internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables);
}
@@ -31869,6 +32267,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa
internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstCastExpr(native.ToPointer(), skipVTables);
}
@@ -31985,6 +32385,8 @@ public enum LiteralOperatorKind
internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UserDefinedLiteral(native.ToPointer(), skipVTables);
}
@@ -32136,6 +32538,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32254,6 +32658,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST.
internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32359,6 +32765,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser.
internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables);
}
@@ -32467,6 +32875,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTypeidExpr(native.ToPointer(), skipVTables);
}
@@ -32602,6 +33012,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr
internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertyRefExpr(native.ToPointer(), skipVTables);
}
@@ -32749,6 +33161,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS
internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -32887,6 +33301,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUuidofExpr(native.ToPointer(), skipVTables);
}
@@ -33039,6 +33455,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThisExpr(native.ToPointer(), skipVTables);
}
@@ -33159,6 +33577,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThrowExpr(native.ToPointer(), skipVTables);
}
@@ -33292,6 +33712,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr
internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultArgExpr(native.ToPointer(), skipVTables);
}
@@ -33412,6 +33834,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultInitExpr(native.ToPointer(), skipVTables);
}
@@ -33532,6 +33956,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E
internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -33672,6 +34098,8 @@ public enum ConstructionKind
internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExpr(native.ToPointer(), skipVTables);
}
@@ -33758,8 +34186,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -33892,8 +34320,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -33934,6 +34362,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A
internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables);
}
@@ -34075,6 +34505,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST.
internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables);
}
@@ -34217,6 +34649,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST
internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables);
}
@@ -34351,6 +34785,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LambdaExpr(native.ToPointer(), skipVTables);
}
@@ -34428,8 +34864,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -34572,8 +35008,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -34612,6 +35048,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST
internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -34753,6 +35191,8 @@ public enum InitializationStyle
internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNewExpr(native.ToPointer(), skipVTables);
}
@@ -34830,8 +35270,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i)
{
- var __ret = __Internal.GetplacementArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetplacementArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -35046,8 +35486,8 @@ public uint GetplacementArgumentsCount
{
get
{
- var __ret = __Internal.GetplacementArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetplacementArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -35091,6 +35531,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDeleteExpr(native.ToPointer(), skipVTables);
}
@@ -35272,6 +35714,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS
internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables);
}
@@ -35472,6 +35916,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35592,6 +36038,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35727,6 +36175,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex
internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35886,6 +36336,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FindResult(native.ToPointer(), skipVTables);
}
@@ -35964,6 +36416,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OverloadExpr(native.ToPointer(), skipVTables);
}
@@ -36183,6 +36637,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedLookupExpr(native.ToPointer(), skipVTables);
}
@@ -36307,6 +36763,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser.
internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -36492,6 +36950,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE
internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExprWithCleanups(native.ToPointer(), skipVTables);
}
@@ -36630,6 +37090,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser
internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables);
}
@@ -36707,8 +37169,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -36797,8 +37259,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -36849,6 +37311,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse
internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37128,6 +37592,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37315,6 +37781,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr,
internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNoexceptExpr(native.ToPointer(), skipVTables);
}
@@ -37435,6 +37903,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr
internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionExpr(native.ToPointer(), skipVTables);
}
@@ -37559,6 +38029,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I
internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SizeOfPackExpr(native.ToPointer(), skipVTables);
}
@@ -37731,6 +38203,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars
internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables);
}
@@ -37851,6 +38325,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp.
internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -37972,6 +38448,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E
internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -38123,6 +38601,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtraState(native.ToPointer(), skipVTables);
}
@@ -38201,6 +38681,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -38354,6 +38836,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFoldExpr(native.ToPointer(), skipVTables);
}
@@ -38571,6 +39055,8 @@ public enum SubExpr
internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineSuspendExpr(native.ToPointer(), skipVTables);
}
@@ -38767,6 +39253,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -38888,6 +39376,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E
internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentCoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -39027,6 +39517,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoyieldExpr(native.ToPointer(), skipVTables);
}
@@ -39198,6 +39690,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserTargetInfo(native.ToPointer(), skipVTables);
}
@@ -39870,6 +40364,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parser(native.ToPointer(), skipVTables);
}
@@ -40080,6 +40576,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppParserOptions(native.ToPointer(), skipVTables);
}
@@ -40162,8 +40660,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40178,8 +40676,8 @@ public void ClearArguments()
public string GetCompilationOptions(uint i)
{
- var __ret = __Internal.GetCompilationOptions(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetCompilationOptions(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddCompilationOptions(string s)
@@ -40194,8 +40692,8 @@ public void ClearCompilationOptions()
public string GetSourceFiles(uint i)
{
- var __ret = __Internal.GetSourceFiles(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSourceFiles(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSourceFiles(string s)
@@ -40210,8 +40708,8 @@ public void ClearSourceFiles()
public string GetIncludeDirs(uint i)
{
- var __ret = __Internal.GetIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddIncludeDirs(string s)
@@ -40226,8 +40724,8 @@ public void ClearIncludeDirs()
public string GetSystemIncludeDirs(uint i)
{
- var __ret = __Internal.GetSystemIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSystemIncludeDirs(string s)
@@ -40242,8 +40740,8 @@ public void ClearSystemIncludeDirs()
public string GetDefines(uint i)
{
- var __ret = __Internal.GetDefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDefines(string s)
@@ -40258,8 +40756,8 @@ public void ClearDefines()
public string GetUndefines(uint i)
{
- var __ret = __Internal.GetUndefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetUndefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddUndefines(string s)
@@ -40274,8 +40772,8 @@ public void ClearUndefines()
public string GetSupportedStdTypes(uint i)
{
- var __ret = __Internal.GetSupportedStdTypes(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedStdTypes(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedStdTypes(string s)
@@ -40290,8 +40788,8 @@ public void ClearSupportedStdTypes()
public string GetSupportedFunctionTemplates(uint i)
{
- var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedFunctionTemplates(string s)
@@ -40453,9 +40951,9 @@ public string ClangVersion
{
get
{
- var __ret = new global::Std.BasicString.__Internal();
- __Internal.GetClangVersion(new IntPtr(&__ret), __Instance);
- var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret));
+ var ___ret = new global::Std.BasicString.__Internal();
+ __Internal.GetClangVersion(new IntPtr(&___ret), __Instance);
+ var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret));
var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0);
__basicStringRet0.Dispose();
return __retString0;
@@ -40466,8 +40964,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40475,8 +40973,8 @@ public uint CompilationOptionsCount
{
get
{
- var __ret = __Internal.GetCompilationOptionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetCompilationOptionsCount(__Instance);
+ return ___ret;
}
}
@@ -40484,8 +40982,8 @@ public uint SourceFilesCount
{
get
{
- var __ret = __Internal.GetSourceFilesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSourceFilesCount(__Instance);
+ return ___ret;
}
}
@@ -40493,8 +40991,8 @@ public uint IncludeDirsCount
{
get
{
- var __ret = __Internal.GetIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40502,8 +41000,8 @@ public uint SystemIncludeDirsCount
{
get
{
- var __ret = __Internal.GetSystemIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40511,8 +41009,8 @@ public uint DefinesCount
{
get
{
- var __ret = __Internal.GetDefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40520,8 +41018,8 @@ public uint UndefinesCount
{
get
{
- var __ret = __Internal.GetUndefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetUndefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40529,8 +41027,8 @@ public uint SupportedStdTypesCount
{
get
{
- var __ret = __Internal.GetSupportedStdTypesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedStdTypesCount(__Instance);
+ return ___ret;
}
}
@@ -40538,8 +41036,8 @@ public uint SupportedFunctionTemplatesCount
{
get
{
- var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40619,6 +41117,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppLinkerOptions(native.ToPointer(), skipVTables);
}
@@ -40701,8 +41201,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40717,8 +41217,8 @@ public void ClearArguments()
public string GetLibraryDirs(uint i)
{
- var __ret = __Internal.GetLibraryDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraryDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraryDirs(string s)
@@ -40733,8 +41233,8 @@ public void ClearLibraryDirs()
public string GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraries(string s)
@@ -40751,8 +41251,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40760,8 +41260,8 @@ public uint LibraryDirsCount
{
get
{
- var __ret = __Internal.GetLibraryDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibraryDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40769,8 +41269,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40816,6 +41316,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserDiagnostic(native.ToPointer(), skipVTables);
}
@@ -41028,6 +41530,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserResult(native.ToPointer(), skipVTables);
}
@@ -41110,11 +41614,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i)
{
- var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
- __Internal.GetDiagnostics(new IntPtr(&__ret), __Instance, i);
- var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret);
- global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
+ __Internal.GetDiagnostics(new IntPtr(&___ret), __Instance, i);
+ var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret);
+ global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s)
@@ -41132,8 +41636,8 @@ public void ClearDiagnostics()
public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41182,8 +41686,8 @@ public uint DiagnosticsCount
{
get
{
- var __ret = __Internal.GetDiagnosticsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDiagnosticsCount(__Instance);
+ return ___ret;
}
}
@@ -41191,8 +41695,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -41241,6 +41745,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClangParser(native.ToPointer(), skipVTables);
}
@@ -41318,16 +41824,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseHeader(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseHeader(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseLibrary(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseLibrary(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41338,9 +41844,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41350,9 +41856,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString1 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString1, File);
var __arg1 = __basicString1.__Instance;
- var __ret = __Internal.Compile(__arg0, __arg1);
+ var ___ret = __Internal.Compile(__arg0, __arg1);
__basicString1.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41363,9 +41869,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
}
diff --git a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs
index 66048f8dca..91785e9fdf 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs
+++ b/src/CppParser/Bindings/CSharp/x86_64-linux-gnu/Std.cs
@@ -15,6 +15,8 @@
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace Std
{
namespace Allocator
@@ -52,6 +54,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static Allocator<_Tp> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Allocator<_Tp>(native.ToPointer(), skipVTables);
}
@@ -256,6 +260,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static CharTraits<_CharT> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharTraits<_CharT>(native.ToPointer(), skipVTables);
}
@@ -366,6 +372,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static BasicString<_CharT, _Traits, _Alloc> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BasicString<_CharT, _Traits, _Alloc>(native.ToPointer(), skipVTables);
}
@@ -468,16 +476,16 @@ public partial struct __Internal
public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string __s)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Assign(__arg0, __s);
- var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Assign(__arg0, __s);
+ var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static string Data(this global::Std.BasicString, global::Std.Allocator> @this)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Data(__arg0);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.Data(__arg0);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
}
}
diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser-symbols.cpp b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser-symbols.cpp
index 04a272aee0..7f36c12992 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser-symbols.cpp
+++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser-symbols.cpp
@@ -35,7 +35,6 @@ class CppSharp::CppParser::AST::InlineCommandComment& (CppSharp::CppParser::AST:
extern "C" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_InlineCommandComment__InlineCommandComment(CppSharp::CppParser::AST::InlineCommandComment*__instance) { __instance->~InlineCommandComment(); }
class CppSharp::CppParser::AST::HTMLTagComment& (CppSharp::CppParser::AST::HTMLTagComment::*_15)(class CppSharp::CppParser::AST::HTMLTagComment&&) = &CppSharp::CppParser::AST::HTMLTagComment::operator=;
class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute& (CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::*_16)(const class CppSharp::CppParser::AST::HTMLStartTagComment::Attribute&) = &CppSharp::CppParser::AST::HTMLStartTagComment::Attribute::operator=;
-extern "C" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_S_Attribute__Attribute(CppSharp::CppParser::AST::HTMLStartTagComment::Attribute*__instance) { __instance->~Attribute(); }
extern "C" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment_HTMLStartTagComment___1__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment(void* __instance, const CppSharp::CppParser::AST::HTMLStartTagComment& _0) { ::new (__instance) CppSharp::CppParser::AST::HTMLStartTagComment(_0); }
class CppSharp::CppParser::AST::HTMLStartTagComment& (CppSharp::CppParser::AST::HTMLStartTagComment::*_17)(class CppSharp::CppParser::AST::HTMLStartTagComment&&) = &CppSharp::CppParser::AST::HTMLStartTagComment::operator=;
extern "C" __declspec(dllexport) void c__N_CppSharp_N_CppParser_N_AST_S_HTMLStartTagComment__HTMLStartTagComment(CppSharp::CppParser::AST::HTMLStartTagComment*__instance) { __instance->~HTMLStartTagComment(); }
diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs
index 5c6dadc5fe..e8e7233f1d 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs
+++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/CppSharp.CppParser.cs
@@ -13,6 +13,8 @@
[assembly:InternalsVisibleTo("CppSharp.Parser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace CppSharp
{
namespace Parser
@@ -121,6 +123,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static NativeLibrary __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NativeLibrary(native.ToPointer(), skipVTables);
}
@@ -203,8 +207,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetSymbols(uint i)
{
- var __ret = __Internal.GetSymbols(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSymbols(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSymbols(string s)
@@ -219,8 +223,8 @@ public void ClearSymbols()
public string GetDependencies(uint i)
{
- var __ret = __Internal.GetDependencies(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDependencies(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDependencies(string s)
@@ -264,8 +268,8 @@ public uint SymbolsCount
{
get
{
- var __ret = __Internal.GetSymbolsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSymbolsCount(__Instance);
+ return ___ret;
}
}
@@ -273,8 +277,8 @@ public uint DependenciesCount
{
get
{
- var __ret = __Internal.GetDependenciesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDependenciesCount(__Instance);
+ return ___ret;
}
}
}
@@ -313,6 +317,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Comment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Comment(native.ToPointer(), skipVTables);
}
@@ -426,6 +432,8 @@ public unsafe partial class BlockContentComment : global::CppSharp.Parser.AST.Co
internal static new BlockContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockContentComment(native.ToPointer(), skipVTables);
}
@@ -530,6 +538,8 @@ public unsafe partial class FullComment : global::CppSharp.Parser.AST.Comment, I
internal static new FullComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullComment(native.ToPointer(), skipVTables);
}
@@ -607,8 +617,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockContentComment GetBlocks(uint i)
{
- var __ret = __Internal.GetBlocks(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBlocks(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BlockContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -630,8 +640,8 @@ public uint BlocksCount
{
get
{
- var __ret = __Internal.GetBlocksCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBlocksCount(__Instance);
+ return ___ret;
}
}
}
@@ -656,6 +666,8 @@ public unsafe partial class InlineContentComment : global::CppSharp.Parser.AST.C
internal static new InlineContentComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineContentComment(native.ToPointer(), skipVTables);
}
@@ -774,6 +786,8 @@ public unsafe partial class ParagraphComment : global::CppSharp.Parser.AST.Block
internal static new ParagraphComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParagraphComment(native.ToPointer(), skipVTables);
}
@@ -851,8 +865,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineContentComment GetContent(uint i)
{
- var __ret = __Internal.GetContent(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetContent(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.InlineContentComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -887,8 +901,8 @@ public uint ContentCount
{
get
{
- var __ret = __Internal.GetContentCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetContentCount(__Instance);
+ return ___ret;
}
}
}
@@ -965,6 +979,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -1062,6 +1078,8 @@ public string Text
internal static new BlockCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockCommandComment(native.ToPointer(), skipVTables);
}
@@ -1148,11 +1166,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BlockCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.BlockCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.BlockCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.BlockCommandComment.Argument s)
@@ -1204,8 +1222,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -1241,6 +1259,8 @@ public enum PassDirection
internal static new ParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1378,6 +1398,8 @@ public unsafe partial class TParamCommandComment : global::CppSharp.Parser.AST.B
internal static new TParamCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TParamCommandComment(native.ToPointer(), skipVTables);
}
@@ -1455,8 +1477,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public uint GetPosition(uint i)
{
- var __ret = __Internal.GetPosition(__Instance, i);
- return __ret;
+ var ___ret = __Internal.GetPosition(__Instance, i);
+ return ___ret;
}
public void AddPosition(ref uint s)
@@ -1477,8 +1499,8 @@ public uint PositionCount
{
get
{
- var __ret = __Internal.GetPositionCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPositionCount(__Instance);
+ return ___ret;
}
}
}
@@ -1503,6 +1525,8 @@ public unsafe partial class VerbatimBlockLineComment : global::CppSharp.Parser.A
internal static new VerbatimBlockLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockLineComment(native.ToPointer(), skipVTables);
}
@@ -1628,6 +1652,8 @@ public unsafe partial class VerbatimBlockComment : global::CppSharp.Parser.AST.B
internal static new VerbatimBlockComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimBlockComment(native.ToPointer(), skipVTables);
}
@@ -1705,8 +1731,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VerbatimBlockLineComment GetLines(uint i)
{
- var __ret = __Internal.GetLines(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLines(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VerbatimBlockLineComment.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -1728,8 +1754,8 @@ public uint LinesCount
{
get
{
- var __ret = __Internal.GetLinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLinesCount(__Instance);
+ return ___ret;
}
}
}
@@ -1757,6 +1783,8 @@ public unsafe partial class VerbatimLineComment : global::CppSharp.Parser.AST.Bl
internal static new VerbatimLineComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VerbatimLineComment(native.ToPointer(), skipVTables);
}
@@ -1926,6 +1954,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Argument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Argument(native.ToPointer(), skipVTables);
}
@@ -2023,6 +2053,8 @@ public string Text
internal static new InlineCommandComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InlineCommandComment(native.ToPointer(), skipVTables);
}
@@ -2100,11 +2132,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.InlineCommandComment.Argument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.InlineCommandComment.Argument.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.InlineCommandComment.Argument.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddArguments(global::CppSharp.Parser.AST.InlineCommandComment.Argument s)
@@ -2150,8 +2182,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -2176,6 +2208,8 @@ public unsafe partial class HTMLTagComment : global::CppSharp.Parser.AST.InlineC
internal static new HTMLTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLTagComment(native.ToPointer(), skipVTables);
}
@@ -2318,6 +2352,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Attribute __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Attribute(native.ToPointer(), skipVTables);
}
@@ -2429,6 +2465,8 @@ public string Value
internal static new HTMLStartTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLStartTagComment(native.ToPointer(), skipVTables);
}
@@ -2506,11 +2544,11 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute GetAttributes(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
- __Internal.GetAttributes(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal();
+ __Internal.GetAttributes(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddAttributes(global::CppSharp.Parser.AST.HTMLStartTagComment.Attribute s)
@@ -2544,8 +2582,8 @@ public uint AttributesCount
{
get
{
- var __ret = __Internal.GetAttributesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetAttributesCount(__Instance);
+ return ___ret;
}
}
}
@@ -2571,6 +2609,8 @@ public unsafe partial class HTMLEndTagComment : global::CppSharp.Parser.AST.HTML
internal static new HTMLEndTagComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new HTMLEndTagComment(native.ToPointer(), skipVTables);
}
@@ -2682,6 +2722,8 @@ public unsafe partial class TextComment : global::CppSharp.Parser.AST.InlineCont
internal static new TextComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TextComment(native.ToPointer(), skipVTables);
}
@@ -2812,6 +2854,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static RawComment __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new RawComment(native.ToPointer(), skipVTables);
}
@@ -3070,6 +3114,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static SourceRange __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SourceRange(native.ToPointer(), skipVTables);
}
@@ -3292,6 +3338,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Type __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Type(native.ToPointer(), skipVTables);
}
@@ -3435,6 +3483,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TypeQualifiers __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeQualifiers(native.ToPointer(), skipVTables);
}
@@ -3584,6 +3634,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static QualifiedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new QualifiedType(native.ToPointer(), skipVTables);
}
@@ -3707,6 +3759,8 @@ public unsafe partial class TagType : global::CppSharp.Parser.AST.Type, IDisposa
internal static new TagType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TagType(native.ToPointer(), skipVTables);
}
@@ -3811,6 +3865,8 @@ public enum ArraySize
internal static new ArrayType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayType(native.ToPointer(), skipVTables);
}
@@ -3962,6 +4018,8 @@ public unsafe partial class FunctionType : global::CppSharp.Parser.AST.Type, IDi
internal static new FunctionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionType(native.ToPointer(), skipVTables);
}
@@ -4039,8 +4097,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -4103,8 +4161,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -4136,6 +4194,8 @@ public enum TypeModifier
internal static new PointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PointerType(native.ToPointer(), skipVTables);
}
@@ -4243,6 +4303,8 @@ public unsafe partial class MemberPointerType : global::CppSharp.Parser.AST.Type
internal static new MemberPointerType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberPointerType(native.ToPointer(), skipVTables);
}
@@ -4337,6 +4399,8 @@ public unsafe partial class TypedefType : global::CppSharp.Parser.AST.Type, IDis
internal static new TypedefType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefType(native.ToPointer(), skipVTables);
}
@@ -4431,6 +4495,8 @@ public unsafe partial class AttributedType : global::CppSharp.Parser.AST.Type, I
internal static new AttributedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedType(native.ToPointer(), skipVTables);
}
@@ -4542,6 +4608,8 @@ public unsafe partial class DecayedType : global::CppSharp.Parser.AST.Type, IDis
internal static new DecayedType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DecayedType(native.ToPointer(), skipVTables);
}
@@ -4697,6 +4765,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static TemplateArgument __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateArgument(native.ToPointer(), skipVTables);
}
@@ -4863,6 +4933,8 @@ public unsafe partial class TemplateSpecializationType : global::CppSharp.Parser
internal static new TemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -4940,9 +5012,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -4991,8 +5063,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5031,6 +5103,8 @@ public unsafe partial class DependentTemplateSpecializationType : global::CppSha
internal static new DependentTemplateSpecializationType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentTemplateSpecializationType(native.ToPointer(), skipVTables);
}
@@ -5108,9 +5182,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -5145,8 +5219,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -5175,6 +5249,8 @@ public unsafe partial class TemplateParameterType : global::CppSharp.Parser.AST.
internal static new TemplateParameterType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterType(native.ToPointer(), skipVTables);
}
@@ -5323,6 +5399,8 @@ public unsafe partial class TemplateParameterSubstitutionType : global::CppSharp
internal static new TemplateParameterSubstitutionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameterSubstitutionType(native.ToPointer(), skipVTables);
}
@@ -5432,6 +5510,8 @@ public unsafe partial class InjectedClassNameType : global::CppSharp.Parser.AST.
internal static new InjectedClassNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InjectedClassNameType(native.ToPointer(), skipVTables);
}
@@ -5544,6 +5624,8 @@ public unsafe partial class DependentNameType : global::CppSharp.Parser.AST.Type
internal static new DependentNameType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentNameType(native.ToPointer(), skipVTables);
}
@@ -5666,6 +5748,8 @@ public unsafe partial class PackExpansionType : global::CppSharp.Parser.AST.Type
internal static new PackExpansionType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionType(native.ToPointer(), skipVTables);
}
@@ -5746,6 +5830,8 @@ public unsafe partial class UnaryTransformType : global::CppSharp.Parser.AST.Typ
internal static new UnaryTransformType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryTransformType(native.ToPointer(), skipVTables);
}
@@ -5855,6 +5941,8 @@ public unsafe partial class UnresolvedUsingType : global::CppSharp.Parser.AST.Ty
internal static new UnresolvedUsingType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingType(native.ToPointer(), skipVTables);
}
@@ -5949,6 +6037,8 @@ public unsafe partial class VectorType : global::CppSharp.Parser.AST.Type, IDisp
internal static new VectorType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VectorType(native.ToPointer(), skipVTables);
}
@@ -6056,6 +6146,8 @@ public unsafe partial class BuiltinType : global::CppSharp.Parser.AST.Type, IDis
internal static new BuiltinType __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BuiltinType(native.ToPointer(), skipVTables);
}
@@ -6418,6 +6510,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Declaration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Declaration(native.ToPointer(), skipVTables);
}
@@ -6500,8 +6594,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.PreprocessedEntity GetPreprocessedEntities(uint i)
{
- var __ret = __Internal.GetPreprocessedEntities(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetPreprocessedEntities(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.PreprocessedEntity.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6521,8 +6615,8 @@ public void ClearPreprocessedEntities()
public global::CppSharp.Parser.AST.Declaration GetRedeclarations(uint i)
{
- var __ret = __Internal.GetRedeclarations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetRedeclarations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -6815,8 +6909,8 @@ public uint PreprocessedEntitiesCount
{
get
{
- var __ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetPreprocessedEntitiesCount(__Instance);
+ return ___ret;
}
}
@@ -6824,8 +6918,8 @@ public uint RedeclarationsCount
{
get
{
- var __ret = __Internal.GetRedeclarationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetRedeclarationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -6989,6 +7083,8 @@ public unsafe partial class DeclarationContext : global::CppSharp.Parser.AST.Dec
internal static new DeclarationContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclarationContext(native.ToPointer(), skipVTables);
}
@@ -7066,8 +7162,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Namespace GetNamespaces(uint i)
{
- var __ret = __Internal.GetNamespaces(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetNamespaces(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Namespace.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7087,8 +7183,8 @@ public void ClearNamespaces()
public global::CppSharp.Parser.AST.Enumeration GetEnums(uint i)
{
- var __ret = __Internal.GetEnums(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetEnums(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7108,8 +7204,8 @@ public void ClearEnums()
public global::CppSharp.Parser.AST.Function GetFunctions(uint i)
{
- var __ret = __Internal.GetFunctions(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFunctions(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Function.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7129,8 +7225,8 @@ public void ClearFunctions()
public global::CppSharp.Parser.AST.Class GetClasses(uint i)
{
- var __ret = __Internal.GetClasses(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetClasses(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Class.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7150,8 +7246,8 @@ public void ClearClasses()
public global::CppSharp.Parser.AST.Template GetTemplates(uint i)
{
- var __ret = __Internal.GetTemplates(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTemplates(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Template.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7171,8 +7267,8 @@ public void ClearTemplates()
public global::CppSharp.Parser.AST.TypedefDecl GetTypedefs(uint i)
{
- var __ret = __Internal.GetTypedefs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypedefs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypedefDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7192,8 +7288,8 @@ public void ClearTypedefs()
public global::CppSharp.Parser.AST.TypeAlias GetTypeAliases(uint i)
{
- var __ret = __Internal.GetTypeAliases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTypeAliases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TypeAlias.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7213,8 +7309,8 @@ public void ClearTypeAliases()
public global::CppSharp.Parser.AST.Variable GetVariables(uint i)
{
- var __ret = __Internal.GetVariables(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetVariables(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Variable.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7234,8 +7330,8 @@ public void ClearVariables()
public global::CppSharp.Parser.AST.Friend GetFriends(uint i)
{
- var __ret = __Internal.GetFriends(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFriends(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Friend.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -7275,8 +7371,8 @@ public uint NamespacesCount
{
get
{
- var __ret = __Internal.GetNamespacesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetNamespacesCount(__Instance);
+ return ___ret;
}
}
@@ -7284,8 +7380,8 @@ public uint EnumsCount
{
get
{
- var __ret = __Internal.GetEnumsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetEnumsCount(__Instance);
+ return ___ret;
}
}
@@ -7293,8 +7389,8 @@ public uint FunctionsCount
{
get
{
- var __ret = __Internal.GetFunctionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFunctionsCount(__Instance);
+ return ___ret;
}
}
@@ -7302,8 +7398,8 @@ public uint ClassesCount
{
get
{
- var __ret = __Internal.GetClassesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetClassesCount(__Instance);
+ return ___ret;
}
}
@@ -7311,8 +7407,8 @@ public uint TemplatesCount
{
get
{
- var __ret = __Internal.GetTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTemplatesCount(__Instance);
+ return ___ret;
}
}
@@ -7320,8 +7416,8 @@ public uint TypedefsCount
{
get
{
- var __ret = __Internal.GetTypedefsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypedefsCount(__Instance);
+ return ___ret;
}
}
@@ -7329,8 +7425,8 @@ public uint TypeAliasesCount
{
get
{
- var __ret = __Internal.GetTypeAliasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTypeAliasesCount(__Instance);
+ return ___ret;
}
}
@@ -7338,8 +7434,8 @@ public uint VariablesCount
{
get
{
- var __ret = __Internal.GetVariablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVariablesCount(__Instance);
+ return ___ret;
}
}
@@ -7347,8 +7443,8 @@ public uint FriendsCount
{
get
{
- var __ret = __Internal.GetFriendsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFriendsCount(__Instance);
+ return ___ret;
}
}
}
@@ -7394,6 +7490,8 @@ public unsafe partial class TypedefNameDecl : global::CppSharp.Parser.AST.Declar
internal static new TypedefNameDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefNameDecl(native.ToPointer(), skipVTables);
}
@@ -7531,6 +7629,8 @@ public unsafe partial class TypedefDecl : global::CppSharp.Parser.AST.TypedefNam
internal static new TypedefDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypedefDecl(native.ToPointer(), skipVTables);
}
@@ -7649,6 +7749,8 @@ public unsafe partial class TypeAlias : global::CppSharp.Parser.AST.TypedefNameD
internal static new TypeAlias __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAlias(native.ToPointer(), skipVTables);
}
@@ -7780,6 +7882,8 @@ public unsafe partial class Friend : global::CppSharp.Parser.AST.Declaration, ID
internal static new Friend __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Friend(native.ToPointer(), skipVTables);
}
@@ -7909,6 +8013,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static StatementObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StatementObsolete(native.ToPointer(), skipVTables);
}
@@ -8057,6 +8163,8 @@ public unsafe partial class ExpressionObsolete : global::CppSharp.Parser.AST.Sta
internal static new ExpressionObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionObsolete(native.ToPointer(), skipVTables);
}
@@ -8162,6 +8270,8 @@ public unsafe partial class BinaryOperatorObsolete : global::CppSharp.Parser.AST
internal static new BinaryOperatorObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperatorObsolete(native.ToPointer(), skipVTables);
}
@@ -8324,6 +8434,8 @@ public unsafe partial class CallExprObsolete : global::CppSharp.Parser.AST.Expre
internal static new CallExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8406,8 +8518,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8429,8 +8541,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8469,6 +8581,8 @@ public unsafe partial class CXXConstructExprObsolete : global::CppSharp.Parser.A
internal static new CXXConstructExprObsolete __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExprObsolete(native.ToPointer(), skipVTables);
}
@@ -8551,8 +8665,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ExpressionObsolete GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ExpressionObsolete.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -8574,8 +8688,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -8626,6 +8740,8 @@ public unsafe partial class Parameter : global::CppSharp.Parser.AST.Declaration,
internal static new Parameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parameter(native.ToPointer(), skipVTables);
}
@@ -8867,6 +8983,8 @@ public unsafe partial class Function : global::CppSharp.Parser.AST.DeclarationCo
internal static new Function __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Function(native.ToPointer(), skipVTables);
}
@@ -8944,8 +9062,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Parameter GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Parameter.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9224,8 +9342,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -9292,6 +9410,7 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal byte isStatic;
internal byte isConst;
internal byte isExplicit;
+ internal byte isVolatile;
internal global::CppSharp.Parser.AST.CXXMethodKind methodKind;
internal byte isDefaultConstructor;
internal byte isCopyConstructor;
@@ -9324,6 +9443,8 @@ public unsafe partial class Method : global::CppSharp.Parser.AST.Function, IDisp
internal static new Method __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Method(native.ToPointer(), skipVTables);
}
@@ -9401,8 +9522,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Method GetOverriddenMethods(uint i)
{
- var __ret = __Internal.GetOverriddenMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetOverriddenMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9472,6 +9593,19 @@ public bool IsExplicit
}
}
+ public bool IsVolatile
+ {
+ get
+ {
+ return ((__Internal*)__Instance)->isVolatile != 0;
+ }
+
+ set
+ {
+ ((__Internal*)__Instance)->isVolatile = (byte) (value ? 1 : 0);
+ }
+ }
+
public global::CppSharp.Parser.AST.CXXMethodKind MethodKind
{
get
@@ -9556,8 +9690,8 @@ public uint OverriddenMethodsCount
{
get
{
- var __ret = __Internal.GetOverriddenMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetOverriddenMethodsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9681,6 +9815,8 @@ public unsafe partial class Item : global::CppSharp.Parser.AST.Declaration, IDis
internal static new Item __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Item(native.ToPointer(), skipVTables);
}
@@ -9786,6 +9922,8 @@ public ulong Value
internal static new Enumeration __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Enumeration(native.ToPointer(), skipVTables);
}
@@ -9863,8 +10001,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Enumeration.Item GetItems(uint i)
{
- var __ret = __Internal.GetItems(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetItems(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9887,9 +10025,9 @@ public void ClearItems()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, Name);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindItemByName(__Instance, __arg0);
+ var ___ret = __Internal.FindItemByName(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.Enumeration.Item.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -9938,8 +10076,8 @@ public uint ItemsCount
{
get
{
- var __ret = __Internal.GetItemsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetItemsCount(__Instance);
+ return ___ret;
}
}
}
@@ -9988,6 +10126,8 @@ public unsafe partial class Variable : global::CppSharp.Parser.AST.Declaration,
internal static new Variable __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Variable(native.ToPointer(), skipVTables);
}
@@ -10157,6 +10297,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static BaseClassSpecifier __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BaseClassSpecifier(native.ToPointer(), skipVTables);
}
@@ -10330,6 +10472,8 @@ public unsafe partial class Field : global::CppSharp.Parser.AST.Declaration, IDi
internal static new Field __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Field(native.ToPointer(), skipVTables);
}
@@ -10501,6 +10645,8 @@ public unsafe partial class AccessSpecifierDecl : global::CppSharp.Parser.AST.De
internal static new AccessSpecifierDecl __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AccessSpecifierDecl(native.ToPointer(), skipVTables);
}
@@ -10613,6 +10759,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableComponent __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableComponent(native.ToPointer(), skipVTables);
}
@@ -10778,6 +10926,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VTableLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VTableLayout(native.ToPointer(), skipVTables);
}
@@ -10860,9 +11010,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VTableComponent GetComponents(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal();
- __Internal.GetComponents(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.VTableComponent.__Internal();
+ __Internal.GetComponents(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.VTableComponent.__CreateInstance(___ret);
}
public void AddComponents(global::CppSharp.Parser.AST.VTableComponent s)
@@ -10882,8 +11032,8 @@ public uint ComponentsCount
{
get
{
- var __ret = __Internal.GetComponentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetComponentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -10928,6 +11078,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static VFTableInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VFTableInfo(native.ToPointer(), skipVTables);
}
@@ -11103,6 +11255,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutField __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutField(native.ToPointer(), skipVTables);
}
@@ -11277,6 +11431,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static LayoutBase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LayoutBase(native.ToPointer(), skipVTables);
}
@@ -11468,6 +11624,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClassLayout __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassLayout(native.ToPointer(), skipVTables);
}
@@ -11550,11 +11708,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VFTableInfo GetVFTables(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
- __Internal.GetVFTables(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.VFTableInfo.__Internal();
+ __Internal.GetVFTables(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.VFTableInfo.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.VFTableInfo.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddVFTables(global::CppSharp.Parser.AST.VFTableInfo s)
@@ -11572,11 +11730,11 @@ public void ClearVFTables()
public global::CppSharp.Parser.AST.LayoutField GetFields(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
- __Internal.GetFields(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutField.__Internal();
+ __Internal.GetFields(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutField.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutField.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddFields(global::CppSharp.Parser.AST.LayoutField s)
@@ -11594,11 +11752,11 @@ public void ClearFields()
public global::CppSharp.Parser.AST.LayoutBase GetBases(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
- __Internal.GetBases(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(__ret);
- global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.AST.LayoutBase.__Internal();
+ __Internal.GetBases(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.AST.LayoutBase.__CreateInstance(___ret);
+ global::CppSharp.Parser.AST.LayoutBase.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddBases(global::CppSharp.Parser.AST.LayoutBase s)
@@ -11724,8 +11882,8 @@ public uint VFTablesCount
{
get
{
- var __ret = __Internal.GetVFTablesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetVFTablesCount(__Instance);
+ return ___ret;
}
}
@@ -11733,8 +11891,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -11742,8 +11900,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
}
@@ -11863,6 +12021,8 @@ public unsafe partial class Class : global::CppSharp.Parser.AST.DeclarationConte
internal static new Class __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Class(native.ToPointer(), skipVTables);
}
@@ -11940,8 +12100,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.BaseClassSpecifier GetBases(uint i)
{
- var __ret = __Internal.GetBases(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetBases(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.BaseClassSpecifier.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11961,8 +12121,8 @@ public void ClearBases()
public global::CppSharp.Parser.AST.Field GetFields(uint i)
{
- var __ret = __Internal.GetFields(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetFields(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Field.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -11982,8 +12142,8 @@ public void ClearFields()
public global::CppSharp.Parser.AST.Method GetMethods(uint i)
{
- var __ret = __Internal.GetMethods(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMethods(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Method.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12003,8 +12163,8 @@ public void ClearMethods()
public global::CppSharp.Parser.AST.AccessSpecifierDecl GetSpecifiers(uint i)
{
- var __ret = __Internal.GetSpecifiers(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecifiers(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.AccessSpecifierDecl.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12183,8 +12343,8 @@ public uint BasesCount
{
get
{
- var __ret = __Internal.GetBasesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetBasesCount(__Instance);
+ return ___ret;
}
}
@@ -12192,8 +12352,8 @@ public uint FieldsCount
{
get
{
- var __ret = __Internal.GetFieldsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetFieldsCount(__Instance);
+ return ___ret;
}
}
@@ -12201,8 +12361,8 @@ public uint MethodsCount
{
get
{
- var __ret = __Internal.GetMethodsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMethodsCount(__Instance);
+ return ___ret;
}
}
@@ -12210,8 +12370,8 @@ public uint SpecifiersCount
{
get
{
- var __ret = __Internal.GetSpecifiersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecifiersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12273,6 +12433,8 @@ public unsafe partial class Template : global::CppSharp.Parser.AST.Declaration,
internal static new Template __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Template(native.ToPointer(), skipVTables);
}
@@ -12359,8 +12521,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration GetParameters(uint i)
{
- var __ret = __Internal.GetParameters(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetParameters(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -12401,8 +12563,8 @@ public uint ParametersCount
{
get
{
- var __ret = __Internal.GetParametersCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetParametersCount(__Instance);
+ return ___ret;
}
}
}
@@ -12449,6 +12611,8 @@ public unsafe partial class TypeAliasTemplate : global::CppSharp.Parser.AST.Temp
internal static new TypeAliasTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeAliasTemplate(native.ToPointer(), skipVTables);
}
@@ -12568,6 +12732,8 @@ public unsafe partial class TemplateParameter : global::CppSharp.Parser.AST.Decl
internal static new TemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12733,6 +12899,8 @@ public unsafe partial class TemplateTemplateParameter : global::CppSharp.Parser.
internal static new TemplateTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TemplateTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12892,6 +13060,8 @@ public unsafe partial class TypeTemplateParameter : global::CppSharp.Parser.AST.
internal static new TypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -12985,7 +13155,7 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.AST.TemplateParameter, IDisposable
{
- [StructLayout(LayoutKind.Sequential, Size = 264)]
+ [StructLayout(LayoutKind.Sequential, Size = 280)]
public new partial struct __Internal
{
internal global::CppSharp.Parser.AST.DeclarationKind kind;
@@ -13032,6 +13202,8 @@ public unsafe partial class NonTypeTemplateParameter : global::CppSharp.Parser.A
internal static new NonTypeTemplateParameter __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NonTypeTemplateParameter(native.ToPointer(), skipVTables);
}
@@ -13251,6 +13423,8 @@ public unsafe partial class ClassTemplate : global::CppSharp.Parser.AST.Template
internal static new ClassTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplate(native.ToPointer(), skipVTables);
}
@@ -13328,8 +13502,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.ClassTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13352,9 +13526,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13363,9 +13537,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.ClassTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13373,8 +13547,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13461,6 +13635,8 @@ public unsafe partial class ClassTemplateSpecialization : global::CppSharp.Parse
internal static new ClassTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -13538,9 +13714,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -13587,8 +13763,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13663,6 +13839,8 @@ public unsafe partial class ClassTemplatePartialSpecialization : global::CppShar
internal static new ClassTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClassTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -13797,6 +13975,8 @@ public unsafe partial class FunctionTemplate : global::CppSharp.Parser.AST.Templ
internal static new FunctionTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplate(native.ToPointer(), skipVTables);
}
@@ -13874,8 +14054,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.FunctionTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13898,9 +14078,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.FunctionTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -13908,8 +14088,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -13966,6 +14146,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FunctionTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14048,9 +14230,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14111,8 +14293,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14178,6 +14360,8 @@ public unsafe partial class VarTemplate : global::CppSharp.Parser.AST.Template,
internal static new VarTemplate __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplate(native.ToPointer(), skipVTables);
}
@@ -14255,8 +14439,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.VarTemplateSpecialization GetSpecializations(uint i)
{
- var __ret = __Internal.GetSpecializations(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetSpecializations(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14279,9 +14463,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplateSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14290,9 +14474,9 @@ public void ClearSpecializations()
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, usr);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
+ var ___ret = __Internal.FindPartialSpecialization(__Instance, __arg0);
__basicString0.Dispose();
- var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.VarTemplatePartialSpecialization.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -14300,8 +14484,8 @@ public uint SpecializationsCount
{
get
{
- var __ret = __Internal.GetSpecializationsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSpecializationsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14365,6 +14549,8 @@ public unsafe partial class VarTemplateSpecialization : global::CppSharp.Parser.
internal static new VarTemplateSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplateSpecialization(native.ToPointer(), skipVTables);
}
@@ -14442,9 +14628,9 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.TemplateArgument GetArguments(uint i)
{
- var __ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
- __Internal.GetArguments(__Instance, new IntPtr(&__ret), i);
- return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(__ret);
+ var ___ret = new global::CppSharp.Parser.AST.TemplateArgument.__Internal();
+ __Internal.GetArguments(__Instance, new IntPtr(&___ret), i);
+ return global::CppSharp.Parser.AST.TemplateArgument.__CreateInstance(___ret);
}
public void AddArguments(global::CppSharp.Parser.AST.TemplateArgument s)
@@ -14491,8 +14677,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -14544,6 +14730,8 @@ public unsafe partial class VarTemplatePartialSpecialization : global::CppSharp.
internal static new VarTemplatePartialSpecialization __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VarTemplatePartialSpecialization(native.ToPointer(), skipVTables);
}
@@ -14660,6 +14848,8 @@ public unsafe partial class UnresolvedUsingTypename : global::CppSharp.Parser.AS
internal static new UnresolvedUsingTypename __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedUsingTypename(native.ToPointer(), skipVTables);
}
@@ -14789,6 +14979,8 @@ public unsafe partial class Namespace : global::CppSharp.Parser.AST.DeclarationC
internal static new Namespace __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Namespace(native.ToPointer(), skipVTables);
}
@@ -14914,6 +15106,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static PreprocessedEntity __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PreprocessedEntity(native.ToPointer(), skipVTables);
}
@@ -15054,6 +15248,8 @@ public unsafe partial class MacroDefinition : global::CppSharp.Parser.AST.Prepro
internal static new MacroDefinition __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroDefinition(native.ToPointer(), skipVTables);
}
@@ -15208,6 +15404,8 @@ public unsafe partial class MacroExpansion : global::CppSharp.Parser.AST.Preproc
internal static new MacroExpansion __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MacroExpansion(native.ToPointer(), skipVTables);
}
@@ -15394,6 +15592,8 @@ public unsafe partial class TranslationUnit : global::CppSharp.Parser.AST.Namesp
internal static new TranslationUnit __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TranslationUnit(native.ToPointer(), skipVTables);
}
@@ -15471,8 +15671,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.MacroDefinition GetMacros(uint i)
{
- var __ret = __Internal.GetMacros(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetMacros(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.MacroDefinition.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15521,8 +15721,8 @@ public uint MacrosCount
{
get
{
- var __ret = __Internal.GetMacrosCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetMacrosCount(__Instance);
+ return ___ret;
}
}
}
@@ -15579,6 +15779,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ASTContext __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ASTContext(native.ToPointer(), skipVTables);
}
@@ -15664,16 +15866,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString0 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString0, File);
var __arg0 = __basicString0.__Instance;
- var __ret = __Internal.FindOrCreateModule(__Instance, __arg0);
+ var ___ret = __Internal.FindOrCreateModule(__Instance, __arg0);
__basicString0.Dispose(disposing: true, callNativeDtor:false);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
public global::CppSharp.Parser.AST.TranslationUnit GetTranslationUnits(uint i)
{
- var __ret = __Internal.GetTranslationUnits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetTranslationUnits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.TranslationUnit.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -15695,8 +15897,8 @@ public uint TranslationUnitsCount
{
get
{
- var __ret = __Internal.GetTranslationUnitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetTranslationUnitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -15880,6 +16082,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Stmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Stmt(native.ToPointer(), skipVTables);
}
@@ -16060,6 +16264,8 @@ public unsafe partial class DeclStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new DeclStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclStmt(native.ToPointer(), skipVTables);
}
@@ -16137,8 +16343,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Declaration Getdecls(uint i)
{
- var __ret = __Internal.Getdecls(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getdecls(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Declaration.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16187,8 +16393,8 @@ public uint GetdeclsCount
{
get
{
- var __ret = __Internal.GetdeclsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetdeclsCount(__Instance);
+ return ___ret;
}
}
}
@@ -16214,6 +16420,8 @@ public unsafe partial class NullStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new NullStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NullStmt(native.ToPointer(), skipVTables);
}
@@ -16339,6 +16547,8 @@ public unsafe partial class CompoundStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CompoundStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundStmt(native.ToPointer(), skipVTables);
}
@@ -16416,8 +16626,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Stmt Getbody(uint i)
{
- var __ret = __Internal.Getbody(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getbody(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Stmt.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -16519,8 +16729,8 @@ public uint GetbodyCount
{
get
{
- var __ret = __Internal.GetbodyCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetbodyCount(__Instance);
+ return ___ret;
}
}
}
@@ -16550,6 +16760,8 @@ public unsafe partial class SwitchCase : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchCase __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchCase(native.ToPointer(), skipVTables);
}
@@ -16689,6 +16901,8 @@ public unsafe partial class CaseStmt : global::CppSharp.Parser.AST.SwitchCase, I
internal static new CaseStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CaseStmt(native.ToPointer(), skipVTables);
}
@@ -16837,6 +17051,8 @@ public unsafe partial class DefaultStmt : global::CppSharp.Parser.AST.SwitchCase
internal static new DefaultStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DefaultStmt(native.ToPointer(), skipVTables);
}
@@ -16931,6 +17147,8 @@ public unsafe partial class LabelStmt : global::CppSharp.Parser.AST.Stmt, IDispo
private bool __name_OwnsNativeMemory = false;
internal static new LabelStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LabelStmt(native.ToPointer(), skipVTables);
}
@@ -17064,6 +17282,8 @@ public unsafe partial class AttributedStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new AttributedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AttributedStmt(native.ToPointer(), skipVTables);
}
@@ -17180,6 +17400,8 @@ public unsafe partial class IfStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new IfStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IfStmt(native.ToPointer(), skipVTables);
}
@@ -17426,6 +17648,8 @@ public unsafe partial class SwitchStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SwitchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SwitchStmt(native.ToPointer(), skipVTables);
}
@@ -17616,6 +17840,8 @@ public unsafe partial class WhileStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new WhileStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new WhileStmt(native.ToPointer(), skipVTables);
}
@@ -17766,6 +17992,8 @@ public unsafe partial class DoStmt : global::CppSharp.Parser.AST.Stmt, IDisposab
internal static new DoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DoStmt(native.ToPointer(), skipVTables);
}
@@ -17918,6 +18146,8 @@ public unsafe partial class ForStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new ForStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ForStmt(native.ToPointer(), skipVTables);
}
@@ -18106,6 +18336,8 @@ public unsafe partial class GotoStmt : global::CppSharp.Parser.AST.Stmt, IDispos
internal static new GotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GotoStmt(native.ToPointer(), skipVTables);
}
@@ -18212,6 +18444,8 @@ public unsafe partial class IndirectGotoStmt : global::CppSharp.Parser.AST.Stmt,
internal static new IndirectGotoStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IndirectGotoStmt(native.ToPointer(), skipVTables);
}
@@ -18330,6 +18564,8 @@ public unsafe partial class ContinueStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new ContinueStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ContinueStmt(native.ToPointer(), skipVTables);
}
@@ -18421,6 +18657,8 @@ public unsafe partial class BreakStmt : global::CppSharp.Parser.AST.Stmt, IDispo
internal static new BreakStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BreakStmt(native.ToPointer(), skipVTables);
}
@@ -18513,6 +18751,8 @@ public unsafe partial class ReturnStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new ReturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ReturnStmt(native.ToPointer(), skipVTables);
}
@@ -18656,6 +18896,8 @@ public unsafe partial class AsmStmt : global::CppSharp.Parser.AST.Stmt, IDisposa
internal static new AsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStmt(native.ToPointer(), skipVTables);
}
@@ -18742,8 +18984,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getinputs(uint i)
{
- var __ret = __Internal.Getinputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getinputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18763,8 +19005,8 @@ public void Clearinputs()
public global::CppSharp.Parser.AST.Expr Getoutputs(uint i)
{
- var __ret = __Internal.Getoutputs(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getoutputs(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -18882,8 +19124,8 @@ public uint GetinputsCount
{
get
{
- var __ret = __Internal.GetinputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetinputsCount(__Instance);
+ return ___ret;
}
}
@@ -18891,8 +19133,8 @@ public uint GetoutputsCount
{
get
{
- var __ret = __Internal.GetoutputsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetoutputsCount(__Instance);
+ return ___ret;
}
}
}
@@ -18974,6 +19216,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static AsmStringPiece __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsmStringPiece(native.ToPointer(), skipVTables);
}
@@ -19123,6 +19367,8 @@ public sbyte Modifier
internal static new GCCAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GCCAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19247,6 +19493,8 @@ public unsafe partial class MSAsmStmt : global::CppSharp.Parser.AST.AsmStmt, IDi
internal static new MSAsmStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSAsmStmt(native.ToPointer(), skipVTables);
}
@@ -19398,6 +19646,8 @@ public unsafe partial class SEHExceptStmt : global::CppSharp.Parser.AST.Stmt, ID
internal static new SEHExceptStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHExceptStmt(native.ToPointer(), skipVTables);
}
@@ -19518,6 +19768,8 @@ public unsafe partial class SEHFinallyStmt : global::CppSharp.Parser.AST.Stmt, I
internal static new SEHFinallyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHFinallyStmt(native.ToPointer(), skipVTables);
}
@@ -19628,6 +19880,8 @@ public unsafe partial class SEHTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new SEHTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHTryStmt(native.ToPointer(), skipVTables);
}
@@ -19788,6 +20042,8 @@ public unsafe partial class SEHLeaveStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new SEHLeaveStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SEHLeaveStmt(native.ToPointer(), skipVTables);
}
@@ -19941,6 +20197,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Capture __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Capture(native.ToPointer(), skipVTables);
}
@@ -20097,6 +20355,8 @@ public bool CapturesVariableArrayType
internal static new CapturedStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CapturedStmt(native.ToPointer(), skipVTables);
}
@@ -20174,8 +20434,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -20224,8 +20484,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -20252,6 +20512,8 @@ public unsafe partial class CXXCatchStmt : global::CppSharp.Parser.AST.Stmt, IDi
internal static new CXXCatchStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXCatchStmt(native.ToPointer(), skipVTables);
}
@@ -20374,6 +20636,8 @@ public unsafe partial class CXXTryStmt : global::CppSharp.Parser.AST.Stmt, IDisp
internal static new CXXTryStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTryStmt(native.ToPointer(), skipVTables);
}
@@ -20504,6 +20768,8 @@ public unsafe partial class CXXForRangeStmt : global::CppSharp.Parser.AST.Stmt,
internal static new CXXForRangeStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXForRangeStmt(native.ToPointer(), skipVTables);
}
@@ -20763,6 +21029,8 @@ public unsafe partial class MSDependentExistsStmt : global::CppSharp.Parser.AST.
internal static new MSDependentExistsStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSDependentExistsStmt(native.ToPointer(), skipVTables);
}
@@ -20953,6 +21221,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CtorArgs __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CtorArgs(native.ToPointer(), skipVTables);
}
@@ -21031,6 +21301,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new CoroutineBodyStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineBodyStmt(native.ToPointer(), skipVTables);
}
@@ -21300,6 +21572,8 @@ public enum SubStmt
internal static new CoreturnStmt __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoreturnStmt(native.ToPointer(), skipVTables);
}
@@ -21775,6 +22049,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Classification __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Classification(native.ToPointer(), skipVTables);
}
@@ -21957,6 +22233,8 @@ public bool IsModifiable
internal static new Expr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Expr(native.ToPointer(), skipVTables);
}
@@ -22252,6 +22530,8 @@ public unsafe partial class FullExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new FullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FullExpr(native.ToPointer(), skipVTables);
}
@@ -22372,6 +22652,8 @@ public unsafe partial class ConstantExpr : global::CppSharp.Parser.AST.FullExpr,
internal static new ConstantExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConstantExpr(native.ToPointer(), skipVTables);
}
@@ -22467,6 +22749,8 @@ public unsafe partial class OpaqueValueExpr : global::CppSharp.Parser.AST.Expr,
internal static new OpaqueValueExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OpaqueValueExpr(native.ToPointer(), skipVTables);
}
@@ -22611,6 +22895,8 @@ public unsafe partial class DeclRefExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new DeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -22862,6 +23148,8 @@ public unsafe partial class IntegerLiteral : global::CppSharp.Parser.AST.Expr, I
internal static new IntegerLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new IntegerLiteral(native.ToPointer(), skipVTables);
}
@@ -22982,6 +23270,8 @@ public unsafe partial class FixedPointLiteral : global::CppSharp.Parser.AST.Expr
internal static new FixedPointLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FixedPointLiteral(native.ToPointer(), skipVTables);
}
@@ -23112,6 +23402,8 @@ public enum CharacterKind
internal static new CharacterLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharacterLiteral(native.ToPointer(), skipVTables);
}
@@ -23246,6 +23538,8 @@ public unsafe partial class FloatingLiteral : global::CppSharp.Parser.AST.Expr,
internal static new FloatingLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FloatingLiteral(native.ToPointer(), skipVTables);
}
@@ -23377,6 +23671,8 @@ public unsafe partial class ImaginaryLiteral : global::CppSharp.Parser.AST.Expr,
internal static new ImaginaryLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImaginaryLiteral(native.ToPointer(), skipVTables);
}
@@ -23509,6 +23805,8 @@ public enum StringKind
internal static new StringLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StringLiteral(native.ToPointer(), skipVTables);
}
@@ -23830,6 +24128,8 @@ public enum IdentKind
internal static new PredefinedExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PredefinedExpr(native.ToPointer(), skipVTables);
}
@@ -23950,6 +24250,8 @@ public unsafe partial class ParenExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new ParenExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenExpr(native.ToPointer(), skipVTables);
}
@@ -24093,6 +24395,8 @@ public unsafe partial class UnaryOperator : global::CppSharp.Parser.AST.Expr, ID
internal static new UnaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryOperator(native.ToPointer(), skipVTables);
}
@@ -24333,6 +24637,8 @@ public unsafe partial class OffsetOfExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new OffsetOfExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OffsetOfExpr(native.ToPointer(), skipVTables);
}
@@ -24484,6 +24790,8 @@ public unsafe partial class UnaryExprOrTypeTraitExpr : global::CppSharp.Parser.A
internal static new UnaryExprOrTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnaryExprOrTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -24676,6 +24984,8 @@ public unsafe partial class ArraySubscriptExpr : global::CppSharp.Parser.AST.Exp
internal static new ArraySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArraySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -24863,6 +25173,8 @@ public unsafe partial class CallExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new CallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CallExpr(native.ToPointer(), skipVTables);
}
@@ -24949,8 +25261,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -25084,8 +25396,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -25136,6 +25448,8 @@ public unsafe partial class MemberExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new MemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MemberExpr(native.ToPointer(), skipVTables);
}
@@ -25400,6 +25714,8 @@ public unsafe partial class CompoundLiteralExpr : global::CppSharp.Parser.AST.Ex
internal static new CompoundLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -25543,6 +25859,8 @@ public unsafe partial class CastExpr : global::CppSharp.Parser.AST.Expr, IDispos
private bool __castKindName_OwnsNativeMemory = false;
internal static new CastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CastExpr(native.ToPointer(), skipVTables);
}
@@ -25770,6 +26088,8 @@ public enum OnStack_t
internal static new ImplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -25886,6 +26206,8 @@ public unsafe partial class ExplicitCastExpr : global::CppSharp.Parser.AST.CastE
internal static new ExplicitCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExplicitCastExpr(native.ToPointer(), skipVTables);
}
@@ -26017,6 +26339,8 @@ public unsafe partial class CStyleCastExpr : global::CppSharp.Parser.AST.Explici
internal static new CStyleCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CStyleCastExpr(native.ToPointer(), skipVTables);
}
@@ -26160,6 +26484,8 @@ public unsafe partial class BinaryOperator : global::CppSharp.Parser.AST.Expr, I
internal static new BinaryOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryOperator(native.ToPointer(), skipVTables);
}
@@ -26558,6 +26884,8 @@ public unsafe partial class CompoundAssignOperator : global::CppSharp.Parser.AST
internal static new CompoundAssignOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CompoundAssignOperator(native.ToPointer(), skipVTables);
}
@@ -26705,6 +27033,8 @@ public unsafe partial class AbstractConditionalOperator : global::CppSharp.Parse
internal static new AbstractConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AbstractConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -26885,6 +27215,8 @@ public unsafe partial class ConditionalOperator : global::CppSharp.Parser.AST.Ab
internal static new ConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -27011,6 +27343,8 @@ public unsafe partial class BinaryConditionalOperator : global::CppSharp.Parser.
internal static new BinaryConditionalOperator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BinaryConditionalOperator(native.ToPointer(), skipVTables);
}
@@ -27133,6 +27467,8 @@ public unsafe partial class AddrLabelExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new AddrLabelExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AddrLabelExpr(native.ToPointer(), skipVTables);
}
@@ -27253,6 +27589,8 @@ public unsafe partial class StmtExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new StmtExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new StmtExpr(native.ToPointer(), skipVTables);
}
@@ -27388,6 +27726,8 @@ public unsafe partial class ShuffleVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ShuffleVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ShuffleVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27521,6 +27861,8 @@ public unsafe partial class ConvertVectorExpr : global::CppSharp.Parser.AST.Expr
internal static new ConvertVectorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ConvertVectorExpr(native.ToPointer(), skipVTables);
}
@@ -27661,6 +28003,8 @@ public unsafe partial class ChooseExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new ChooseExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ChooseExpr(native.ToPointer(), skipVTables);
}
@@ -27862,6 +28206,8 @@ public unsafe partial class GNUNullExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new GNUNullExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GNUNullExpr(native.ToPointer(), skipVTables);
}
@@ -27970,6 +28316,8 @@ public unsafe partial class VAArgExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new VAArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new VAArgExpr(native.ToPointer(), skipVTables);
}
@@ -28126,6 +28474,8 @@ public unsafe partial class InitListExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new InitListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new InitListExpr(native.ToPointer(), skipVTables);
}
@@ -28425,6 +28775,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Designator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Designator(native.ToPointer(), skipVTables);
}
@@ -28679,6 +29031,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FieldDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FieldDesignator(native.ToPointer(), skipVTables);
}
@@ -28787,6 +29141,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ArrayOrRangeDesignator __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayOrRangeDesignator(native.ToPointer(), skipVTables);
}
@@ -28865,6 +29221,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new DesignatedInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitExpr(native.ToPointer(), skipVTables);
}
@@ -29037,6 +29395,8 @@ public unsafe partial class NoInitExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new NoInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new NoInitExpr(native.ToPointer(), skipVTables);
}
@@ -29130,6 +29490,8 @@ public unsafe partial class DesignatedInitUpdateExpr : global::CppSharp.Parser.A
internal static new DesignatedInitUpdateExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DesignatedInitUpdateExpr(native.ToPointer(), skipVTables);
}
@@ -29251,6 +29613,8 @@ public unsafe partial class ArrayInitLoopExpr : global::CppSharp.Parser.AST.Expr
internal static new ArrayInitLoopExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitLoopExpr(native.ToPointer(), skipVTables);
}
@@ -29370,6 +29734,8 @@ public unsafe partial class ArrayInitIndexExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayInitIndexExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayInitIndexExpr(native.ToPointer(), skipVTables);
}
@@ -29461,6 +29827,8 @@ public unsafe partial class ImplicitValueInitExpr : global::CppSharp.Parser.AST.
internal static new ImplicitValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ImplicitValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -29556,6 +29924,8 @@ public unsafe partial class ParenListExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new ParenListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParenListExpr(native.ToPointer(), skipVTables);
}
@@ -29695,6 +30065,8 @@ public unsafe partial class GenericSelectionExpr : global::CppSharp.Parser.AST.E
internal static new GenericSelectionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new GenericSelectionExpr(native.ToPointer(), skipVTables);
}
@@ -29897,6 +30269,8 @@ public unsafe partial class ExtVectorElementExpr : global::CppSharp.Parser.AST.E
internal static new ExtVectorElementExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtVectorElementExpr(native.ToPointer(), skipVTables);
}
@@ -30057,6 +30431,8 @@ public unsafe partial class BlockExpr : global::CppSharp.Parser.AST.Expr, IDispo
internal static new BlockExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BlockExpr(native.ToPointer(), skipVTables);
}
@@ -30178,6 +30554,8 @@ public unsafe partial class AsTypeExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new AsTypeExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AsTypeExpr(native.ToPointer(), skipVTables);
}
@@ -30313,6 +30691,8 @@ public unsafe partial class PseudoObjectExpr : global::CppSharp.Parser.AST.Expr,
internal static new PseudoObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PseudoObjectExpr(native.ToPointer(), skipVTables);
}
@@ -30523,6 +30903,8 @@ public enum AtomicOp
internal static new AtomicExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new AtomicExpr(native.ToPointer(), skipVTables);
}
@@ -30818,6 +31200,8 @@ public unsafe partial class TypoExpr : global::CppSharp.Parser.AST.Expr, IDispos
internal static new TypoExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypoExpr(native.ToPointer(), skipVTables);
}
@@ -30925,6 +31309,8 @@ public unsafe partial class CXXOperatorCallExpr : global::CppSharp.Parser.AST.Ca
internal static new CXXOperatorCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXOperatorCallExpr(native.ToPointer(), skipVTables);
}
@@ -31100,6 +31486,8 @@ public unsafe partial class CXXMemberCallExpr : global::CppSharp.Parser.AST.Call
internal static new CXXMemberCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXMemberCallExpr(native.ToPointer(), skipVTables);
}
@@ -31250,6 +31638,8 @@ public unsafe partial class CUDAKernelCallExpr : global::CppSharp.Parser.AST.Cal
internal static new CUDAKernelCallExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CUDAKernelCallExpr(native.ToPointer(), skipVTables);
}
@@ -31390,6 +31780,8 @@ public unsafe partial class CXXNamedCastExpr : global::CppSharp.Parser.AST.Expli
private bool __castName_OwnsNativeMemory = false;
internal static new CXXNamedCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNamedCastExpr(native.ToPointer(), skipVTables);
}
@@ -31576,6 +31968,8 @@ public unsafe partial class CXXStaticCastExpr : global::CppSharp.Parser.AST.CXXN
internal static new CXXStaticCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStaticCastExpr(native.ToPointer(), skipVTables);
}
@@ -31681,6 +32075,8 @@ public unsafe partial class CXXDynamicCastExpr : global::CppSharp.Parser.AST.CXX
internal static new CXXDynamicCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDynamicCastExpr(native.ToPointer(), skipVTables);
}
@@ -31798,6 +32194,8 @@ public unsafe partial class CXXReinterpretCastExpr : global::CppSharp.Parser.AST
internal static new CXXReinterpretCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXReinterpretCastExpr(native.ToPointer(), skipVTables);
}
@@ -31902,6 +32300,8 @@ public unsafe partial class CXXConstCastExpr : global::CppSharp.Parser.AST.CXXNa
internal static new CXXConstCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstCastExpr(native.ToPointer(), skipVTables);
}
@@ -32018,6 +32418,8 @@ public enum LiteralOperatorKind
internal static new UserDefinedLiteral __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UserDefinedLiteral(native.ToPointer(), skipVTables);
}
@@ -32170,6 +32572,8 @@ public unsafe partial class CXXBoolLiteralExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXBoolLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBoolLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32289,6 +32693,8 @@ public unsafe partial class CXXNullPtrLiteralExpr : global::CppSharp.Parser.AST.
internal static new CXXNullPtrLiteralExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNullPtrLiteralExpr(native.ToPointer(), skipVTables);
}
@@ -32394,6 +32800,8 @@ public unsafe partial class CXXStdInitializerListExpr : global::CppSharp.Parser.
internal static new CXXStdInitializerListExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXStdInitializerListExpr(native.ToPointer(), skipVTables);
}
@@ -32502,6 +32910,8 @@ public unsafe partial class CXXTypeidExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXTypeidExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTypeidExpr(native.ToPointer(), skipVTables);
}
@@ -32638,6 +33048,8 @@ public unsafe partial class MSPropertyRefExpr : global::CppSharp.Parser.AST.Expr
internal static new MSPropertyRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertyRefExpr(native.ToPointer(), skipVTables);
}
@@ -32786,6 +33198,8 @@ public unsafe partial class MSPropertySubscriptExpr : global::CppSharp.Parser.AS
internal static new MSPropertySubscriptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MSPropertySubscriptExpr(native.ToPointer(), skipVTables);
}
@@ -32924,6 +33338,8 @@ public unsafe partial class CXXUuidofExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXUuidofExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUuidofExpr(native.ToPointer(), skipVTables);
}
@@ -33077,6 +33493,8 @@ public unsafe partial class CXXThisExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXThisExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThisExpr(native.ToPointer(), skipVTables);
}
@@ -33197,6 +33615,8 @@ public unsafe partial class CXXThrowExpr : global::CppSharp.Parser.AST.Expr, IDi
internal static new CXXThrowExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXThrowExpr(native.ToPointer(), skipVTables);
}
@@ -33330,6 +33750,8 @@ public unsafe partial class CXXDefaultArgExpr : global::CppSharp.Parser.AST.Expr
internal static new CXXDefaultArgExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultArgExpr(native.ToPointer(), skipVTables);
}
@@ -33450,6 +33872,8 @@ public unsafe partial class CXXDefaultInitExpr : global::CppSharp.Parser.AST.Exp
internal static new CXXDefaultInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDefaultInitExpr(native.ToPointer(), skipVTables);
}
@@ -33570,6 +33994,8 @@ public unsafe partial class CXXBindTemporaryExpr : global::CppSharp.Parser.AST.E
internal static new CXXBindTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXBindTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -33710,6 +34136,8 @@ public enum ConstructionKind
internal static new CXXConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXConstructExpr(native.ToPointer(), skipVTables);
}
@@ -33796,8 +34224,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -33930,8 +34358,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -33973,6 +34401,8 @@ public unsafe partial class CXXInheritedCtorInitExpr : global::CppSharp.Parser.A
internal static new CXXInheritedCtorInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXInheritedCtorInitExpr(native.ToPointer(), skipVTables);
}
@@ -34115,6 +34545,8 @@ public unsafe partial class CXXFunctionalCastExpr : global::CppSharp.Parser.AST.
internal static new CXXFunctionalCastExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFunctionalCastExpr(native.ToPointer(), skipVTables);
}
@@ -34257,6 +34689,8 @@ public unsafe partial class CXXTemporaryObjectExpr : global::CppSharp.Parser.AST
internal static new CXXTemporaryObjectExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXTemporaryObjectExpr(native.ToPointer(), skipVTables);
}
@@ -34391,6 +34825,8 @@ public unsafe partial class LambdaExpr : global::CppSharp.Parser.AST.Expr, IDisp
internal static new LambdaExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new LambdaExpr(native.ToPointer(), skipVTables);
}
@@ -34468,8 +34904,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetcaptureInits(uint i)
{
- var __ret = __Internal.GetcaptureInits(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetcaptureInits(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -34612,8 +35048,8 @@ public uint GetcaptureInitsCount
{
get
{
- var __ret = __Internal.GetcaptureInitsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetcaptureInitsCount(__Instance);
+ return ___ret;
}
}
}
@@ -34653,6 +35089,8 @@ public unsafe partial class CXXScalarValueInitExpr : global::CppSharp.Parser.AST
internal static new CXXScalarValueInitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXScalarValueInitExpr(native.ToPointer(), skipVTables);
}
@@ -34794,6 +35232,8 @@ public enum InitializationStyle
internal static new CXXNewExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNewExpr(native.ToPointer(), skipVTables);
}
@@ -34871,8 +35311,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr GetplacementArguments(uint i)
{
- var __ret = __Internal.GetplacementArguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetplacementArguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -35087,8 +35527,8 @@ public uint GetplacementArgumentsCount
{
get
{
- var __ret = __Internal.GetplacementArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetplacementArgumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -35133,6 +35573,8 @@ public unsafe partial class CXXDeleteExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new CXXDeleteExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDeleteExpr(native.ToPointer(), skipVTables);
}
@@ -35314,6 +35756,8 @@ public unsafe partial class CXXPseudoDestructorExpr : global::CppSharp.Parser.AS
internal static new CXXPseudoDestructorExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXPseudoDestructorExpr(native.ToPointer(), skipVTables);
}
@@ -35515,6 +35959,8 @@ public unsafe partial class TypeTraitExpr : global::CppSharp.Parser.AST.Expr, ID
internal static new TypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new TypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35635,6 +36081,8 @@ public unsafe partial class ArrayTypeTraitExpr : global::CppSharp.Parser.AST.Exp
internal static new ArrayTypeTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ArrayTypeTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35770,6 +36218,8 @@ public unsafe partial class ExpressionTraitExpr : global::CppSharp.Parser.AST.Ex
internal static new ExpressionTraitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExpressionTraitExpr(native.ToPointer(), skipVTables);
}
@@ -35930,6 +36380,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static FindResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FindResult(native.ToPointer(), skipVTables);
}
@@ -36008,6 +36460,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new OverloadExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new OverloadExpr(native.ToPointer(), skipVTables);
}
@@ -36229,6 +36683,8 @@ public unsafe partial class UnresolvedLookupExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedLookupExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedLookupExpr(native.ToPointer(), skipVTables);
}
@@ -36354,6 +36810,8 @@ public unsafe partial class DependentScopeDeclRefExpr : global::CppSharp.Parser.
internal static new DependentScopeDeclRefExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentScopeDeclRefExpr(native.ToPointer(), skipVTables);
}
@@ -36539,6 +36997,8 @@ public unsafe partial class ExprWithCleanups : global::CppSharp.Parser.AST.FullE
internal static new ExprWithCleanups __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExprWithCleanups(native.ToPointer(), skipVTables);
}
@@ -36677,6 +37137,8 @@ public unsafe partial class CXXUnresolvedConstructExpr : global::CppSharp.Parser
internal static new CXXUnresolvedConstructExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXUnresolvedConstructExpr(native.ToPointer(), skipVTables);
}
@@ -36754,8 +37216,8 @@ internal protected override void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.AST.Expr Getarguments(uint i)
{
- var __ret = __Internal.Getarguments(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Getarguments(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.Expr.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -36844,8 +37306,8 @@ public uint GetargumentsCount
{
get
{
- var __ret = __Internal.GetargumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetargumentsCount(__Instance);
+ return ___ret;
}
}
}
@@ -36897,6 +37359,8 @@ public unsafe partial class CXXDependentScopeMemberExpr : global::CppSharp.Parse
internal static new CXXDependentScopeMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXDependentScopeMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37178,6 +37642,8 @@ public unsafe partial class UnresolvedMemberExpr : global::CppSharp.Parser.AST.O
internal static new UnresolvedMemberExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new UnresolvedMemberExpr(native.ToPointer(), skipVTables);
}
@@ -37365,6 +37831,8 @@ public unsafe partial class CXXNoexceptExpr : global::CppSharp.Parser.AST.Expr,
internal static new CXXNoexceptExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXNoexceptExpr(native.ToPointer(), skipVTables);
}
@@ -37485,6 +37953,8 @@ public unsafe partial class PackExpansionExpr : global::CppSharp.Parser.AST.Expr
internal static new PackExpansionExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new PackExpansionExpr(native.ToPointer(), skipVTables);
}
@@ -37610,6 +38080,8 @@ public unsafe partial class SizeOfPackExpr : global::CppSharp.Parser.AST.Expr, I
internal static new SizeOfPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SizeOfPackExpr(native.ToPointer(), skipVTables);
}
@@ -37783,6 +38255,8 @@ public unsafe partial class SubstNonTypeTemplateParmExpr : global::CppSharp.Pars
internal static new SubstNonTypeTemplateParmExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmExpr(native.ToPointer(), skipVTables);
}
@@ -37904,6 +38378,8 @@ public unsafe partial class SubstNonTypeTemplateParmPackExpr : global::CppSharp.
internal static new SubstNonTypeTemplateParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new SubstNonTypeTemplateParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -38026,6 +38502,8 @@ public unsafe partial class FunctionParmPackExpr : global::CppSharp.Parser.AST.E
internal static new FunctionParmPackExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new FunctionParmPackExpr(native.ToPointer(), skipVTables);
}
@@ -38177,6 +38655,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ExtraState __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ExtraState(native.ToPointer(), skipVTables);
}
@@ -38255,6 +38735,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
internal static new MaterializeTemporaryExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new MaterializeTemporaryExpr(native.ToPointer(), skipVTables);
}
@@ -38408,6 +38890,8 @@ public unsafe partial class CXXFoldExpr : global::CppSharp.Parser.AST.Expr, IDis
internal static new CXXFoldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CXXFoldExpr(native.ToPointer(), skipVTables);
}
@@ -38626,6 +39110,8 @@ public enum SubExpr
internal static new CoroutineSuspendExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoroutineSuspendExpr(native.ToPointer(), skipVTables);
}
@@ -38823,6 +39309,8 @@ public unsafe partial class CoawaitExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -38944,6 +39432,8 @@ public unsafe partial class DependentCoawaitExpr : global::CppSharp.Parser.AST.E
internal static new DependentCoawaitExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new DependentCoawaitExpr(native.ToPointer(), skipVTables);
}
@@ -39084,6 +39574,8 @@ public unsafe partial class CoyieldExpr : global::CppSharp.Parser.AST.CoroutineS
internal static new CoyieldExpr __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CoyieldExpr(native.ToPointer(), skipVTables);
}
@@ -39255,6 +39747,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserTargetInfo __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserTargetInfo(native.ToPointer(), skipVTables);
}
@@ -39927,6 +40421,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static Parser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Parser(native.ToPointer(), skipVTables);
}
@@ -40137,6 +40633,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppParserOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppParserOptions(native.ToPointer(), skipVTables);
}
@@ -40219,8 +40717,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40235,8 +40733,8 @@ public void ClearArguments()
public string GetCompilationOptions(uint i)
{
- var __ret = __Internal.GetCompilationOptions(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetCompilationOptions(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddCompilationOptions(string s)
@@ -40251,8 +40749,8 @@ public void ClearCompilationOptions()
public string GetSourceFiles(uint i)
{
- var __ret = __Internal.GetSourceFiles(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSourceFiles(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSourceFiles(string s)
@@ -40267,8 +40765,8 @@ public void ClearSourceFiles()
public string GetIncludeDirs(uint i)
{
- var __ret = __Internal.GetIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddIncludeDirs(string s)
@@ -40283,8 +40781,8 @@ public void ClearIncludeDirs()
public string GetSystemIncludeDirs(uint i)
{
- var __ret = __Internal.GetSystemIncludeDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSystemIncludeDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSystemIncludeDirs(string s)
@@ -40299,8 +40797,8 @@ public void ClearSystemIncludeDirs()
public string GetDefines(uint i)
{
- var __ret = __Internal.GetDefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetDefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddDefines(string s)
@@ -40315,8 +40813,8 @@ public void ClearDefines()
public string GetUndefines(uint i)
{
- var __ret = __Internal.GetUndefines(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetUndefines(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddUndefines(string s)
@@ -40331,8 +40829,8 @@ public void ClearUndefines()
public string GetSupportedStdTypes(uint i)
{
- var __ret = __Internal.GetSupportedStdTypes(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedStdTypes(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedStdTypes(string s)
@@ -40347,8 +40845,8 @@ public void ClearSupportedStdTypes()
public string GetSupportedFunctionTemplates(uint i)
{
- var __ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetSupportedFunctionTemplates(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddSupportedFunctionTemplates(string s)
@@ -40510,9 +41008,9 @@ public string ClangVersion
{
get
{
- var __ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C();
- __Internal.GetClangVersion(__Instance, new IntPtr(&__ret));
- var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&__ret));
+ var ___ret = new global::Std.BasicString.__Internalc__N_std_S_basic_string__C___N_std_S_char_traits__C___N_std_S_allocator__C();
+ __Internal.GetClangVersion(__Instance, new IntPtr(&___ret));
+ var __basicStringRet0 = global::Std.BasicString, global::Std.Allocator>.__CreateInstance(new __IntPtr(&___ret));
var __retString0 = global::Std.BasicStringExtensions.Data(__basicStringRet0);
__basicStringRet0.Dispose();
return __retString0;
@@ -40523,8 +41021,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40532,8 +41030,8 @@ public uint CompilationOptionsCount
{
get
{
- var __ret = __Internal.GetCompilationOptionsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetCompilationOptionsCount(__Instance);
+ return ___ret;
}
}
@@ -40541,8 +41039,8 @@ public uint SourceFilesCount
{
get
{
- var __ret = __Internal.GetSourceFilesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSourceFilesCount(__Instance);
+ return ___ret;
}
}
@@ -40550,8 +41048,8 @@ public uint IncludeDirsCount
{
get
{
- var __ret = __Internal.GetIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40559,8 +41057,8 @@ public uint SystemIncludeDirsCount
{
get
{
- var __ret = __Internal.GetSystemIncludeDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSystemIncludeDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40568,8 +41066,8 @@ public uint DefinesCount
{
get
{
- var __ret = __Internal.GetDefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40577,8 +41075,8 @@ public uint UndefinesCount
{
get
{
- var __ret = __Internal.GetUndefinesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetUndefinesCount(__Instance);
+ return ___ret;
}
}
@@ -40586,8 +41084,8 @@ public uint SupportedStdTypesCount
{
get
{
- var __ret = __Internal.GetSupportedStdTypesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedStdTypesCount(__Instance);
+ return ___ret;
}
}
@@ -40595,8 +41093,8 @@ public uint SupportedFunctionTemplatesCount
{
get
{
- var __ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetSupportedFunctionTemplatesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40676,6 +41174,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static CppLinkerOptions __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CppLinkerOptions(native.ToPointer(), skipVTables);
}
@@ -40758,8 +41258,8 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public string GetArguments(uint i)
{
- var __ret = __Internal.GetArguments(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetArguments(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddArguments(string s)
@@ -40774,8 +41274,8 @@ public void ClearArguments()
public string GetLibraryDirs(uint i)
{
- var __ret = __Internal.GetLibraryDirs(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraryDirs(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraryDirs(string s)
@@ -40790,8 +41290,8 @@ public void ClearLibraryDirs()
public string GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
public void AddLibraries(string s)
@@ -40808,8 +41308,8 @@ public uint ArgumentsCount
{
get
{
- var __ret = __Internal.GetArgumentsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetArgumentsCount(__Instance);
+ return ___ret;
}
}
@@ -40817,8 +41317,8 @@ public uint LibraryDirsCount
{
get
{
- var __ret = __Internal.GetLibraryDirsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibraryDirsCount(__Instance);
+ return ___ret;
}
}
@@ -40826,8 +41326,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -40873,6 +41373,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserDiagnostic __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserDiagnostic(native.ToPointer(), skipVTables);
}
@@ -41085,6 +41587,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ParserResult __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ParserResult(native.ToPointer(), skipVTables);
}
@@ -41167,11 +41671,11 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public global::CppSharp.Parser.ParserDiagnostic GetDiagnostics(uint i)
{
- var __ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
- __Internal.GetDiagnostics(__Instance, new IntPtr(&__ret), i);
- var ____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(__ret);
- global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&__ret));
- return ____ret;
+ var ___ret = new global::CppSharp.Parser.ParserDiagnostic.__Internal();
+ __Internal.GetDiagnostics(__Instance, new IntPtr(&___ret), i);
+ var _____ret = global::CppSharp.Parser.ParserDiagnostic.__CreateInstance(___ret);
+ global::CppSharp.Parser.ParserDiagnostic.__Internal.dtor(new __IntPtr(&___ret));
+ return _____ret;
}
public void AddDiagnostics(global::CppSharp.Parser.ParserDiagnostic s)
@@ -41189,8 +41693,8 @@ public void ClearDiagnostics()
public global::CppSharp.Parser.AST.NativeLibrary GetLibraries(uint i)
{
- var __ret = __Internal.GetLibraries(__Instance, i);
- var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.GetLibraries(__Instance, i);
+ var __result0 = global::CppSharp.Parser.AST.NativeLibrary.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41239,8 +41743,8 @@ public uint DiagnosticsCount
{
get
{
- var __ret = __Internal.GetDiagnosticsCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetDiagnosticsCount(__Instance);
+ return ___ret;
}
}
@@ -41248,8 +41752,8 @@ public uint LibrariesCount
{
get
{
- var __ret = __Internal.GetLibrariesCount(__Instance);
- return __ret;
+ var ___ret = __Internal.GetLibrariesCount(__Instance);
+ return ___ret;
}
}
}
@@ -41298,6 +41802,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::C
internal static ClangParser __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new ClangParser(native.ToPointer(), skipVTables);
}
@@ -41375,16 +41881,16 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
public static global::CppSharp.Parser.ParserResult ParseHeader(global::CppSharp.Parser.CppParserOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseHeader(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseHeader(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static global::CppSharp.Parser.ParserResult ParseLibrary(global::CppSharp.Parser.CppLinkerOptions Opts)
{
var __arg0 = Opts is null ? __IntPtr.Zero : Opts.__Instance;
- var __ret = __Internal.ParseLibrary(__arg0);
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.ParseLibrary(__arg0);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41395,9 +41901,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Build(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41407,9 +41913,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString1 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString1, File);
var __arg1 = __basicString1.__Instance;
- var __ret = __Internal.Compile(__arg0, __arg1);
+ var ___ret = __Internal.Compile(__arg0, __arg1);
__basicString1.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
@@ -41420,9 +41926,9 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
var __basicString2 = new global::Std.BasicString, global::Std.Allocator>();
global::Std.BasicStringExtensions.Assign(__basicString2, File);
var __arg2 = __basicString2.__Instance;
- var __ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
+ var ___ret = __Internal.Link(__arg0, __arg1, __arg2, Last);
__basicString2.Dispose();
- var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(__ret, false);
+ var __result0 = global::CppSharp.Parser.ParserResult.__GetOrCreateInstance(___ret, false);
return __result0;
}
}
diff --git a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs
index e8dda782c0..8a426d693e 100644
--- a/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs
+++ b/src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc/Std.cs
@@ -15,6 +15,8 @@
[assembly:InternalsVisibleTo("CppSharp.CppParser")]
+#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required
+
namespace Std
{
namespace Vector
@@ -99,6 +101,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static Allocator<_Ty> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new Allocator<_Ty>(native.ToPointer(), skipVTables);
}
@@ -167,15 +171,6 @@ internal protected virtual void Dispose(bool disposing, bool callNativeDtor )
return;
NativeToManagedMap.TryRemove(__Instance, out _);
DisposePartial(disposing);
- if (callNativeDtor)
- {
- var ___Ty = typeof(_Ty);
- if (___Ty.IsAssignableFrom(typeof(sbyte)))
- {
- return;
- }
- throw new ArgumentOutOfRangeException("_Ty", string.Join(", ", new[] { typeof(_Ty).FullName }), "global::Std.Allocator<_Ty> maps a C++ template class and therefore it only supports a limited set of types and their subclasses: .");
- }
if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero;
@@ -243,6 +238,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static BasicString<_Elem, _Traits, _Alloc> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new BasicString<_Elem, _Traits, _Alloc>(native.ToPointer(), skipVTables);
}
@@ -389,6 +386,8 @@ internal static bool __TryGetNativeToManagedMapping(IntPtr native, out global::S
internal static CharTraits<_Elem> __CreateInstance(__IntPtr native, bool skipVTables = false)
{
+ if (native == __IntPtr.Zero)
+ return null;
return new CharTraits<_Elem>(native.ToPointer(), skipVTables);
}
@@ -463,16 +462,16 @@ public partial struct __Internal
public static global::Std.BasicString, global::Std.Allocator> Assign(this global::Std.BasicString, global::Std.Allocator> @this, string _Ptr)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Assign(__arg0, _Ptr);
- var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(__ret, false);
+ var ___ret = __Internal.Assign(__arg0, _Ptr);
+ var __result0 = global::Std.BasicString, global::Std.Allocator>.__GetOrCreateInstance(___ret, false);
return __result0;
}
public static string Data(this global::Std.BasicString, global::Std.Allocator> @this)
{
var __arg0 = @this is null ? __IntPtr.Zero : @this.__Instance;
- var __ret = __Internal.Data(__arg0);
- return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, __ret);
+ var ___ret = __Internal.Data(__arg0);
+ return CppSharp.Runtime.MarshalUtil.GetString(global::System.Text.Encoding.UTF8, ___ret);
}
}
}
diff --git a/src/CppParser/CppParser.cpp b/src/CppParser/CppParser.cpp
index 0066458166..d6c1f7b36a 100644
--- a/src/CppParser/CppParser.cpp
+++ b/src/CppParser/CppParser.cpp
@@ -7,7 +7,7 @@
#include "CppParser.h"
#include "Parser.h"
-#include
+#include
#include
namespace CppSharp { namespace CppParser {
diff --git a/src/CppParser/CppParser.h b/src/CppParser/CppParser.h
index 922cabfb23..f0e479cfd9 100644
--- a/src/CppParser/CppParser.h
+++ b/src/CppParser/CppParser.h
@@ -82,9 +82,9 @@ struct CS_API ParserDiagnostic
~ParserDiagnostic();
std::string fileName;
std::string message;
- ParserDiagnosticLevel level;
- int lineNumber;
- int columnNumber;
+ ParserDiagnosticLevel level { ParserDiagnosticLevel::Ignored };
+ int lineNumber {0};
+ int columnNumber {0};
};
enum class ParserResultKind
diff --git a/src/CppParser/Decl.h b/src/CppParser/Decl.h
index b51929c45d..40a2128bb0 100644
--- a/src/CppParser/Decl.h
+++ b/src/CppParser/Decl.h
@@ -380,6 +380,7 @@ namespace CppSharp
bool isStatic;
bool isConst;
bool isExplicit;
+ bool isVolatile;
CXXMethodKind methodKind;
diff --git a/src/CppParser/Link.cpp b/src/CppParser/Link.cpp
index 3514256d14..46d066218f 100644
--- a/src/CppParser/Link.cpp
+++ b/src/CppParser/Link.cpp
@@ -11,6 +11,11 @@
#include
#include