Joao Matos
7f75246215
Added support for C++11 type alias template declarations.
...
Partial fix for https://github.com/mono/CppSharp/issues/664 .
10 years ago
Dimitar Dobrev
cdc51afc0e
Extended the parser and AST to handle template template parameters.
...
For more details see the Clang documentation ( http://clang.llvm.org/doxygen/classclang_1_1TemplateTemplateParmDecl.html ).
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
69bd424c75
Temporarily suspended the completion of types because it causes problems while not useful yet.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
b41dc261ed
Added support for directly wrapping entire sets of interdependent libraries.
...
It's realised by using modules. Users now have to define one module for each library they want wrapped while setting the driver up.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
e289dd47bf
Extended the class for modules with include and library dirs, and defines.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
0d5c4539a2
Generated internals of types nested in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
2403d7d3a3
Replaced the useless internals of templates with the internals of their specialisations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
e4200f4690
Fixed the wrapping of template parameters in the parser.
...
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
fc84e6bf1e
Added reading of dependencies of Mach-O (OS X) binaries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
a2fd71cc74
Enabled getting of template specialisations when type locations are invalid.
...
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
Abhinav Tripathi
d753c8d637
Moved property IsImplicit to Declaration from Method.
10 years ago
Dimitar Dobrev
1471e6f2fb
Simplified and tested the reading of line numbers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
575649b5da
Fixed a memory leak in the code generators.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
triton
7624635fa3
Added test for C11's atomic type support added in 54267b88a4.
10 years ago
João Matos
464476b200
Clean up previous fix by using Environment.Is64BitProcess instead of invoking Mono --version.
...
Thanks to Dimitar for the idea.
11 years ago
João Matos
5ff8efa085
Fixed some tests under OS X by auto detecting the Mono bitness.
11 years ago
João Matos
f23cd53010
Disable this workaround for now as it's not working as intended.
...
Will fix this in another way later.
11 years ago
João Matos
f799e0fb82
Rewrite Clang resource directory lookup logic in test driver.
...
Due to this code we ended up multiple Clang resource directories in the path which is a problem because Clang's stdint.h uses an include_next<> logic and it was getting messed up with the multiple headers in the lookup path.
11 years ago
Dimitar Dobrev
bbcf12550f
Prevented a crash in the tests on Mono because of a Mono bug.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
f6b25203a0
Revert "Enable verbose mode in tests driver for Travis troubleshooting."
...
This reverts commit 05236a89af .
11 years ago
triton
05236a89af
Enable verbose mode in tests driver for Travis troubleshooting.
11 years ago
Dimitar Dobrev
ce597a399c
Fixed the build on VS 2015.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
49ba3146a5
Extracted Mono detection logic to Platform.
11 years ago
triton
27e537c59b
Extract platform detection logic into its own file.
11 years ago
triton
a9101ece64
Rename the diagnostic emit overloads so they're more uniform.
11 years ago
João Matos
e484f6f7e7
Fixed the OS X tests build to use the Xcode toolchain lookup support.
11 years ago
Abhinav Tripathi
c7c74e306b
Added CS_INTERNAL macro definition and test.
11 years ago
Dimitar Dobrev
a293984424
Fixed the signatures of const functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
1cb4b22788
Fixed the pass for ambiguity to correctly mark ambiguous functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
f0d237d9c2
Added a new property for the line number of the end of a declaration.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
993cb82bb7
Revert "Fixed parsing of function signatures with const-qualified return types."
...
This reverts commit 7d5e53e1df .
Conflicts:
tests/Native/AST.h
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
99c124eb53
Fixed the location of a friendly declaration.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
7d5e53e1df
Fixed parsing of function signatures with const-qualified return types.
11 years ago
Dimitar Dobrev
8505f82ff0
Fixed signatures to include the 'const', if any.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Stephan Sundermann
a125b055b0
Add missing reference
...
For some reason premake didn't rebuild when I changed this and no compile error was thrown.
11 years ago
Stephan Sundermann
9b3313d424
Use libc++ on osx
11 years ago
Andrius Bentkus
5102fb55d7
Remove not used variable.
11 years ago
Dimitar Dobrev
3b4fce6f33
Added a property for the line at which a declaration is located in its header.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
ac7176f1b7
Added parsing and AST support for C++ friend declarations.
11 years ago
Joao Matos
c44985a2a4
Improved test driver to add Clang's built in header path to the system lookup paths.
11 years ago
Dimitar Dobrev
4385ecac76
Fixed the finding of classes to also check name-spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
798e086ef9
Added reading of dependencies of ELF libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
a62ea33d64
Split building source file parse options from parsing code.
12 years ago
triton
1802470013
Kill the old parser (good riddance :).
12 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
12 years ago
triton
7f927db6c8
Renamed ASTContext parameters.
12 years ago
Tomi Valkeinen
7289a06b9e
Rename PrimitiveType Int32 and UInt32 to Int and UInt
...
As enum PrimitiveType is supposed to represent C++ types, having Int32
and UInt32 there is not correct.
This patch renames those values to Int and UInt.
This doesn't change the behavior, but makes it clearer that the types
for 'int' and 'unsigned int' are not necessarily 32 bits.
12 years ago