Joao Matos
3b7821414b
Minor code cleanup.
11 months ago
Joao Matos
642379a544
Fix QuickJS primitive type marshaling to take target sizes into account.
11 months ago
Joao Matos
57ed101bfe
Implement new Lua bindings file and commands for CLI tool.
11 months ago
Joao Matos
42d2b8aa69
Default to x64 platform over x86 for the CLI.
11 months ago
Joao Matos
aaaffff727
General CLI code cleanups.
11 months ago
Joao Matos
e962ea4188
Alias QuickJS generator kind to `quickjs`.
11 months ago
Joao Matos
343c0aa389
Fix generator kind CLI option matching.
11 months ago
Joao Matos
6712a6a973
Handle more primitive types in `GetInfo`.
11 months ago
Joao Matos
de42b4c9b2
Fixes to QuickJS marshaling.
11 months ago
João Matos
d82f78d5cc
Upgrade CI to macOS 12. ( #1867 )
11 months ago
João Matos
bf03942a92
Auto-detect .NET target framework to use in `build.sh` ( #1864 )
...
* Auto-detect .NET target framework to use in `build.sh`.
* Remove some unused build code and files.
11 months ago
Henrik Valve
345de8b1fb
Couldn't remove mobules without translation unit ( #1861 )
...
I do not know I'm first to encounter this, however, loop that removes module without translation units, could not have worked.
In C# Enumerator prohibs editing the collection so you cannot remove modules from `options.Module` while iterating `options.Mobule`.
Chose `RemoveAll` for its simplicity. Not necessary optimal solution although it might be.
Co-authored-by: HenrikVDestia <henrik.valve@destia.fi>
12 months ago
Ruben Tytgat
b658ff32f1
Fix issue #1283 ( #1855 )
...
* Fixes issue #1283
* Add test for issue #1283
* Move test for issue #1283 to CSharp test suite
* Fix typo
1 year ago
Christian Howe
3f923b1c64
Fix Xcode C++ include path ( #1844 )
1 year ago
Stefan
81e0a931cf
Don't add values to enums that can't be parsed ( #1836 )
...
* Don't add values to enums that can't be parsed
* Fix test case
* Oops
1 year ago
João Matos
f2f48dc1a3
Update LLVM.md
...
Fix documentation.
1 year ago
João Matos
099fadb9a1
ABI handling fixes in Parser.cpp ( #1829 )
...
* ABI handling fixes in Parser.cpp
* Update Parser.cpp
2 years ago
João Matos
8bd3f456a1
Update llvm.yml to install AArch64 cross compilers
2 years ago
Conrad Kreyling
a81abd5614
LLVM crosscompile x64 for ARM64 ( #1826 )
...
* LLVM crosscompile x64 for ARM64
* Fix MacOS host platform test
* Ensure options is persistent in cross compile paths
2 years ago
Conrad Kreyling
1d1b21f25e
Instruct generator to build ARM64 bindings
2 years ago
Conrad Kreyling
491248b7d5
Fix missing AArch64 entry in CLI CppAbi
2 years ago
Conrad Kreyling
bbb0693ef5
Enable ARM64 support on LLVM builds
2 years ago
Joao Matos
b5ab95e11d
Update iOS64 ABI name to the more accurate AppleARM64.
2 years ago
Joao Matos
d1307a532f
Add support for AArch64 C++ ABI.
2 years ago
deadlocklogic
9071cd2a59
Implement ClassTemplatePartialSpecialization::Parameters ( #1809 )
...
* Implement ClassTemplatePartialSpecialization::Parameters
* Template.cs: Implement ClassTemplatePartialSpecialization.Parameters
* GeneratorKind: fix bug introduced while migrating from enum to class
* Implement native ClassTemplatePartialSpecialization.Parameters + ASTConverter
* regenerated bindings (#1813 )
* regenerated bindings
* regenerated bindings after rebase
* Directory.Build.props: support C# 10.0
* Implement native ClassTemplatePartialSpecialization.Parameters + ASTConverter
* Regenerated bindings
* TestAST.cs: add TestASTClassTemplatePartialSpecialization
2 years ago
deadlocklogic
2ecd9528ff
regenerated bindings ( #1813 )
...
* regenerated bindings
* regenerated bindings after rebase
* Directory.Build.props: support C# 10.0
2 years ago
deadlocklogic
24d1a8491d
Stdlib.CSharp.cs: remove buggy typemap ( #1812 )
2 years ago
deadlocklogic
1327971e25
GeneratorKind: patch bug caused by missing ToString ( #1811 )
2 years ago
Joao Matos
519e97f2da
Remove 32-bit builds and non-debug symbols release builds from LLVM Windows CI.
2 years ago
deadlocklogic
12112720f3
Build llvm `Debug`/`Release` for `Windows`. ( #1800 )
...
* Update llvm-win.yml
* Update llvm-win.yml
* Update llvm-win.yml
2 years ago
zylalx1
12c267d9c4
Fixed a bug causing the header file to be included twice when Options.GenerateName is not null ( #1803 )
2 years ago
deadlocklogic
e068f2a14a
Typemap cleanup ( #1802 )
...
* TypeMap: prepare refactoring into a modular design
* TypeMap: refactor C++ backend into common methods
* TypeMap: refactor CLI backend into common methods
* CLI.Gen.cs: fix omitted typemap from previous commit
* Common.Gen.cs: fixed silly modification while testing
* GeneratorKind: add FindGeneratorKindByID method
* TypeMapDatabase: heavy refactor: group typemaps by GeneratorKind
* TypeMap: refactor CSharp backend into common methods + migration
* TypeMap: cleanup patches from previous commits
* TypeMapDatabase: fix passing GeneratorKind to FindTypeMap calls
* Stdlib.CSharp.cs: move std::map typemap from Stdlib.CLI.cs
* TypeMapDatabase: improve parameter name
2 years ago
deadlocklogic
8c2da6d542
Major refactor: TypePrinter: improve modular design + cleanup ( #1796 )
2 years ago
deadlocklogic
0edd48c6a1
Major refactoring: refactor GeneratorKind enum into a class ( #1794 )
...
* Major refactoring: refactor GeneratorKind enum into a class
* Minor fix: add readonly
* Add Type property for GenerationKind + cleanup
* GeneratorKind: add Name property + refactor hardcoded names
* GeneratorKind: add CLIOptions property + refactor hardcoded options
* CppSharp.CLI: minor fix: use generator.ToLower()
* GeneratorKind: fix warning
2 years ago
deadlocklogic
40f3a09296
Minor improvements ( #1793 )
...
* CppSharp.Generators.Options: added pre/post TranslationUnitPass callback
* CppSharp.Generators.Passes.Pass: added TranslationUnitPassGeneratorDependent
2 years ago
Stefan
b14038ab07
Value types may generate `Dispose` ( #1787 )
2 years ago
João Matos
3b2a15d9f5
Update README.md
2 years ago
Stefan
a5afda8603
Fix parameterless constructors not being generated for structs ( #1783 )
...
* Fix parameterless constructors not being generated for structs
* Fix implicit non-trivial default ctor
* Adjust `Ignore` linked issue
2 years ago
Stefan
b16e809b9e
Introduce `GenerateFreeStandingFunctionsClassName` option ( #1782 )
...
* Introduce `GenerateFreeStandingFunctionsClassName` option
* Support CLI and fixes
2 years ago
Stefan
03874e743f
Fix Value Type String Member Invalid Codegen ( #1778 )
...
* Fix code generation
* Generate exception on broken struct set op
* Remove redundant usings
2 years ago
Salvage
adffc99bc8
Fix erroneous newline
2 years ago
Salvage
b4f261ea38
Simplify `IsTemplateParameterType`
2 years ago
Salvage
28000a14b4
Fix #1251 three parameter equality operator
...
- Operators in generic classes do not attempt to generate as extension methods anymore
- Empty `...Extensions` classes are no longer generated
- `string` as a template argument is correctly cast
- `MarshalCharAsManagedChar` option also generates correct casts
- Suppress warning regarding returning struct field by ref
- Eliminate some tabs that snuck into the test C++ header
2 years ago
Joao Matos
d7faf5f063
Fix SDL_PollEvent generation in the SDL example.
...
Fixes https://github.com/mono/CppSharp/issues/978 .
Thanks to @Saalvage .
2 years ago
Salvage
7f567b604b
Fix non-void returning functions with value-type out parameters
...
Also fixes indentation
2 years ago
Salvage
0c60384ea3
Additional bump
2 years ago
Salvage
0534e33178
Bump GH actions versions to solve warnings
2 years ago
Salvage
a6ef9d9095
Fix source dir
2 years ago
Salvage
7e6c49225f
Test fix broken packages
2 years ago
Joao Matos
2a351b7f22
Update our version to 1.1.
2 years ago