Skip to content

Commit

Permalink
Add debug mode parser bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdoom5 committed Jan 24, 2025
1 parent 177ee9a commit 4a5fab6
Show file tree
Hide file tree
Showing 14 changed files with 86,745 additions and 9 deletions.
8 changes: 6 additions & 2 deletions build/Helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,13 @@ end
function AddPlatformSpecificFiles(folder, filename)

if os.istarget("windows") then
filter { "toolset:msc*", "architecture:x86_64" }
filter { "toolset:msc*", "architecture:x86_64", "configurations:Debug" }
files { path.join(folder, "x86_64-pc-win32-msvc-d", filename) }
filter { "toolset:msc*", "architecture:x86", "configurations:Debug" }
files { path.join(folder, "i686-pc-win32-msvc-d", filename) }
filter { "toolset:msc*", "architecture:x86_64", "configurations:not Debug" }
files { path.join(folder, "x86_64-pc-win32-msvc", filename) }
filter { "toolset:msc*", "architecture:x86" }
filter { "toolset:msc*", "architecture:x86", "configurations:not Debug" }
files { path.join(folder, "i686-pc-win32-msvc", filename) }
elseif os.istarget("macosx") then
filter { "architecture:arm64" }
Expand Down
3 changes: 2 additions & 1 deletion src/CppParser/Bindings/CSharp/CppSharp.Parser.CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<IsPackable>true</IsPackable>
<NoWarn>0109</NoWarn>
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x64">x86_64-pc-win32-msvc</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x64 AND $(Configuration) == 'Debug'">x86_64-pc-win32-msvc-d</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x64 AND $(Configuration) != 'Debug'">x86_64-pc-win32-msvc</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == x64 AND $(UseCXX11ABI)">x86_64-linux-gnu-cxx11abi</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == x64 AND !$(UseCXX11ABI)">x86_64-linux-gnu</PlatformParserFolder>
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == x64">x86_64-apple-darwin12.4.0</PlatformParserFolder>
Expand Down

Large diffs are not rendered by default.

42,436 changes: 42,436 additions & 0 deletions src/CppParser/Bindings/CSharp/i686-pc-win32-msvc-d/CppSharp.CppParser.cs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/CppParser/Bindings/CSharp/i686-pc-win32-msvc-d/Std-symbols.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
#define _LIBCPP_HIDE_FROM_ABI

#include <string>
#include <new>

template __declspec(dllexport) std::allocator<char>::allocator() noexcept;
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>::basic_string() noexcept(true);
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string() noexcept;
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>& std::basic_string<char, std::char_traits<char>, std::allocator<char>>::assign(const char* const);
template __declspec(dllexport) const char* std::basic_string<char, std::char_traits<char>, std::allocator<char>>::data() const noexcept;
493 changes: 493 additions & 0 deletions src/CppParser/Bindings/CSharp/i686-pc-win32-msvc-d/Std.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

42,481 changes: 42,481 additions & 0 deletions src/CppParser/Bindings/CSharp/x86_64-pc-win32-msvc-d/CppSharp.CppParser.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include <AST.h>
#include <Sources.h>
#include <CppParser.h>

template class vector<CppSharp::CppParser::AST::Namespace*>;
template class vector<CppSharp::CppParser::AST::Enumeration*>;
template class vector<CppSharp::CppParser::AST::Function*>;
template class vector<CppSharp::CppParser::AST::Class*>;
template class vector<CppSharp::CppParser::AST::Template*>;
template class vector<CppSharp::CppParser::AST::TypedefDecl*>;
template class vector<CppSharp::CppParser::AST::TypeAlias*>;
template class vector<CppSharp::CppParser::AST::Variable*>;
template class vector<CppSharp::CppParser::AST::Friend*>;
template class vector<CppSharp::CppParser::AST::BaseClassSpecifier*>;
template class vector<CppSharp::CppParser::AST::Field*>;
template class vector<CppSharp::CppParser::AST::Method*>;
template class vector<CppSharp::CppParser::AST::AccessSpecifierDecl*>;
template class vector<CppSharp::CppParser::AST::Declaration*>;
template class vector<CppSharp::CppParser::AST::FunctionTemplateSpecialization*>;
template class vector<CppSharp::CppParser::AST::Parameter*>;
template class vector<CppSharp::CppParser::AST::ClassTemplateSpecialization*>;
template class vector<CppSharp::CppParser::AST::Enumeration::Item*>;
template class vector<CppSharp::CppParser::AST::BlockContentComment*>;
template class vector<CppSharp::CppParser::AST::PreprocessedEntity*>;
template class vector<CppSharp::CppParser::AST::Expression*>;
template class vector<CppSharp::CppParser::AST::MacroDefinition*>;
template class vector<CppSharp::CppParser::AST::TranslationUnit*>;
template class vector<CppSharp::CppParser::AST::InlineContentComment*>;
template class vector<CppSharp::CppParser::AST::VerbatimBlockLineComment*>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
#define _LIBCPP_HIDE_FROM_ABI

#include <string>
#include <new>

template __declspec(dllexport) std::allocator<char>::allocator() noexcept;
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>::basic_string() noexcept(true);
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string() noexcept;
template __declspec(dllexport) std::basic_string<char, std::char_traits<char>, std::allocator<char>>& std::basic_string<char, std::char_traits<char>, std::allocator<char>>::assign(const char* const);
template __declspec(dllexport) const char* std::basic_string<char, std::char_traits<char>, std::allocator<char>>::data() const noexcept;
Loading

0 comments on commit 4a5fab6

Please sign in to comment.