Bertrand Bellenot
ba0e49d295
Set ELF format for the clang driver on Windows
...
COFF format currently needs a few changes in LLVM to function properly
2017-03-01 17:29:11 +01:00
Bertrand Bellenot
536c10ce34
Use correct way of checking Debug build
...
The CMAKE_BUILD_TYPE CMake variable is only valid for single-configuration generator (like Linux Makefiles), and not for multi-configuration generator (like for Visual Studio). So let's try to use a CMake generator expression instead.
2017-02-22 10:34:07 +01:00
Sylvain Corlay
8bd13badc1
rename kernels
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-02-21 20:23:27 +01:00
Frederich Munch
af6d962f43
Add clang-format configuration.
2017-02-21 16:34:19 +01:00
Frederich Munch
df47b1259a
Formatting.
2017-02-21 16:34:19 +01:00
Frederich Munch
137efeef15
Windows: Remove string hack. One of the new exports seems to do the trick.
2017-02-21 16:34:19 +01:00
Frederich Munch
08d43f7ac0
CMake: Export global new and delete operators.
...
Note: There is still a problem with LLVM’s lookup of symbols and a change is needed
there for the full benefit.
2017-02-21 16:34:19 +01:00
Frederich Munch
00ffd4c420
CMake: Remove extraneous dependencies for CLING_TEST_DEPS.
2017-02-21 16:34:19 +01:00
Frederich Munch
2a41c186d8
Lit: Add IsWindows variable.
2017-02-21 16:34:19 +01:00
Frederich Munch
42971e42cd
Lit: Add %mkdir, %rm, and %rmdir substitutions.
2017-02-21 16:34:19 +01:00
Frederich Munch
fa5c74997b
Lit: Fixup Windows cling_obj_root path when built with CMake.
2017-02-21 16:34:19 +01:00
Frederich Munch
a939c253d8
Lit: Use LLCM/Clang way of testing ‘execute_external’. Fix-up Windows paths based on this.
2017-02-21 16:34:19 +01:00
Frederich Munch
9d2f1b4bde
CPT: Test installed version of CMake is less than 3.6.2 before downloading another.
2017-02-21 16:34:19 +01:00
Frederich Munch
e437621fd4
CPT: Use Appveyor’s clone for building. Try to use Appveyor’s caching for build directory.
2017-02-21 16:34:19 +01:00
Frederich Munch
e4c0b365f0
Appveyor: Don’t download/install make.
2017-02-21 16:34:19 +01:00
Frederich Munch
f4f588fffd
Travis: Get timeout icon to appear after timeout.
2017-02-21 16:34:19 +01:00
Axel Naumann
2785a7c105
Remove debug breakage.
2017-02-21 15:14:05 +01:00
Axel Naumann
9588c52a43
Make it actually fail.
2017-02-21 14:14:05 +01:00
Axel Naumann
1ea1ac2d44
Temporary breakage to debug cont integration.
2017-02-21 11:44:30 +01:00
Frederich Munch
097a4e3fbd
Only check DiagnosticsEngine::hasErrorOccurred, hasFatalErrorOccurred cannot be true without it.
2017-02-17 20:45:04 +01:00
Frederich Munch
de62978dad
Fix error from ParseTopLevelDecl not always being propagated to the current Transaction. Fix LangOpts.AccessControl not begin set in AccessCtrlRAII_t, a regression this exposed.
2017-02-17 20:45:03 +01:00
Frederich Munch
74ba44505a
Windows: Allow Windows.h to be included without warnings.
2017-02-17 15:14:06 +01:00
Frederich Munch
311a557be1
Windows: Interpret -nostdinc++ as -nostdinc which clang does not use on Windows backend. Fixes ABI and NoStdInc tests.
2017-02-17 15:14:06 +01:00
Frederich Munch
92f39fc75c
Windows: Don’t add INCLUDE paths clang will handle that as necessary.
2017-02-17 15:14:06 +01:00
Frederich Munch
15c1247a44
Windows: Fix byte dumping to non UTF-8 codepage and Strings.C test.
2017-02-17 15:14:06 +01:00
Frederich Munch
3bde3e4404
Windows: Trivial fix for initorder.C.
2017-02-17 15:14:06 +01:00
Frederich Munch
8d6377f3a7
Windows: Split up exports into groups and make it easier to understand what’s forced to be exported.
2017-02-17 15:14:06 +01:00
Frederich Munch
5c66b41851
Fix EscapeSequence::encode returning a StringRef pointing to stack memory.
2017-02-17 15:14:06 +01:00
Axel Naumann
e66b1ce62f
Fix doxygen.
2017-02-15 20:29:09 +01:00
Bertrand Bellenot
40f433e769
Export more symbols (decreasing the failing tests from 17 to 10)
2017-02-14 14:59:43 +01:00
Axel Naumann
40bc805952
Revert "Fix unloading of friend declarations."
...
This reverts commit 1cf955ae4504d8cdb6d87c70d4331806c9861255.
2017-02-10 08:44:05 +01:00
Axel Naumann
5bb7bcd372
Revert "Unlink FriendDecl from linked list in CXXRecordDecl."
...
This reverts commit a3f7f117f917e901701d48f03157ff580b67b779.
2017-02-10 08:44:05 +01:00
Axel Naumann
7bcbdf120b
Revert "Call VisitRedeclarable before VisitDeclContext to avoid any recursion that might occur."
...
This reverts commit 1d1d8fd511a4ec621a92628462142cb8d9356b70.
2017-02-10 08:44:05 +01:00
Axel Naumann
71187acfba
Revert "Fix unloading of using namespace declarations. Add test/CodeUnloading/UsingShadows.C"
...
This reverts commit f5287603e6502c07f76a7f5a599aa6faae005327.
2017-02-10 08:44:05 +01:00
Axel Naumann
86de616002
Revert "Fix unloading of types in a namespace declared as using. This fixes triggering an assert in clang caused by trying to remove a declaration too many times."
...
This reverts commit c1574e399ae2e46fd0400d49c45eb48875995775.
2017-02-10 08:44:05 +01:00
Axel Naumann
9f5820a693
Revert "Fix unloading declarations in std namespace that were declared in an inline namespace, but referenced in the std namespace itself. Cling would crash or complain about forward declarations not being the same later."
...
This reverts commit 200ac7c6e64923f42023cc7324cab6ea7ebd3616.
2017-02-10 08:44:05 +01:00
Axel Naumann
3addec52ea
Revert "Fix unloading from inline namespaces other than std."
...
This reverts commit 1e9984a65312b07f39760f6aec88b0b246fe3d94.
2017-02-10 08:44:05 +01:00
Frederich Munch
185b905525
Fix unloading from inline namespaces other than std.
2017-02-09 17:14:20 +01:00
Frederich Munch
87c97bab0d
Fix unloading declarations in std namespace that were declared in an inline namespace, but referenced in the std namespace itself. Cling would crash or complain about forward declarations not being the same later.
2017-02-09 17:14:20 +01:00
Frederich Munch
1cc55d32ea
Fix unloading of types in a namespace declared as using. This fixes triggering an assert in clang caused by trying to remove a declaration too many times.
2017-02-09 17:14:19 +01:00
Frederich Munch
14aaa3995e
Fix unloading of using namespace declarations. Add test/CodeUnloading/UsingShadows.C
2017-02-09 17:14:19 +01:00
Frederich Munch
8957d2b84e
Call VisitRedeclarable before VisitDeclContext to avoid any recursion that might occur.
...
This should have been included in the prior commit, but as it affects [ordering in] other DeclUnloader functions;
the ability to back it out separately is better.
Also exposes a bug/change necessary in clang when building in Debug mode to avoid an infinite loop.
2017-02-09 17:14:19 +01:00
Frederich Munch
7161f8660b
Unlink FriendDecl from linked list in CXXRecordDecl.
2017-02-09 17:14:19 +01:00
Frederich Munch
f87922659d
Fix unloading of friend declarations.
2017-02-09 17:14:19 +01:00
Frederich Munch
9f62199d73
Add ability to control cling output streams colorization. Default to colorize when running in a terminal.
2017-02-09 16:59:38 +01:00
Frederich Munch
013b139749
Travis: Try to get in the OS X queue faster so that CI isn’t always waiting for machines at the end.
2017-02-09 16:59:38 +01:00
Frederich Munch
a77d90911e
Refactor unique name generation and remove duplicate and unused methods.
2017-02-09 16:59:38 +01:00
Frederich Munch
b3834b1dcf
Add Interpreter::getDiagnostics method.
2017-02-09 16:59:38 +01:00
Frederich Munch
401bc7273e
Add argument to Interpreter::getSourceLocation to skip function wrapper.
...
This makes the source print at a better location for Value errors.
2017-02-09 16:59:38 +01:00
Frederich Munch
19ab07e86c
Add Interpreter::getSourceLocation method.
...
Accessor for the current or last executing line's SourceLocation to be used in error reporting.
2017-02-09 16:59:38 +01:00