João Matos
7764e31871
Merge pull request #15 from bobsummerwill/master
...
Added global:: prefix to all System.IntPtr references in the C# code gen...
13 years ago
Bright Twin
7c19f5f7db
Added global:: prefix to all System.IntPtr references in the C# code generator.
...
Without this qualification it is possible for the generated code to have namespace clashes with nested System namespaces in the code being wrapped.
13 years ago
João Matos
7f25173438
Merge pull request #14 from bobsummerwill/master
...
Fix typo in HTML Comment processing code where the wrong variable was be...
13 years ago
Bright Twin
521e1622ca
Fix typo in HTML Comment processing code where the wrong variable was being incremented.
13 years ago
triton
b2cabe2551
Remove unused field.
13 years ago
triton
2433deb45e
Updated users manual.
13 years ago
triton
e5c141db6c
Fixed the loop increment when parsing comment blocks.
13 years ago
triton
cd08295499
Use a map to keep track of anonymous declarations else we cannot refer to them later when needed.
...
This could lead to self-referencing problems when parsing (and stack overflows!).
13 years ago
triton
63468dfb0e
Use dynamic_cast instead of safe_cast for upcasting.
13 years ago
triton
a6fa8af39d
Added full support for C++ documentation comments to the AST and parser.
13 years ago
triton
c494cc9ef4
Added work-in-progress getting started documentation.
13 years ago
João Matos
64c7a79fcf
Merge pull request #13 from esdrubal/typerefs
...
C++/CLI Type references fixes
13 years ago
marcos henrich
06ab4864e2
Added TypeReferenceCollector used for include and forward reference printing. TypeMaps are now able to add includes and forward references. Record system allows more complex situations where you need a declaration's origin type/declaration.
13 years ago
marcos henrich
fdd7075c53
Added ASTRecordCollector, it can be backtrack from where each declaration and type was visited.
13 years ago
marcos henrich
253946c622
Parser now adds namespace function parameters.
13 years ago
marcos henrich
7dd2771604
Removed CheckTypeReferencesPass and TypeRefsVisitor
13 years ago
marcos henrich
e168e84d6a
Resolved ambiguity of System.Type and CppSharp.AST.Type
13 years ago
marcos henrich
32428155e3
Fixed enum type print.
13 years ago
marcos henrich
4875addfb4
Added synthetized check on block generation of ObjectOverridesPass.cs so already existing methods are not modified.
13 years ago
marcos henrich
8e34a026b9
Changed property Declaration.Name to virtual. Now ClassTemplate shares Name with its TemplatedClass.
13 years ago
marcos henrich
10b4cde907
Added support to specify with TypeMaps, required includes and forward references of generic types
13 years ago
marcos henrich
f738d00738
Parser now initializes ClassTemplate's parameters
13 years ago
triton
383bfdf670
Add work-in-progress ObjectOverrides pass that adds GetHashCode and Equals overrides.
13 years ago
triton
252af32318
Added first pass at a pass for transforming compatible getters/setters into properties.
13 years ago
marcos henrich
2ea69f1a67
Added return null to method FindClass when parameter class name is null or empty
13 years ago
marcos henrich
d418ec2e23
Added HandlePreprocessedEntities call for all entities that doesn't contain yet any preprocessed entity.
13 years ago
triton
ef7cd8ea47
Added support for IsOverride in the generators.
13 years ago
triton
2e97311423
Reference classes now implement the ICppInstance interface.
...
This will be used to add support for overrides of Equals and GetHashCode.
13 years ago
triton
fdb35ce28e
Clean up driver.
13 years ago
triton
acac3fc00d
Re-work handling of enum constants fixing signedness and formatting issues.
13 years ago
triton
6a31a00760
Add the enumeration item expression as a string to the AST.
13 years ago
triton
6eef880f7e
Clean up the console driver by emitting file parsing diagnostics in the main driver.
13 years ago
triton
8ed1584126
When checking for ignored declarations, return early if the declaration is already ignored.
13 years ago
triton
7dca138287
Use fully qualified names in C# to minimize the chance of conflicts.
13 years ago
triton
815b9dcf37
Output the runtime helper in sources instead of headers.
13 years ago
triton
3a663e1a9d
Renamed C++/CLI runtime helpers to CppSharp.h.
13 years ago
triton
f47dc5bb07
Convert the C# backend to the new blocks system.
13 years ago
triton
373a875df8
Add missing using.
13 years ago
triton
83b7bd1954
Add two new properties IsOverride and IsProxy to methods.
...
These can be useful to provide "fake" declarations in the AST whose implementation is written by the user later with a MethodBody block. Since this is so useful for custom bindings a simplified abstraction for this will be added in the future.
13 years ago
triton
1f35639ff2
Update the SDL example.
13 years ago
triton
443e2a278b
Visit the base VisitDeclaration in Pass.
13 years ago
triton
0e0a78e008
Do not visit already visited classes in the ResolveIncompleteDecls pass.
13 years ago
triton
9e3f9f29ac
Ignore irrelevant Clang declarations in the parser.
13 years ago
triton
0307acadab
Simplify library/symbols handling in the C# backend.
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
3f664784c9
Added support for CIL types to the type system.
13 years ago
triton
2a08b6e05b
Ignore properties if their getter or setter methods are also ignored.
13 years ago
triton
02be3857ed
Re-write code dealing with library symbol checking to respect the new symbol checking options.
13 years ago
triton
968df88117
Add new option for checking symbols and for the main shared library name.
13 years ago