Rokas Kupstys
aa33609d45
Clean up linux includes setup.
...
Includes setup was moved to ParserOptions.cs and is used just like `SetupMSVC()` and `SetupXcode()`. Native compiler is queried for it's type and version. Correct include paths are set up in cases where system has multiple compilers installed as well.
8 years ago
Rokas Kupstys
05445f3028
Linux fixes, Bootstrap.cs build errors, warnings ( #1010 )
...
* Fix warnings about unused variables
* Fix linux include paths in ParserGen and CLI generator.
Remove parsing of `CppSharp.CppParser.lib` as it is not used.
* Fix build errors in CppSharp.Parser.Bootstrap target.
8 years ago
Mohit Mohta
3699574983
Removed the macros in C++ AST for std::string because we can marshal it ( #866 )
8 years ago
Dimitar Dobrev
dbfd93d941
Fixed the comment kind of the parser generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
8646d3e077
Obsoleted the direct settings for wrapped libraries in the options.
...
Modules should be used instead.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
fe0ee21392
Remove and sort usings.
9 years ago
Joao Matos
04ee2e5b7d
Rename CodeGenerator.Templates to Outputs.
9 years ago
Dimitar Dobrev
2531d631c6
Ensured template arguments of specialised functions are read.
9 years ago
Dimitar Dobrev
cef847825a
Exposed constant expressions, friendships and exception specifications of functions in our AST.
9 years ago
Dimitar Dobrev
ef69bf1b95
Made the case-renaming pass non-optional for Mono/.NET generators.
9 years ago
Dimitar Dobrev
fc1d75363a
Regenerated the parser bindings after making internals internal.
9 years ago
Joao Matos
1371f89957
Convert CheckMacroPass to be a default pass.
9 years ago
Dimitar Dobrev
b2a872f431
Merged the passes for properties and made the result non-optional.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
a77bc2a91f
Separate parser options from driver options.
...
This will break API compatibility, you will have to update your options setup code.
9 years ago
Joao Matos
b0c539197e
Extract ParserGen build project to its own file.
9 years ago
Dimitar Dobrev
d419cb7156
Added all system fields to the internal layouts used in the C# generator.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
4b1309f5be
Added support for C++14 variable templates and specializations.
9 years ago
Dimitar Dobrev
95b592cab6
Regenerated the C# parser bindings to a single file per target.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
9b51e30643
Fixed the option for output name-spaces to allow eliminating them.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
3a43cf3349
Added support for x86_64 Linux GNU C++11 ABI parser bindings.
...
Partial fix for issue #655 .
9 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>
9 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>
9 years ago
Dimitar Dobrev
7c2a6f8280
Added generation of 64-bit MSVC C# bindings for the parser.
...
They are not used at the moment but might be employed in an AppVeyor 64-bit build.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
ef66b38525
Removed a redundant parameter from CppTypePrinter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
48fece6aa1
Revert "Threw an exception when there are parsing errors, and handled it in the test clients."
...
This reverts commit 01e872b30d
.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
01e872b30d
Threw an exception when there are parsing errors, and handled it in the test clients.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
Dimitar Dobrev
b9e3efbf0c
Removed the option for copy ctors and prevented usage of ignored ones.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
10 years ago
triton
ab0aace7b8
Fixed GetSourceDirectory in the parser generator to start from the current working directory.
10 years ago
triton
27e537c59b
Extract platform detection logic into its own file.
10 years ago
João Matos
ee8d1b5367
Enable copy constructor generation on parser bindings.
10 years ago
João Matos
54c772b6ac
Use the same path to Linux parser generation headers as on OSX.
10 years ago
triton
087b21e7d4
Added 64-bits OSX support to the parser bindings generator.
10 years ago
Joao Matos
7f56db754d
Improved parser generation driver to work better under OSX and non-Windows platforms.
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
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
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
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
triton
1802470013
Kill the old parser (good riddance :).
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
7f927db6c8
Renamed ASTContext parameters.
11 years ago
triton
43dc88b5de
Added support for representing and parsing source locations.
11 years ago
Tomi Valkeinen
1053aa79d1
ParserGen: print what is being generated
...
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
6d09688241
ParserGen: fix compilation warning
...
Fix the following warning:
ParserGen.cs(208,26): warning CS0618: `CppSharp.AST.Declaration.Ignore' is obsolete: `Replace set by ExplicitlyIgnore(). Replace get by GenerationKind == GenerationKind.None.'
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
triton
baa08c8e8c
Re-generated the parser bindings with IsExplicit.
11 years ago
marcos henrich
7125109e3f
Deprecated ExplicityIgnored use ExplicitlyIgnore(). Getting ExplicityIgnored and setting ExplicityIgnored to false don't make much sense anymore.
...
Conflicts:
src/Generator/Passes/CheckOperatorsOverloads.cs
11 years ago
marcos henrich
3f96bdbfe3
Replaced declaration IgnoreFlags by GenerationKind. Added methods IsInternal and IsDeclared to declaration. Replaced IsGenerated = true by GeneratioKind = GeneratioKind.Internal. Deprecated Ignore, replace Ignore set by ExplicityIgnored, replace Ignore get by IsGenerated, IsInternal or IsDeclared.
...
Conflicts:
src/Generator/Passes/CheckOperatorsOverloads.cs
11 years ago
triton
f53e8794dd
Fixed the parser generator to also ignore any functions with std parameters.
11 years ago
triton
b93cca9780
Updated the parser generator driver with support for different triples (and Darwin/OSX support).
12 years ago
Joao Matos
69dcac2903
Ignore some unused methods in the parser bindings.
12 years ago