Dimitar Dobrev
057e025ee3
Fixed a memory leak by removing from static members typedefs used for delegates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
575649b5da
Fixed a memory leak in the code generators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
985171596a
Minor changes to the auto-compilation of C# code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
67e14e7171
Improved the feedback when auto-compiling.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
47b1781603
Removed the writing of code to disk when auto-compiling.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
fbb2f941c4
Based on Abhinav Tripathi's work: extracted delegates in order to reuse them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
51ca678fa8
Removed a useless reference when auto-compiling.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
324e241c25
Fixed the internal abstract impls with default params of a pointer type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
d07b158a98
Revert "Support overriding the alignment of Clang's target info."
...
This reverts commit 0e1e9c971b
.
10 years ago
triton
0e1e9c971b
Support overriding the alignment of Clang's target info.
10 years ago
Dimitar Dobrev
76ea3158df
Prevented conversion operators from getting ref params.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Abhinav Tripathi
dd941d9191
Added marshalling of primitive ptrs to ref type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
ce597a399c
Fixed the build on VS 2015.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
c0fbdcbb0a
Fixed the auto-compilation in the C# end by adding a reference to System.Core.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
451278cb10
Removed the option for abstract impls thus enabling them by default.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
77369b50c5
Removed the option for abstract impls enabling them by default for the C# generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
a9101ece64
Rename the diagnostic emit overloads so they're more uniform.
10 years ago
triton
2620fda064
Get rid of diagnostic IDs as these never got used in practice.
10 years ago
Dimitar Dobrev
7da56fc082
Added automatic adding of references between dependent modules.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
3751e647a4
Simplified and moved the pass for translation units renamed to name-spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Dimitar Dobrev
b252de41d9
Added a check whether a library to wrap has already been parsed.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
Chris Spencer
0c535d361b
Generate delegates for non-typedef'd function pointers to prevent runtime exceptions during marshalling.
10 years ago
Pyry Kontio
8a85058c48
Implemented name importing & exporting.
11 years ago
triton
fe56198ceb
Fixed ToolSetToUse to work with the latest Clang expectations.
11 years ago
Dimitar Dobrev
9e5be9e92c
Added the ability to only enable a given type map for a selected back-end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
643776b70e
Enabled the addition of undefines in the options.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f16a5ff6e0
Ensured default values, if any, of parameters of overrides, are generated.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/Generator/Driver.cs
tests/Basic/Basic.cpp
tests/Basic/Basic.h
11 years ago
Dimitar Dobrev
548f0feb55
Added an option for the language version.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
ce2f7f70b4
Fixed driver code to use source file options for parsing.
11 years ago
triton
3cdc47770f
Changed Driver.BuildParseOptions to be public.
11 years ago
triton
a62ea33d64
Split building source file parse options from parsing code.
11 years ago
Dimitar Dobrev
0499556bfe
Added support for default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
1802470013
Kill the old parser (good riddance :).
11 years ago
Tomi Valkeinen
4e185973e5
Normalize all the line endings
...
Normalized all the line endings with:
git rm --cached -r .
git reset --hard
git add .
git commit -m "Normalize all the line endings"
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
triton
acef972a55
Added support for a "dry run" option that does not write anything to disk.
11 years ago
Elias Holzer
474f82b513
Added support for explicit conversion operators and added new pass which will create implicit and explicit conversion operators out of single argument constructors.
...
Conflicts:
src/Generator/Passes/CheckAmbiguousFunctions.cs
src/Generator/Passes/CheckOperatorsOverloads.cs
11 years ago
marcos henrich
d63ef03200
Changed Driver.Diagnostics setter to public. Replaced TextDiagnosticPrinter Verbose field by Level.
11 years ago
triton
df188d92f8
Fixed the tests by adding another option for the advanced property pass.
...
Long-term, I'd like to see both passes merged...
11 years ago
triton
9166a55202
Fixed generation of properties to behave as expected.
...
Fixed this by changing GenerateProperties to use GetterSetterToPropertyPass instead of GetterSetterToPropertyAdvancedPass.
Fixes issue #215 .
11 years ago
triton
9b5ddb7e3e
Fixed option validating code to work with the new parser.
11 years ago
triton
e73fb76613
Added an option for generation of inlines in the C# generator.
11 years ago
triton
2426c3eedb
Added an option to compile the generated C# code.
11 years ago
marcos henrich
56f772a8c8
UseHeaderDirectories when true generated files will be outputted to original relative paths, and include will use relative path between headers. When NoGenIncludePrefix is set a string is prepended to the include files that are not generated.
11 years ago
marcos henrich
4574b898de
Added to binder option NoGenIncludeDirs that contains a list of non generated include dirs.
11 years ago
Dimitar Dobrev
445f460b47
Fixed the reporting of compilation errors.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Øystein Krog
b1642bd47b
Add TargetInfo in Driver.
12 years ago
Dimitar Dobrev
093ae1548b
Avoided crashes when generating code corresponding to translation units at invalid locations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
0a102d8fbc
Added better wrapping for static classes.
12 years ago
Dimitar Dobrev
85e56de487
Applied Helpers.SafeIdentifier in the name-cleaning pass in order to get correct names in type maps.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
45b110e739
Added arguments options support to pass custom Clang options to the parser.
12 years ago