Joao Matos
eab2620c18
Update LLVM to the latest version.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
Signed-off-by: Joao Matos <joao@tritao.eu>
6 years ago
Joao Matos
ac7bdb2585
Refactor Clang builtins directory logic and move it to the managed side.
...
This now matches systems Clang includes order on macOS which fixes a bug.
Signed-off-by: Joao Matos <joao@tritao.eu>
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
7df1623e6d
Cleanup Clang resource directory lookup logic.
...
Now the logic is more standard across platforms, we always re-use the builtin bundled headers.
Fixes https://github.com/mono/CppSharp/issues/1259 .
6 years ago
Dimitar Dobrev
8fca42afe5
Enable Clang-based look-up for system includes by default
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
c6afb4d1a0
Cleaned up code formatting in ParserOptions.SetupLinux().
6 years ago
Joao Matos
ea7023dfad
Remove ParserOptions.Abi since its misleading as it serves no purpose.
6 years ago
Joao Matos
9a23f51d91
Fixed missing options copy in ParserOptions copy constructor.
7 years ago
Joao Matos
e9005f6eb2
Implemented Clang's MSVC toolchain lookup mode with `ForceClangToolchainLookup`.
7 years ago
Joao Matos
794b276cfb
Added `ForceClangToolchainLookup` option to force to use Clang's toolchain lookup code.
7 years ago
Joao Matos
bd4dec1586
Extract `ParserOptions` cloning code into a copy constructor.
7 years ago
Rokas Kupstys
c41a2dd2af
Add one more include path which linux usually expects.
8 years ago
Dimitar Dobrev
fceb204a98
Fixed the generated C# for members of types nested in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
573818f33e
Fixed a regression, a crash, when generating the parser bindings.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Rokas Kupstys
b90fb52525
Re-added linux include path that was removed by mistake.
8 years ago
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
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
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
Joao Matos
27efa2ec87
Fixed unreachable code warning.
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
realvictorprm
8f8031584c
Added complete support for VS 2017
8 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
Dimitar Dobrev
749c2b17ec
Renamed ParserOptions to CppParserOptions and ParserOptions2 to ParserOptions.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
19fb6ca7d6
Fold toolchain parser setup to parser options.
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