triton
ac7176f1b7
Added parsing and AST support for C++ friend declarations.
11 years ago
Dimitar Dobrev
c7253b456b
Fixed the assigment of structs with private fields.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Joao Matos
7f56db754d
Improved parser generation driver to work better under OSX and non-Windows platforms.
11 years ago
Joao Matos
93cdad40e0
Added bit field support to the AST.
11 years ago
Dimitar Dobrev
6d7c1de491
Fixed a bug in the Equals generation for CLI and regenerated the bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
257165d368
Generated up-to-date parser bindings for non-Windows platforms.
11 years ago
Pyry Kontio
99f643d13f
Test that demonstrate the "new 0" and show some other erroneus behaviour too.
...
Implemented CastExpression. ImplicitCast and ExplicitCast statement classes.
Fixed implicit constructor string generation.
Implemented CtorExpr.
All test cases pass.
Fixed indentations, streamlined the code.
Fixed regressions.
Fixed regressions.
Adding a test case not covered before.
Fixed, refactored and simplified things.
Still more fixes (0 to null ptr conversion, enum check). The additional test passes now too.
11 years ago
Dimitar Dobrev
bc140e13be
Changed the native ctors by value to also be wrapped by static methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
2600493dd6
Generated static methods for creating instance by an IntPtr in the C++/CLI branch.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
17a8fc732f
Removed redundant "new" key-words in generated C# code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
b8d4999e98
Fixed code generation for structors with HasThisReturn set to true.
11 years ago
triton
3ab4d570a3
Removes the remaining SetClassAsValueType from ParserGen.
...
Fixes diagnostics not showing up. These cannot be value types else diagnostics won't be copied in CLI copy constructors.
11 years ago
triton
740a284323
Added support for iOS and iOS 64-bits ABIs.
11 years ago
triton
169a3fa610
Added support for keeping ABI-specific function 'this' return information.
11 years ago
triton
cd85f8b6a5
Improved GetSourceDirectory to be a little more robust.
11 years ago
Dimitar Dobrev
0ee5b23728
Restored ParserOptions as a ref type because it is inherited.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
c61cfa43a9
Exposed the architecture of native libraries.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
643776b70e
Enabled the addition of undefines in the options.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
7a68a1c9c0
Fixed a crash when parsing va_list in a GCC 64-bit environment.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
0e8a6e368c
Moved the code for creating a ref object by value from the marshalling printer to a valid ctor by value.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
3b8873022b
Handled built-in binary operators in default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
88a88599e7
Fixed the wrapping of bit masks in default arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs
11 years ago
Dimitar Dobrev
af101c5f60
Fixed a bug when converting name-spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
29e2c58811
Added reading of dependencies of DLL-s.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
548f0feb55
Added an option for the language version.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Tomi Valkeinen
a67595ea3f
build: use linux bindings
...
Use CppParser C# bindings for linux when compiling on Linux.
Note: this always uses 64 bit version for now.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
f7810b47d8
CppParser: add generated linux bindings
...
Add C# Bindings for CppParser for 64 bit Linux.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
6b0612d5a1
ParserGen: Linux binding generation
...
Add code to generate Linux bindings.
This is experimental for now.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
ccb4c9244f
Regenerate windows bindings
...
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
f32feb1d98
Fix windows bindings path
...
The path for generated windows bindings has changed to i686-pc-win32-msvc, but
the existing files and the build system has not been changed.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
triton
75eb1457eb
Added vector clearing overloads to the parser options.
11 years ago
triton
7fb53dc3b0
Fixed the parser generator to track Clang r204978.
...
Clang now models different Windows environments in the triple and we need to explicitly request the "MSVC" environment to get proper behavior when parsing MSVC headers.
11 years ago
Dimitar Dobrev
0499556bfe
Added support for default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
1802470013
Kill the old parser (good riddance :).
11 years ago
Dimitar Dobrev
5523a83b29
Converted all "complex" (for example participating in class hierarchies) data type to classes.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
fede2d4c23
Reworked the parser generation driver.
...
Now the path to the headers is not hardcoded and the driver will check if its safe to generate the OSX bindings.
11 years ago
triton
8ace8354b5
Re-generated the OSX parser bindings.
11 years ago
Dimitar Dobrev
f88c20aa94
Some refactoring in preparation for the default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
triton
7f927db6c8
Renamed ASTContext parameters.
11 years ago
triton
f95d013651
Re-generated the parser bindings.
11 years ago
triton
fd1dc49745
Fixed the build.
11 years ago
triton
43dc88b5de
Added support for representing and parsing source locations.
11 years ago
triton
ed634a76fc
Re-generated the OSX parser bindings.
11 years ago
Tomi Valkeinen
3cbf465a49
Update CppParser bindings
...
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
1cd9f0a16c
Remove PrimitiveTypes Int8 and UInt8
...
As enum PrimitiveType is supposed to represent C++ types, having Int8
and UInt8 there is not correct.
This patch removes those values. As Int8 and UInt8 were set to be
equivalent to Char and UChar, we can just change all references to Int8
and UInt8 to Char and UChar.
This doesn't change the behavior, but makes it clearer that the types
for 'char' and 'unsigned char' are not necessarily 8 bits.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
3902dd4acc
Add PrimitiveTypes Long and ULong
...
The enum PrimitiveType represents, according to the comment, "the C++
built-in types.". However, it does not contain values for C++'s "long"
or "unsigned long", and the parser converts long to int. This is not
correct, and is a problem with 64bit support.
This patch adds Long and ULong values to PrimitiveType, and adds those
to all the switch-cases all around the code. For now Long and ULong are
handled exactly like Int and UInt, so this patch does not change
behavior.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
triton
279d65147b
Updated the OSX parser bindings.
11 years ago
Tomi Valkeinen
043e54d3da
Update windows bindings
11 years ago
triton
f49aa2f3ef
Fixed InjectedClassNameType layout in the AST.
...
* Template specialization member is now a pointer so null value works properly
11 years ago
Tomi Valkeinen
1053aa79d1
ParserGen: print what is being generated
...
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago