Dimitar Dobrev
e4200f4690
Fixed the wrapping of template parameters in the parser.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
bc26e77ab2
Extract AST->getTargetInfo() expression into a local variable.
10 years ago
Dimitar Dobrev
2294fe56fb
Fixed the layouts of ignored dynamic types by generating their v-table pointers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
336dbe8ff8
Marshalled fields with a pointer type as IntPtr.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
6fd6649bb5
P/Invoked OS X frameworks instead of just libs when applicable.
10 years ago
Joao Matos
c5c4a538c4
Implemented CLI delegate marshaling of function pointer types.
10 years ago
Joao Matos
b53aaae81b
Fixes parsing of K&R-style C functions with no prototypes.
...
Fixes issue #641 .
10 years ago
Joao Matos
93f5161710
Fixed handling of different language versions in the C++ parser.
...
Fixes issue #641 .
10 years ago
Dimitar Dobrev
c502c6ed2b
Fixed a crash when wrapping Qt on OS X.
10 years ago
Dimitar Dobrev
529b21775b
Added an explicit C++ destructor to avoid a crash on OS X.
10 years ago
Dimitar Dobrev
99902c5580
Disabled a type of false errors when auto-compiling on OS X.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
6821e983a6
Checked if a library exists before trying to parse it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
2ef14d0fcf
Introduced consistent usage of '&' - it is now always stuck to the type.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
ae8d3feb53
Added reading of exported mach-o (OS X) symbols.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
cf479f4409
Wrapped more information about comments for better generation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
11fc1f5097
Checked whether block comments actually have paragraphs.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
0e344b4b8a
Tested generation of C# comments at run-time.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
6e23f910a9
Added support for "param" elements in code comments in the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
1f105e53a8
Added support for "return" elements in code comments in the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
e57ad1d3e9
Exposed in our AST the real comment behind a block comment.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
0dea8504ba
Regenerated the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
1d3e821093
Fixed #453 - incorrect comment generation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
38f1707474
Fixed #638 - incompilable generated C# code when a function takes a protected enum.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
fc84e6bf1e
Added reading of dependencies of Mach-O (OS X) binaries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
ce62f5c4cc
Fixed Windows SDK selection when we cannot find VS reported version.
...
Fixes issue #636 , thanks to @dowitdo for the debugging and fix.
10 years ago
Abhinav Tripathi
9a7927613e
Fix generation of functions with union params
10 years ago
João Matos
4d89bfa001
Fixed code generation for constant arrays of function pointers.
...
Fixes https://github.com/mono/CppSharp/issues/632 and SDL sample.
10 years ago
João Matos
021189b49c
Extract ""global::System.IntPtr"" into a constant for re-use in the marshaller.
10 years ago
João Matos
1d2a572836
Extracted array type ignore code from CheckIgnoredDecls to TypeIgnoreChecker.
10 years ago
João Matos
9c7b666dbc
Fixed parsing of incline command arguments and HTML start tag comment attributes under non-Windows platforms.
10 years ago
Joao Matos
2ed0565d18
Optimized ArgumentNullException exception message.
...
Should lead to less code size bloat due to unnecessarily unique strings.
10 years ago
Joao Matos
3dc915961c
Optimized GetPropertyName for the common case.
10 years ago
Joao Matos
62d5f00c77
Fixed code generation of subscript operator for types with non-default parameter usage.
10 years ago
Joao Matos
3c70bce12e
Fixed generation of global functions with C# keyword name.
10 years ago
Joao Matos
f8bd69790e
Fixed marshaling of typedef'd const char strings.
10 years ago
Joao Matos
d4e34e44bd
Fixed parsing of block command comment arguments under non-Windows platforms.
10 years ago
Joao Matos
9133c389ca
Fixed a crasher in delegates pass when processing libraries with no declarations.
...
This is admittedly a pretty unusual case but still a valid one.
Also adds a new test to make sure we do not regress.
10 years ago
Dimitar Dobrev
192fede3f7
Connected the functions in the AST to the template functions they instantiate, if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
a052a494c9
Regenerated the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
a2fd71cc74
Enabled getting of template specialisations when type locations are invalid.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
6cb764700a
Replaced the Internal* in native ctors with void* because of templates with dependent fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
4d735b5601
Ensured symbols for templates instantiating pointers or references.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Joao Matos
24e53f4f79
Fixed expression parsing of dependent type default unary expressions.
...
Fixes issue #618 .
10 years ago
Joao Matos
e95012441c
Fixed Windows UCRT toolchain code to not combine absolute paths.
...
Previously the partial UCRT path obtained from `ucrtPaths` would always start with `\`.
Combined with the behavior of Path.Combine(p1,p2) to always return p2 when it is absolute, we'd always end up with an incomplete partial path.
10 years ago
Dimitar Dobrev
9ab71aeac7
Fixed the parsing of subclasses of dynamic template instantiations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
26864a6cc5
Regenerated the C++/CLI parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
1223e41e3a
Ensured the collected Windows SDK include dirs exist.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
João Matos
bbe7c1cb72
Added an hardcoded path to the GCC builtin headers for Travis Linux build.
10 years ago
grbd
947aac986c
Added the ability to search the machine Path or a specified path for the library file as part of ResolveSymbol
10 years ago
Joao Matos
df3f26d0aa
Improved null handling when marshaling CLI strings.
10 years ago