Commit Graph

  • ffc96de8f9 Fixed the managed to native marshaling of pointers to primitive types by following typedefs and casting when necessary. triton 2013-01-23 10:11:45 +0000
  • 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. triton 2013-01-23 10:06:04 +0000
  • 8f02c6a2dd Handle native to managed marshaling of pointers to primitive types. triton 2013-01-23 10:01:14 +0000
  • 0d20a497c6 Moved class member to the top of the class. triton 2013-01-23 09:58:37 +0000
  • 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. triton 2013-01-23 09:56:14 +0000
  • 89f2cbdf74 Fixed processing of incomplete enums in CLI headers. triton 2013-01-22 18:57:01 +0000
  • ea114f8ba0 Added preliminary support for class template specialization in the bridge AST. triton 2013-01-22 18:42:42 +0000
  • 7f7d774fdc Added an helper method to set the name of a class method. triton 2013-01-22 18:42:12 +0000
  • 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. triton 2013-01-22 18:40:59 +0000
  • 721d507633 Enum declarations also need to be forward referenced. triton 2013-01-22 18:38:49 +0000
  • 44154a879d Class reference types do not need a full include forward reference. triton 2013-01-22 18:38:14 +0000
  • 3dd40b1d75 Walk through typedefs when checking for pointers to primitive types in CLITypePrinter. triton 2013-01-22 18:36:39 +0000
  • c6dd10fc81 Prefer visiting complete class declarations if they are available. triton 2013-01-22 18:35:48 +0000
  • 5a90ba7644 Added an handle to CLI arrays wrapping. triton 2013-01-22 18:34:45 +0000
  • 6a44c0bde1 We need to collect all class declarations and not just value type classes. triton 2013-01-22 17:29:41 +0000
  • 0c143f5b0c Added helper method to check and get primitive types out of pointer types. triton 2013-01-22 17:02:14 +0000
  • dd8c3ea9c7 Added helper property to get the constructors of a class. triton 2013-01-22 17:01:40 +0000
  • 48a96b4865 Cosmetic fix in Parser.cpp. triton 2013-01-22 17:00:55 +0000
  • 4d4d2c1865 Collect enums when checking for type references. Fixes undefined enums problems when referenced in value structs. triton 2013-01-21 17:19:18 +0000
  • b8ebd27841 Added namespace walk support. triton 2013-01-21 17:18:26 +0000
  • faded38014 Keep the declaration order of classes and sort them before processing. This helps with some referencing order problems in the generated code. triton 2013-01-21 17:17:08 +0000
  • 8b2facf759 Speed up parsing of the AST by skipping function bodies. triton 2013-01-20 17:55:31 +0000
  • 724a5d4fcc Added very primitive support for variables in the AST. triton 2013-01-20 17:55:01 +0000
  • 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. triton 2013-01-20 13:54:00 +0000
  • 953779d0ed Check if a function already exists before adding a new one. triton 2013-01-20 13:52:41 +0000
  • ef23735d9b Removed some dead code from Parser.cpp. triton 2013-01-20 13:52:10 +0000
  • df61ea6041 Classes now try to keep accurate track if they were complete / forward referenced at the time of referencing. triton 2013-01-20 13:51:31 +0000
  • dae633b89f Improved CLI value class marshaling. triton 2013-01-20 13:47:57 +0000
  • da2030c25c Fixed marshaling of C++ references. triton 2013-01-20 13:44:59 +0000
  • c72c1e1dd6 Stubbed out delegate visiting support. triton 2013-01-20 13:42:37 +0000
  • 42e01edfaa Renamed variable to follow the conventions in the rest of the code. triton 2013-01-20 13:41:01 +0000
  • d1bcc2f1f9 Removed unneeded using in CLI/CLIHeadersTemplate.cs. triton 2013-01-20 13:40:33 +0000
  • 98e06af6f1 Update CLIMarshal.cs to the new type map database interface. triton 2013-01-20 13:38:42 +0000
  • faa635f065 Added an helper method to check if a field is ignored. triton 2013-01-20 13:30:37 +0000
  • 5ffb858f8f Switch CLITypePrinter to the new type map database interface. triton 2013-01-20 13:29:45 +0000
  • b5566c8400 Changed the generator to receive a type map database instance. triton 2013-01-20 13:26:21 +0000
  • a9249f43b8 Ignore all STL collections for now. triton 2013-01-20 13:25:42 +0000
  • 9199f30475 Added marshaling of STL wide strings. triton 2013-01-20 13:25:08 +0000
  • 397ead6ee6 Added a field to keep a reference to the complete version of the declaration. triton 2013-01-20 13:23:42 +0000
  • 0631c091f5 Added a new method to declare the header sources. triton 2013-01-20 13:23:17 +0000
  • b069ce6b4b Much improved checking of type completion. triton 2013-01-20 13:22:51 +0000
  • 4457afed6a Pass the type map database instance to TypeIgnoreChecker. triton 2013-01-20 13:21:38 +0000
  • dbf927e73d Switch the type checkers to the AstVisitor interface. triton 2013-01-20 13:20:54 +0000
  • 23e85aada7 Pass the type map database to the type checker. triton 2013-01-20 13:13:19 +0000
  • 579313f9df Remove the base class for type checkers and replace with AstVisitor. triton 2013-01-20 13:11:55 +0000
  • d421ce780f Clean up variable declaration. triton 2013-01-18 18:23:09 +0000
  • f1ac9d7bc8 Propagate the type map database to the various generation steps. triton 2013-01-18 18:22:51 +0000
  • a8ac2d8b76 Added a type map for C's variable argument list type "va_list". triton 2013-01-18 18:20:20 +0000
  • f753596c2e Added an helper method to get the type map of a declaration. triton 2013-01-18 18:18:25 +0000
  • 0f2e802925 Extract type map setup in another method to make the code clearer. triton 2013-01-18 18:18:03 +0000
  • bd232b03ee Create a new interface for the type map database. This will be used later for mock testing. triton 2013-01-18 18:16:54 +0000
  • 6143f6c897 Added #region markers for type and decl AST visitors. triton 2013-01-18 18:15:37 +0000
  • ba2862bc8d Added a property so a type map can signal that the type is to be ignored. triton 2013-01-18 17:43:44 +0000
  • a4cc8598fa Removed useless using. triton 2013-01-18 17:42:54 +0000
  • ba1b811b90 Added default implementations for type map methods. triton 2013-01-18 17:42:23 +0000
  • 8540e48bcf Improved the CLI type printing of typedef types. triton 2013-01-18 17:03:35 +0000
  • 61a6811816 Improved the printing of CLI forward references. triton 2013-01-18 16:59:50 +0000
  • 7cc8b8bad7 Removed some dead legacy code that is left from the C# module. triton 2013-01-18 16:55:30 +0000
  • 5a8400ed22 Added generation of properties for fields of non value-type classes. triton 2013-01-18 16:54:25 +0000
  • 861a979d35 Struct types also need to have a default constructor taking the native instance. triton 2013-01-18 16:53:30 +0000
  • 865867586a Comment out and add a TODO for the handling of unions. triton 2013-01-18 16:52:06 +0000
  • 2c9999d95c Renaming and mechanical changes to CLIHeadersTemplate.cs. No behavior change intended. triton 2013-01-18 16:50:37 +0000
  • 081ecf5199 Renamed the field to lowercase to follow .NET conventions. triton 2013-01-18 16:45:59 +0000
  • 8f29c406ba Added generation of include needed to break dependencies on forward references. triton 2013-01-18 16:43:14 +0000
  • 867cbf9e30 Small refactor of the decl and type checking methods. triton 2013-01-18 16:35:53 +0000
  • 896c4fc11a Added helper methods to check if a type is a reference. triton 2013-01-18 16:34:03 +0000
  • 6c9105be2f Added helper methods to check if a type is a pointer. triton 2013-01-18 16:33:54 +0000
  • f47b7b1944 Added a base class for all AST visitors. triton 2013-01-18 16:32:06 +0000
  • 7821b88347 Added helper declaration to represent delegates. triton 2013-01-18 16:31:45 +0000
  • f5fcef50f1 Massive update to the codebase. triton 2013-01-06 19:22:34 +0000
  • c030e8d2a3 Delete an obsolete solution. triton 2013-01-06 01:14:10 +0000
  • 2288dc1f37 Moved the Parser projects. triton 2013-01-06 01:12:19 +0000
  • c5cf6d2abf Build changes. triton 2013-01-06 01:07:04 +0000
  • 1e248e4851 Merge branch 'master' of https://github.com/tritao/cxxi triton 2012-10-03 17:29:11 +0100
  • 66843910d2 Added an SDL transform module. triton 2012-10-03 17:28:46 +0100
  • 361b88a1c1 Added a libclang transform module. triton 2012-10-03 17:28:34 +0100
  • 0419049043 Update Manual.md João Matos 2012-09-18 19:10:42 +0200
  • 57a14eabf3 Fixed whitespace inconsistency. triton 2012-09-16 00:43:49 +0100
  • ba2d7f10b4 Updated build files. triton 2012-09-16 00:29:54 +0100
  • f2cc4c6d00 Hooked up typedef processing to the code generator. triton 2012-09-16 00:29:45 +0100
  • 35e66fcbac Removed user-specific solution file. triton 2012-09-16 00:29:24 +0100
  • 399d55002a Removed lib-specific SDL code file. triton 2012-09-16 00:28:22 +0100
  • fe31bef824 Added support to transforms declarations selectively. triton 2012-09-16 00:28:07 +0100
  • ec50822421 Implement proper support for delegates and function pointers. triton 2012-09-16 00:27:40 +0100
  • 8f5464c6df Added support in Namespace.cs to store typedefs. triton 2012-09-16 00:27:01 +0100
  • 74bf690697 Added field to keep the native library name. triton 2012-09-16 00:26:45 +0100
  • 7bc569fe90 Reorganized declarations. Added support for field offsets. triton 2012-09-16 00:26:25 +0100
  • 4c25413588 Reorganized declarations. Added flag to see if type should be treated as opaque. Added flag to see if type is an union. triton 2012-09-16 00:26:09 +0100
  • cd06bb0d2d Added support for typedefs to the code generator. triton 2012-09-16 00:25:20 +0100
  • 4c4e65723c Added support for typedefs to the native parser. Added support for user-specified include directories. triton 2012-09-16 00:24:15 +0100
  • 2e348f6191 Added an option to the generator to set the native library name. Pass include directories to the native parser. triton 2012-09-16 00:23:23 +0100
  • cde619bf4c Added support for typedef declarations. triton 2012-09-16 00:22:28 +0100
  • b84196c0b7 Renamed a few functions and factored out the SDL transforms. triton 2012-09-05 23:23:17 +0100
  • 9fb449bc10 Updated the build files to the new changes. triton 2012-09-05 22:20:46 +0100
  • 6f5f491afc Updated the code generator to the new namespaces API changes. triton 2012-09-05 22:20:01 +0100
  • 0f71342594 Removed CSharpModule.cs which should be auto-generated. triton 2012-09-05 22:19:15 +0100
  • 0224542925 Fixed the native code parser to deal with namespaces. triton 2012-09-05 22:18:12 +0100
  • bd63f64062 Added a new file with SDL library related transformations. triton 2012-09-05 22:17:40 +0100
  • dee42a91a8 Factor out the SDL-related code to separate file. triton 2012-09-05 22:17:08 +0100
  • edec622b66 Rename and document the existing transforms. Added a few more transformation helpers. triton 2012-09-05 22:16:42 +0100