Rokas Kupstys
86f2c59ec5
Tweak linux include dirs, previous change broke GCC7 include dirs on archlinux.
8 years ago
Rokas Kupstys
7a3adcd401
Some linux distributions use `major.minor.patch` and some use `major.minor` for versioning include dirs. Add them all.
8 years ago
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
Dimitar Dobrev
e53b25346e
Prevented C++ generation for invalid specialised functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
33bc64ad9a
Reused the parsing of headers to get the target info as well.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
5e17200af8
Moved the method for building parser options specific to a file.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
4c884e6c20
Ensured no overflown stack in the AST converter.
...
Switched the conversion of name-spaces and classes to breadth-first.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
f992cd8280
Removed the out parameter when looking for a version of Visual Studio.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Victor Peter Rouven Müller
9edd7819c2
Add C++17 to the parser options
...
Just to complete the list @tritao 😄
8 years ago
Joao Matos
e1200bc577
[parser] Refactor the parser layer.
...
Removes some useless abstractions and unused code.
Signed-off-by: Joao Matos <joao@tritao.eu>
8 years ago
Dimitar Dobrev
5aaa0a0351
Fixed a crash when trying to use a VS version missing from the system.
...
Fixes https://github.com/mono/CppSharp/issues/922 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
9c26b7e648
Fixed the setting of name-spaces of parameters to actually work.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
142b3be9f1
Added a default build config file and an option to disable config generation.
8 years ago
Dimitar Dobrev
9294ea0978
Ignored defaulted functions when generating C++ for symbols.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
27efa2ec87
Fixed unreachable code warning.
8 years ago
Joao Matos
661609176a
Rewrite build config file generation in Premake.
...
The previous version used io.output which is not needed and also badly interacts with Premake internals.
8 years ago
Dimitar Dobrev
e2e4109631
Added to a method a list of its overridden methods.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Kimon Topouzidis
3760d4d550
Made Function a DeclarationContext to match the Clang AST. ( #896 )
8 years ago
Mohit Mohta
3e8b15c42c
Made the C/C++ language switches adjustable in managed code. ( #895 )
8 years ago
Mohit Mohta
fa0d129000
Moved the definition of SetupArguments before SetupIncludes ( #894 )
8 years ago
Mohit Mohta
5227e517fc
Added an option to enable or disable RTTI ( #892 )
...
Fixes #819
8 years ago
Dimitar Dobrev
617e7c78d8
Restored the overload of SetupMSVC with a parameter.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Mohit Mohta
65d6c49e1b
Making the code run properly from a different working directory ( #891 )
8 years ago
Mohit Mohta
416c67215c
Added passage of VS Version selected at config time to the build ( #886 )
...
Fixes #815
Fixes #814
8 years ago
Kimon Topouzidis
1298634804
Extended declarations to store their packing. ( #871 )
8 years ago
Dimitar Dobrev
422b98a0fd
Enabled the tests for std::string.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
9dbcc3cc2c
Completed the support for dependent type names.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
974f8fab20
Replaced the useless desugared dependent name type with its qualifier.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
realvictorprm
10c86a2a10
Fixed the generated C# when an incomplete class is forwarded more than once.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
realvictorprm
9d89764965
Wrapped injected classes in order to ease binding lists of redeclarations.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
realvictorprm
938ccf686b
Incomplete classes and structs are now generated for C#. ( #797 )
...
This feature is NOT coming for C++/CLI !
8 years ago
realvictorprm
8f8031584c
Added complete support for VS 2017
8 years ago
Dimitar Dobrev
d293a7f49f
Regenerated the parser bindings with the renaming of enum items.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
fed72f5910
Ensured the C# gen correctly imports a native library with no target triple.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
b1621d660c
Add the enum as the enum item namespace when converting the parser AST.
9 years ago
Joao Matos
3bfb24228b
Remove "Ordinary" prefix from BCPL and C comment kinds.
9 years ago
Joao Matos
9a4c0bae82
Renamed RawCommentKind to CommentKind.
9 years ago
Joao Matos
dad52a2d5b
Clean up display paths of generated build project files.
...
Fixes issue #639 . https://github.com/mono/CppSharp/issues/639
9 years ago
Dimitar Dobrev
b8f54de73e
Parsed function bodies.
9 years ago
Dimitar Dobrev
329d350f9d
Added the specialisation info, if any, along with its arguments, to functions.
9 years ago
Dimitar Dobrev
8d322ad53e
Properly handled signed chars in the AST.
9 years ago
Dimitar Dobrev
cef847825a
Exposed constant expressions, friendships and exception specifications of functions in our AST.
9 years ago
Dimitar Dobrev
5af5b2093f
Extended the AST with the template parameters being substituted.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
1346957a66
Wrap some really long lines.
9 years ago
Joao Matos
54b586d0d0
Simplify CheckForDuplicates, decl is never a PreprocessedEntity.
9 years ago
Dimitar Dobrev
db942dc06c
Wrapped the reference qualifier of functions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
d349134180
Reworked parser bindings build scripts to be more easily re-usable.
9 years ago
Dimitar Dobrev
d2326a3883
Added processing of type aliases.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago