duckdoom5
26386510f2
Improved XML style comment parsing
4 months ago
Jelle
6fe8c664b9
Allow static class conversion for classes with implicit/deleted constructors ( #1923 )
...
* Allow static class conversion for classes with implicitly defined constructor
* Fix static being applied to classes without static methods/fields
* Fix static class edge cases
4 months ago
Jelle
18d817ffaf
Fix invalid enum base types being generated in C# source ( #1899 )
...
* Rename `CheckFlagEnumsPass` to `CheckEnumsPass`
* Fix invalid enum base types being generated in C# source
* Add enum base type validation tests
5 months ago
josetr
eb5031bf4c
Format files
3 years ago
Dimitar Dobrev
3aab30f572
Add built-in compilation of extra symbols
...
Fixes https://github.com/mono/CppSharp/issues/1456 and https://github.com/mono/CppSharp/issues/1253 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Joe Hull
03bf194b63
Enhanced ExpressionEvaluator to return implicitly typed uint, long, and ulong values from EvaluateNumber when there is no literal type suffix applied to a numeric expression string.
...
Changed Library.GenerateEnumFromMacro and friends to track the primitive type of the Enumeration while building an Enumeration's list of items so that we can support negative items within an Enumeration.
Fixed bugs in GetUnderlyingTypeForEnumValue where "<" should have been "<=" and Long should have been LongLong. Extended it to support negative values.
Added tests.
4 years ago
Matt Key
3fee9dd5b9
Adding test for new pass
4 years ago
Joao Matos
88fc5b9c36
Rewrite GenerateEnumFromMacros helper to also look into enum items.
5 years ago
Dimitar Dobrev
6f276debf6
Don't check the unsupported operator= for symbols
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
534acc564d
Fix declaration access for generated fields flattened from anonymous types.
5 years ago
Ghasan Al-Sakkaf
0b9b10d2f5
Fix enum with zeros for hex literals
6 years ago
Dimitar Dobrev
c6ffa9ddf2
Fix the regressed indentation of printed comments
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
c358d6bbef
Expose public anonymous types
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
e203463a9d
Added an option for skipping private declarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
8958217314
Sped the test run up by moving the test for ignored system types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
b5c17d98bd
Verified that unused STD types are removed.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
d7c8a61ecc
Manipulated comments to avoid duplication of summary block. ( #876 )
...
Fixes #759 Works around: https://bugs.llvm.org/show_bug.cgi?id=33333
8 years ago
Dimitar Dobrev
eb631e3f37
Removed deprecated code related to testing.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
cef847825a
Exposed constant expressions, friendships and exception specifications of functions in our AST.
9 years ago
Dimitar Dobrev
b2a872f431
Merged the passes for properties and made the result non-optional.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
7a26c11382
Rename VisitLibrary method to VisitASTContext.
9 years ago
Dimitar Dobrev
63612a875a
Removed the renaming of fields because they are no longer exposed.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
4f10e9fb78
Fixed the build after the refactoring.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
62ab990b63
Formatting fixes.
9 years ago
Joao Matos
013a9e8b4c
Merged IgnoreAbstractOperatorsPass into CheckOperatorsOverloadsPass and added a test.
9 years ago
Dimitar Dobrev
575649b5da
Fixed a memory leak in the code generators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Abhinav Tripathi
c7c74e306b
Added CS_INTERNAL macro definition and test.
10 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
11 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.
11 years ago
Elias Holzer
d1a3141f5b
The unique name set by the CleanInvalidDeclNames pass will now truly be unique across translation units.
11 years ago
Elias Holzer
6fa7077dbd
Moved unnamed enums test to generator tests.
11 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.
11 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
11 years ago
Dimitar Dobrev
20c6e04cd0
Fixed the ignoring of methods.
...
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
b1f64ed06d
Reworked Generator tests project.
12 years ago
triton
3e489c9a06
Updated the generators and tests for new class names.
12 years ago
triton
6b0cb59f8a
Added RunPasses to PassBuilder and change existing code to use it.
12 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.
12 years ago
triton
19bba20fd9
Update the tests to compile again.
12 years ago
Tom Spilman
e44c41c558
Replaced RemovePrefixEnumItem with RemovePrefix.
12 years ago
triton
cc8f7cd1db
Renamed Cxxi references to CppSharp.
12 years ago
triton
ea32fb14ed
Update the passes test so they actually work.
12 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