triton
75eb1457eb
Added vector clearing overloads to the parser options.
12 years ago
Dimitar Dobrev
b25e622ff7
Set the original function of each overload generated because of default values of arguments.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ef4be0b959
Fixed the generation of code in a single file.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 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.
12 years ago
triton
411dd8f8ca
Added missing include caught by the build bot.
12 years ago
triton
5df897bb8e
Updated to the latest LLVM and Clang revisions.
12 years ago
Dimitar Dobrev
f244b0e3b4
Fixed a crash while copying comments to properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
0499556bfe
Added support for default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
21cf90411a
Fixed a few warning caused by classes forwarded as structs.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
1802470013
Kill the old parser (good riddance :).
12 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>
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
Dimitar Dobrev
b1afea2251
Sealed private overrides.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
cbf4afae1f
Prepended 'get' and 'on' to methods and events respectively when there's a conflict with a newly generated property.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
36bdfb6c07
Simplified the getting of a function type now that the more complex (native) type is no longer used for abstract impls.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/AST/Method.cs
12 years ago
Dimitar Dobrev
ca2b3a312e
Moved IsSynthetized from Method to Function.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/AST/Method.cs
12 years ago
Dimitar Dobrev
8438f112e5
Fixed some bugs caused by conflicts.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
4857c8fee3
Improved the pass for generating properties.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/Generator/Passes/GetterSetterToPropertyAdvancedPass.cs
12 years ago
Dimitar Dobrev
840ce34552
Added an option to generate a single source file per extension.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Conflicts:
src/Generator/Driver.cs
src/Generator/Options.cs
12 years ago
triton
5a27285f65
Fixed CLI marshaling of in/out parameters under some cases.
...
Closes pull #269 .
12 years ago
Dimitar Dobrev
f77d394eb1
Generated methods and variables of base classes of value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 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.
12 years ago
triton
dc38efcd5b
Removed unused namespace.
12 years ago
triton
8ace8354b5
Re-generated the OSX parser bindings.
12 years ago
triton
e4873e20cc
Fixed anonymous declaration parsing.
12 years ago
Dimitar Dobrev
e4b860c053
Fixed wrong code generated for indexers in value types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
f88c20aa94
Some refactoring in preparation for the default values of parameters.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
Dimitar Dobrev
ea0f6e8c56
Ignored all pointers to members because they are not currently (if ever) supported.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
70dfd42e07
Added support for C records to the parser.
12 years ago
triton
7f927db6c8
Renamed ASTContext parameters.
12 years ago
triton
ca6884c19c
Fixed the AST converter for the new macro location name.
12 years ago
triton
f95d013651
Re-generated the parser bindings.
12 years ago
triton
c67e6a5ffb
Fixed naming conflict in Location field in the AST.
12 years ago
Tom Spilman
ba4eedd131
Fixed CLI to support out/inout Enums.
12 years ago
Tom Spilman
ab4440fb14
Fixed in/out for CLI.
12 years ago
Tom Spilman
47e7e68c12
Fixed IsInOut primitives to correctly pass the input value to the native code.
12 years ago
Tom Spilman
f60d267168
This fixes out or in/out enum parameters to generate correctly.
12 years ago
Tom Spilman
209aeafe76
Fixed InOut parameter bug where there was no space between the ref and the type.
12 years ago
triton
fd1dc49745
Fixed the build.
12 years ago
triton
43dc88b5de
Added support for representing and parsing source locations.
12 years ago
triton
27fa2ca03d
Renamed Location to MacroLocation in PreprocessedEntity.
...
We'll use the name Location to represent source locations in declarations.
12 years ago
triton
57bae49b4b
Explicitly qualify clang types in the parser.
12 years ago
triton
ed634a76fc
Re-generated the OSX parser bindings.
12 years ago
triton
e53870021d
Fixed type printer changes to work with old parser.
12 years ago
Tomi Valkeinen
3cbf465a49
Update CppParser bindings
...
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
12 years ago
Tomi Valkeinen
018a7b294c
CSharpTypePrinter: use type width to convert C++ types to C# types
...
We need to convert C++ integer types to C# types using the TargetInfo, as the
type bitwidths depend on the target architecture.
This fixes the main 64bit issue, which is that on 64bit Linux the current code
converts C++'s long to System.Int32, instead of System.Int64.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
12 years ago
Tomi Valkeinen
4818d3974d
Pass Driver to CSharpTypePrinter
...
We need Driver.TargeInfo in CSharpTypePrinter so that we can find out the
widths of the integer types.
This patch changes CSharpTypePrinter to get the Driver reference in its
constructor. As all the other constructor parameters can be found from the
Driver reference, we can remove all the other parameters.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
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
Tomi Valkeinen
c702e928e8
Rename PrimitiveType Int64 and UInt64 to LongLong and ULongLong
...
As enum PrimitiveType is supposed to represent C++ types, having Int64
and UInt64 there is not correct.
This patch renames those values to LongLong and ULongLong.
This doesn't change the behavior, but makes it clearer that the types
for 'long long' and 'unsigned long long' are not necessarily 64 bits.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
12 years ago
Tomi Valkeinen
065570de74
Rename PrimitiveType Int16 and UInt16 to Short and UShort
...
As enum PrimitiveType is supposed to represent C++ types, having Int16
and UInt16 there is not correct.
This patch renames those values to Short and UShort.
This doesn't change the behavior, but makes it clearer that the types
for 'short' and 'unsigned short' are not necessarily 16 bits.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
12 years ago