triton
ac7176f1b7
Added parsing and AST support for C++ friend declarations.
11 years ago
Joao Matos
c44985a2a4
Improved test driver to add Clang's built in header path to the system lookup paths.
11 years ago
Dimitar Dobrev
4385ecac76
Fixed the finding of classes to also check name-spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
798e086ef9
Added reading of dependencies of ELF libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
a62ea33d64
Split building source file parse options from parsing code.
12 years ago
triton
1802470013
Kill the old parser (good riddance :).
12 years ago
Dimitar Dobrev
9e480dd364
Fixed the renaming pass to account for overloads of functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/AST/Class.cs
src/Generator.Tests/Passes/TestPasses.cs
src/Generator/Generators/CSharp/CSharpTypePrinter.cs
12 years ago
triton
7f927db6c8
Renamed ASTContext parameters.
12 years ago
Tomi Valkeinen
7289a06b9e
Rename PrimitiveType Int32 and UInt32 to Int and UInt
...
As enum PrimitiveType is supposed to represent C++ types, having Int32
and UInt32 there is not correct.
This patch renames those values to Int and UInt.
This doesn't change the behavior, but makes it clearer that the types
for 'int' and 'unsigned int' are not necessarily 32 bits.
12 years ago
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