Tomi Valkeinen
065570de74
Rename PrimitiveType Int16 and UInt16 to Short and UShort
...
As enum PrimitiveType is supposed to represent C++ types, having Int16
and UInt16 there is not correct.
This patch renames those values to Short and UShort.
This doesn't change the behavior, but makes it clearer that the types
for 'short' and 'unsigned short' are not necessarily 16 bits.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
12 years ago
Elias Holzer
79f0d41d5c
Added failing test for the CheckAmbiguousFunctionsPass.
...
Test shows that all methods get ignored instead of just the two const overloads.
12 years ago
Tomi Valkeinen
1400361711
build: fix nunit dll filename
...
Linux is case-sensitive with filenames, and as the NUnit library files
are lowercase, we need to use lowercase in the build files also.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
12 years ago
Elias Holzer
933df5e65a
Improved support in parser for template classes and functions.
...
* Use clangIndex to identify declarations across translation units.
* Added new Find*ByUSR methods and removed unused Find*(IntPtr) methods.
* Added Depth/Index and IsParameterPack fields to TemplateParameterType.
* Fixed member initialization issues in C++ Method class.
* Added AST tests for function and class templates.
* All tests pass with new and old parser.
12 years ago
Elias Holzer
bd0ec409e9
Fixed adding of enum items in ASTConverter.
12 years ago
Elias Holzer
d1a3141f5b
The unique name set by the CleanInvalidDeclNames pass will now truly be unique across translation units.
12 years ago
Elias Holzer
6fa7077dbd
Moved unnamed enums test to generator tests.
12 years ago
Elias Holzer
b83b5029b0
Added extension method SetPropertyAsReadOnly to ASTContext.
...
The Property.HasGetter and HasSetter method will take the GenerationKind flag of the field/method pair into account.
12 years ago
Elias Holzer
b432daab9b
Added missing Visit override to Method class.
12 years ago
Elias Holzer
c670148493
The FindTypedef method supports full type names now.
12 years ago
Elias Holzer
487189ebad
Fixed the FindOperator method for classes.
...
Added AST test case and fixed line endings (LF).
12 years ago
Elias Holzer
749e5a399e
Added new property Parameter.Index.
...
Also added test which checks whether both parsers assign the AST parameter properties properly.
12 years ago
marcos henrich
7125109e3f
Deprecated ExplicityIgnored use ExplicitlyIgnore(). Getting ExplicityIgnored and setting ExplicityIgnored to false don't make much sense anymore.
...
Conflicts:
src/Generator/Passes/CheckOperatorsOverloads.cs
12 years ago
João Matos
3b097d8379
Improved the build scripts on OSX.
...
We now ignore CLI and native projects when running the VS action under non-Windows platforms (so that Xamarin Studio can load them).
Also fixed the build to actually add the correct parser bindings sources.
12 years ago
triton
e6856aeb4c
Reverted these changes that accidentally crept in.
12 years ago
triton
e95a2929a8
Fixed handling of property indexers in the CLI generator.
12 years ago
Dimitar Dobrev
20c6e04cd0
Fixed the ignoring of methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
9390feb330
Added new regex-based testing framework to test patterns against the generated code.
12 years ago
triton
1b7947538a
Move all the testing infrastructure to CppSharp.Generator.Tests.
12 years ago
triton
299b544893
Fixed C++ headers test fixture to work with new parser.
12 years ago
triton
b2c593ba54
Removed unused config file.
12 years ago
triton
1dcd8211fa
Removed CLI type printer unit tests.
...
The code paths are already being exercised with the regular tests.
12 years ago
triton
b1f64ed06d
Reworked Generator tests project.
12 years ago
triton
300127a234
Remove ParserLib and use SetupParser() in Generator.Test build script.
12 years ago
triton
a2ec94639b
Build fixes.
12 years ago
triton
3e489c9a06
Updated the generators and tests for new class names.
12 years ago
triton
10ab05009d
Removed unused config file.
13 years ago
triton
6b0cb59f8a
Added RunPasses to PassBuilder and change existing code to use it.
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
373a875df8
Add missing using.
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
c488dcbfde
Prefix all the libraries and project names with CppSharp.
13 years ago
Tom Spilman
e44c41c558
Replaced RemovePrefixEnumItem with RemovePrefix.
13 years ago
triton
cc8f7cd1db
Renamed Cxxi references to CppSharp.
13 years ago
triton
91d32df4e7
TypePrinterContext is now an abstract class and created a new CLITypePrinterContext class for the CLI backend.
13 years ago
triton
8a4b7cab8d
Added an helper to query namespaces.
13 years ago
triton
ea32fb14ed
Update the passes test so they actually work.
13 years ago
triton
6ca1e988da
Fixed the tests.
13 years ago
triton
d7ce1efdd0
Update the test runner to use the new parser interface.
13 years ago
triton
f1c6c7b58f
Added support for cleaning up the names of enum items (and a test).
13 years ago
triton
2a4c3481d1
Added some tests for passes.
13 years ago
triton
68727fc8a9
Update the text fixture to use DriverOptions.
13 years ago
triton
81186dcfd4
Added helper method to get methods in QueryHelpers.cs.
13 years ago
triton
6fc5eb48e3
Added a set of tests for type printing in the C++/CLI backend.
13 years ago
triton
05b57573b6
Added a new project with generator tests.
13 years ago
triton
6152e151c0
Rename the Bridge project to CxxBridge.
13 years ago
triton
f5fcef50f1
Massive update to the codebase.
...
- Removed reliance on T4 text templates that were proving to be a portability problem.
- Refactored the generator design to make a little more sense.
- Moved the examples to their own projects.
- Improved the build system to only use one unified output folder.
- Added much improved template support.
- Added work-in-progress C++/CLI generator backend.
- Added the concept of type maps.
13 years ago