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.
12 years ago
Dimitar Dobrev
24a8db6a32
Fixed the generation of internal implementations of abstract classes to actually work.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
99849da1d1
Added preliminary support for char16 to avoid crashes because of null parameter types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
1b7947538a
Move all the testing infrastructure to CppSharp.Generator.Tests.
12 years ago
triton
b58a99ebf3
Some fixes to the codebase to work correctly with the new parser bindings.
12 years ago
triton
4d70b60700
Renamed ASTContext parameter from "lib" to "ctx".
12 years ago
triton
b808117566
Cleaned up the default diagnostics output to be more concise.
12 years ago
triton
4a29db6bcd
Revert "Fixed bug caused by a type in the new parser."
...
This reverts commit f1f6c2e5e9 .
12 years ago
triton
f1f6c2e5e9
Fixed bug caused by a type in the new parser.
12 years ago
Dimitar Dobrev
d0f0c7e9e2
Added generation of detailed code comments ("<remarks/>").
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
7ecafc9858
Prevented renaming of methods when a base class has a property of the same name. Made the delegates used in abstract implementations prefixed with an underscore and internal.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
a18d724368
Added OrderedSet utility class.
12 years ago
Stephen Kennedy
0957843c4d
Unify debugging output
...
Route all debugging output through Driver.Diagnostics
12 years ago
triton
a219ea4b84
Disabled symbol checking by default.
...
This feature still needs some work to be totally robust and it makes the tool not generate bindings by default so disable it for now.
12 years ago
triton
6631d7e7c8
Changed GetTestsDirectory to be public.
12 years ago
triton
c619d67eb6
DriverOptions now inherits from ParserOptions instead of providing a member.
12 years ago
triton
cc0e0dab8d
Changed the test setup to search for the tests output directory.
12 years ago
triton
ca9c332618
Changed the test setup to search for the tests directory.
12 years ago
triton
ece5fb6e56
Updated the generator to be able to use the new parser.
12 years ago
triton
d114ac0f0e
Renamed LanguageGeneratorKind to GeneratorKind.
12 years ago
triton
3e489c9a06
Updated the generators and tests for new class names.
12 years ago
Dimitar Dobrev
840e3c93cf
Corrected the access modifier of overridden methods because in C++ overriding may change access.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
Dimitar Dobrev
b9f1ecb715
Changed the parameter type comparer to work with qualified types because overriding cannot change the qualification of types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
Dimitar Dobrev
6d2c0eaed8
Generated internal implementations of abstract classes in a new pass.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
13 years ago
triton
b80a395998
Reworked the tests base class.
13 years ago
triton
0c51ea6862
When generating tests glue, wrap the declaration in a namespace with the library name, this makes sure there are no conflicts between native and managed types.
13 years ago
triton
c2f4122414
Added workaround for CLR limitation when searching for native libraries.
13 years ago
marcos henrich
0cf8c03aa3
PassBuilder is now generic. Driver Passes is now called TranslationUnitPasses. Added to driver GeneratorOutputPasses. Removed most of the PassBuilder Extensions.
13 years ago
triton
acac3fc00d
Re-work handling of enum constants fixing signedness and formatting issues.
13 years ago
triton
b9e57dba78
Re-write the blocks generator again (thanks to esdrubal for helping me with the new design).
...
Now the whitespace/new line handling is done by the output generator per block, instead of having to be managed manually which could lead to all sorts of messy output without being extra careful.
Also the new system limits the usage of generics since C# was too limited to design it properly, and it ended up being more trouble than it was worth. The blocks kinds were also changed to be const int, since enums are very hard to extend and made it hard to provide a common interface for dealing with blocks.
13 years ago
triton
68ddfbdd6f
Move the AST project to the CppSharp.AST namespace.
13 years ago
triton
19bba20fd9
Update the tests to compile again.
13 years ago
triton
6dd7d19165
Add support for deep cloning TextGenerator instances.
13 years ago
triton
411aeeba8c
Small cleanup to the TextGenerator class.
13 years ago
triton
0e865294db
Rename and change visibility of the StringBuilder instance in TextGenerator.
13 years ago
triton
d7ff6ae4ab
Update test utility class for new ILibrary interface.
13 years ago
triton
0aeb17b1cb
Removed extra whitespace.
13 years ago
triton
f23600caf5
Added helper Linq method to return an enumeration without its last element.
13 years ago
triton
5aae80fd40
Check for a null string when writing text in templates.
13 years ago
triton
719a90fca3
Added some string helper methods.
13 years ago
triton
cc8f7cd1db
Renamed Cxxi references to CppSharp.
13 years ago
triton
42d3d0cc97
Added an utility method to uppercase the first letter of strings.
13 years ago
triton
e8ce0db9be
Added integration tests that generate and run wrapping code for both the CLI and C# backend.
13 years ago
triton
cdc613f24f
Added helper method to reset new lines state in the text generator.
13 years ago
marcos henrich
7273145e69
Serializes generated file hashes so files are only overwrite on change.
13 years ago
marcos henrich
9d2da916ec
TextGenerator now indents multiple lines of the given string
13 years ago
marcos henrich
3b871b86e7
Fixed missing indentation when calling TextGenerator.Write with a string ending with new line
13 years ago
triton
ef50c60f00
Moved the SplitCamelCase method to the utils.
13 years ago
triton
5d0e8b99e3
Created a new top-level target executable ("Cxxi") and fixed the Generator to be a proper library.
13 years ago
triton
29e19e483d
Make indentation variable protected.
13 years ago