Frederich Munch
5229194db4
Fix writing to freed memory if Interpreter::executeTransaction fails.
2017-03-23 15:14:04 +01:00
Frederich Munch
120ca522b0
Fix possible crash on CodeGen failure.
2017-03-23 15:14:04 +01:00
Frederich Munch
3eb05a2c20
Use #ifdefs for MANGLE_PREFIX.
2017-03-23 14:44:06 +01:00
Axel Naumann
7c1fbfcf9f
Require ">" after ".5" to accept it as redirection (ROOT-8696).
2017-03-22 21:14:29 +01:00
Axel Naumann
c901b585a1
Do not load libraries in syntax-only mode (e.g. rootcling).
2017-03-22 11:20:50 +01:00
Raphael Isemann
449c26d5f4
Fixed that we corrupt CLING_CXX_PATH
...
This will fix the issue that cling will try to invoke "OFF " to find headers.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-03-10 16:14:04 +01:00
Frederich Munch
29325e2987
Windows: Exception handling.
2017-03-08 17:29:08 +01:00
Frederich Munch
dee36dbaf8
Windows: Enable RTTI when cling was compiled with it on.
2017-03-08 17:29:08 +01:00
Frederich Munch
bd98283b8c
Don't make a path absolute, just check if it is.
2017-03-08 17:29:08 +01:00
Frederich Munch
eb32d6eae4
Add Interpreter::loadLibrary and Interpreter::loadHeader.
...
Refactor Interpreter::loadFile to call into these methods.
2017-03-08 17:29:08 +01:00
Frederich Munch
4b4fe0ec9e
Formatting.
2017-03-08 17:29:08 +01:00
Raphael Isemann
5f6bbb88e1
Fix ROOT nighly builds failing to configure with CMake
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-03-06 16:44:48 +01:00
Bertrand Bellenot
09369c4fd6
Remove the Windows ELF formatting from IncrementalExecutor, since it is now in CIFactory
2017-03-02 11:59:59 +01:00
Philippe Canal
92f970b519
Remove unnecessary overallocation in Azog::reserveAllocationSpace
...
Thanks to Roman mentioning: "My reading of the code that computes size and calls reserveAllocationSpace has already factored in the worst case scenarios due to alignment."
2017-03-01 22:33:09 +01:00
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
Frederich Munch
df47b1259a
Formatting.
2017-02-21 16:34:19 +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
5c66b41851
Fix EscapeSequence::encode returning a StringRef pointing to stack memory.
2017-02-17 15:14:06 +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
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
Frederich Munch
1a0287a4dc
Add Transaction::getSourceLocation method.
2017-02-09 16:59:38 +01:00
Frederich Munch
eb40609ab2
Add -noruntime flag to force cling not load or use support for value-printing or null dereferencing. This makes it tons easier to debug DeclUnload and discover what isn't being unloaded.
2017-02-09 16:45:11 +01:00
Frederich Munch
630abbf855
Windows: Fix preprocessor output test.
2017-02-09 16:45:10 +01:00
Frederich Munch
49aacfc5e6
Revert "Must flush stdout, else a "lazy" stdout will not flush before prompt."
...
This reverts commit bd6cbaf3b69f1bf52055c4d7071d9174b97c7a9d.
2017-02-08 15:37:40 +01:00
Frederich Munch
6054022ca3
Fix stdout being reopened without line buffering if redirection occurs before output has been written.
2017-02-08 15:29:11 +01:00
Frederich Munch
d00a335350
Force __cxa_demangle to null terminate its output.
2017-02-08 12:29:14 +01:00
Frederich Munch
c86fa34e94
Fix unused variable warning.
2017-02-07 16:59:09 +01:00
Frederich Munch
a91b83632e
Use std::find_if when searching m_StoredStates.
2017-02-07 16:59:09 +01:00