4605 Commits (bootstrap)
 

Author SHA1 Message Date
triton 816d90c99c Parameters can now store what type of conversion they need. 13 years ago
triton c97caea03d Change properties to inherit from declarations. 13 years ago
triton 7812eb8a09 Added IAstVisited interface and use it in AstVisitor. 13 years ago
triton 06c79475f9 Moved Pass.cs to the Passes folder. 13 years ago
triton d3e588f456 Added enum to keep different type and declaration conversion kinds. 13 years ago
triton e8804b7f63 Added an helper transform to set the name of a function. 13 years ago
triton 2e8fbe7452 Pass the library to the pass build and pass it to each added pass. 13 years ago
triton 6cd81b80de Added an helper method to find a complete class. 13 years ago
triton 019a840347 Use the enumerable version of FindFunction in the IgnoreFunctionWithName helper. 13 years ago
triton b48a2c21f1 Switch declaration find helper methods to return enumerables. 13 years ago
triton c957cdf9ca Change FindFunction to return an enumeration of all functions and use Linq to do the query. 13 years ago
triton 2c3596ce8b Extract a couple of methods in CLIHeadersTemplate.cs to make the code more readable. 13 years ago
triton 462a78c5fc Refactored the generation of method parameters in its own method. 13 years ago
triton 5f49a53636 Rework how the struct marshaling from managed to native is done. Now we marshal each field explicitly instead of assuming the struct is made of blittable types. 13 years ago
triton 3d8ea62e4e Added support for prefix text before the marshaled argument is passed to the wrapped native function. 13 years ago
triton 257a372573 Added support to generate text before and after the argument in CLIMarshal.cs. 13 years ago
triton 8cbb2918c9 Added an implicit string operator conversion to the text generator. 13 years ago
triton 47012db6be Converted CLIMarshal.cs to the new text generator class. 13 years ago
triton 0ec068afbf Added helper class to generate text. 13 years ago
triton 2d4f09f171 Improved the marshaling of value class method parameters. 13 years ago
triton 91ef36aad8 Add an explicitly dereference if trying to wrap class-based pointer types when doing class managed to native marshaling. 13 years ago
triton f28db2f5f1 Add an explicit cast when we have a typedef to a primitive type. This fixes some ambiguity cases when the compiler later performs overload resolution. 13 years ago
triton ffc96de8f9 Fixed the managed to native marshaling of pointers to primitive types by following typedefs and casting when necessary. 13 years ago
triton fe7beb5f08 Use the full qualified name for referring to the managed type constructor when doing native to managed marshaling. Use an explicit cast for the first argument. This fixes the case when the type being passed to the constructor is const. 13 years ago
triton 8f02c6a2dd Handle native to managed marshaling of pointers to primitive types. 13 years ago
triton 0d20a497c6 Moved class member to the top of the class. 13 years ago
triton 27a70dbbfe We now create an extra public constructor that takes an IntPtr. We do this because by default native types are not exported as public in MSVC C++/CLI and we need to be able to instantiate these objects. 13 years ago
triton 89f2cbdf74 Fixed processing of incomplete enums in CLI headers. 13 years ago
triton ea114f8ba0 Added preliminary support for class template specialization in the bridge AST. 13 years ago
triton 7f7d774fdc Added an helper method to set the name of a class method. 13 years ago
triton 06c4ec1697 Fixed the transformation helpers to pass through every type that matches. This fixes wrong behavior in the case of same class being referenced in multiple translation units. 13 years ago
triton 721d507633 Enum declarations also need to be forward referenced. 13 years ago
triton 44154a879d Class reference types do not need a full include forward reference. 13 years ago
triton 3dd40b1d75 Walk through typedefs when checking for pointers to primitive types in CLITypePrinter. 13 years ago
triton c6dd10fc81 Prefer visiting complete class declarations if they are available. 13 years ago
triton 5a90ba7644 Added an handle to CLI arrays wrapping. 13 years ago
triton 6a44c0bde1 We need to collect all class declarations and not just value type classes. 13 years ago
triton 0c143f5b0c Added helper method to check and get primitive types out of pointer types. 13 years ago
triton dd8c3ea9c7 Added helper property to get the constructors of a class. 13 years ago
triton 48a96b4865 Cosmetic fix in Parser.cpp. 13 years ago
triton 4d4d2c1865 Collect enums when checking for type references. Fixes undefined enums problems when referenced in value structs. 13 years ago
triton b8ebd27841 Added namespace walk support. 13 years ago
triton faded38014 Keep the declaration order of classes and sort them before processing. This helps with some referencing order problems in the generated code. 13 years ago
triton 8b2facf759 Speed up parsing of the AST by skipping function bodies. 13 years ago
triton 724a5d4fcc Added very primitive support for variables in the AST. 13 years ago
triton 3c0b6e5620 Changed the generator to get the AST of each header individually. This fixes some problems that the old way had related to keeping track of forward references. 13 years ago
triton 953779d0ed Check if a function already exists before adding a new one. 13 years ago
triton ef23735d9b Removed some dead code from Parser.cpp. 13 years ago
triton df61ea6041 Classes now try to keep accurate track if they were complete / forward referenced at the time of referencing. 13 years ago
triton dae633b89f Improved CLI value class marshaling. 13 years ago