Commit Graph

2886 Commits

Author SHA1 Message Date
Jan Christoph Uhde
a558c4cf02 Check for existing libclingJupyter, not whether it's executable. 2016-04-09 11:14:06 +02:00
Axel Naumann
434d039331 Add python2 compat as suggested by @hellpanderrr in Issue #1. 2016-04-09 10:59:14 +02:00
Axel Naumann
ac3d7022f0 Update required symbol cling_runtime_internal_throwIfInvalidPointer. 2016-04-09 10:44:32 +02:00
Axel Naumann
5c0001659b Bind Jupyter to MetaProcessor instead of Interpreter. 2016-04-08 16:59:08 +02:00
CristinaCristescu
1cb874532b Correct DiagnoseIfInterpreterException in iterpreter. 2016-04-08 15:44:11 +02:00
CristinaCristescu
0fb177cbf2 Do not check null deref for static data members calls. 2016-04-08 15:44:11 +02:00
CristinaCristescu
fc500ad68e Reduce I/O operations caused by the check of address validity. 2016-04-08 15:44:11 +02:00
CristinaCristescu
1bd499bb15 Fix bug - check only for function arguments of pointer types. 2016-04-08 15:44:11 +02:00
CristinaCristescu
0059a81ac3 In Visitor of PointerCheckInjector use Traverse not Visit. 2016-04-08 15:44:11 +02:00
CristinaCristescu
1472015449 Create function member of IncrementalParser for setting the transformers.
The transformers have to be set later in the initialization for 2 reasons:
- to avoid the null deref check before the check pointer function is declared
in the RuntimeUniverse;
- to avoid useless checks.
2016-04-08 15:44:11 +02:00
CristinaCristescu
31af5359b1 Use RecursiveASTVisitor instead of StmtVistor in NullDeref transformer.
The Stmt visitor does not allow for Decl visiting.
2016-04-08 15:44:11 +02:00
CristinaCristescu
89a06892df Constexpr cannot be checked for null derefrencing.
Constexpr are checked at compile time, and there is no need to check at run-time.
Thus we will not descend into visiting expresions which are constexpr.
2016-04-08 15:44:11 +02:00
CristinaCristescu
8cd5175dd7 Add the null derefrencing transformer to the AST transformers.
Checking all cases will be beneficial if it does not compromise
stability and performance.
2016-04-08 15:44:11 +02:00
Axel Naumann
9d13663e83 Fix warning unsigned/signed comparison. 2016-04-01 20:59:07 +02:00
Axel Naumann
438427127f Fix warning: unused return value of write() 2016-04-01 16:14:10 +02:00
Axel Naumann
ca24eff6a0 Remove dupe directory. 2016-04-01 16:14:10 +02:00
Axel Naumann
3354c15777 Update to current output, URL. 2016-04-01 10:44:15 +02:00
Axel Naumann
b6d55f06f7 Comment out demo of cling::Jupyter::pushOutput(). 2016-03-31 21:14:06 +02:00
Axel Naumann
5021042a26 Formatting. 2016-03-31 14:59:13 +02:00
Axel Naumann
6d3070de94 No exceptions in the (old) JIT of cling on powerpc64 either. 2016-03-31 10:29:07 +02:00
Axel Naumann
6d5b15306b XFAIL should be "arm64,aarch64", not "arm". 2016-03-31 09:44:06 +02:00
Axel Naumann
ac05121825 The (old) llvm JIT in cling does not support exceptions on either ARM64 not AARCH64. 2016-03-31 09:44:06 +02:00
Axel Naumann
f1d245da6a Clarify where the error comes from (cling!). 2016-03-30 12:44:14 +02:00
Axel Naumann
3c31044732 Do not rely on debug output. Fix code. 2016-03-30 12:44:14 +02:00
Vassil Vassilev
fce9772fd5 Fix cling build instructions. 2016-03-29 14:59:04 +02:00
Pere Mato
1c1db3c3c9 Changed to avoid wanings when using Xcode >= 7.3 2016-03-24 11:59:43 +01:00
CristinaCristescu
b9a2d80235 Diagnose Interpreter exceptions.
Enable the TInterpreter to diagnose InterpreterExceptions so that
they can be caught and diagnose from outside ROOT. For that
InterpreterException derives from std::exception.
2016-03-23 14:29:11 +01:00
Paul Seyfert
8fe8f2f4ad disable grep colors, fixes ROOT-8056 2016-03-21 09:59:25 +01:00
Axel Naumann
0d827a761a Add test for ROOT-7837. 2016-03-04 21:29:05 +01:00
Philippe Canal
f8a9fdcfc7 In AutoSynthesizer handle the case of try-catch function [ROOT-8034].
Example of try-catch function:

void function_with_try_block()
try
{
    // try block body
}
catch (...)
{
    // catch block body
}
2016-03-03 19:29:13 +01:00
Bertrand Bellenot
9bf850678c Replace another _MSC_VER by LLVM_ON_WIN32 2016-02-23 12:44:04 +01:00
Bertrand Bellenot
74b12a0cfe Use LLVM_ON_WIN32 everywhere 2016-02-23 11:29:06 +01:00
Bertrand Bellenot
96612a35db use _MSC_VER instead of LLVM_ON_WIN32 2016-02-23 10:29:09 +01:00
Bertrand Bellenot
7064c7ccf7 Remove a line forgotten in the previous patch 2016-02-23 09:29:07 +01:00
Bertrand Bellenot
2649f0d318 Fix cling compilation errors on Windows (with VS 2015) 2016-02-23 09:29:07 +01:00
Philippe Canal
c1cb2ca6f2 Add a means to customize which file are ignored in ForwardDeclPrinter.
This will also rootcling to tell cling's ForwardDeclPrinter to consider the file included inside a LinkDef file as
being top level headers (rather than listing the linkdef itself\!).
2016-02-19 00:00:26 +01:00
Axel Naumann
a754fcc65e Update to Jupyter 4.1 binary names. 2016-02-08 11:44:07 +01:00
Axel Naumann
cc2ca03981 Fix cling GitHub Issue #1: libclingJupyter might be called .so 2016-02-08 11:44:07 +01:00
Axel Naumann
4dd09de012 Missing include on Windows; fix preproc indentation. 2016-02-05 17:29:32 +01:00
Axel Naumann
14e101a3b1 Windows needs Windows.h instead of unidist.h. 2016-02-05 17:29:32 +01:00
Axel Naumann
8af1646f97 Better formulation of "integer of potr size". 2016-02-05 16:14:04 +01:00
Axel Naumann
21588e64c2 This test is a no-op in CMake - we need to fix that. 2016-02-05 16:14:04 +01:00
Axel Naumann
2b58f4ad21 Rename to match more generic content. 2016-02-05 11:59:04 +01:00
CristinaCristescu
2906250d08 Add lambda test for null deref. 2016-02-05 11:59:04 +01:00
Axel Naumann
66736733d9 sizeof(pointer) != sizeof(long) on Windows. 2016-02-05 11:44:09 +01:00
Axel Naumann
a306d87760 Add santity check - compiled programs should not see this. 2016-02-05 11:44:09 +01:00
Axel Naumann
a14f305911 Clarify at compile-time that cling cannot handle the new GCC ABI yet. 2016-02-04 20:29:06 +01:00
Axel Naumann
a8dcd932fe Fix expected enum value printing (underlying type). 2016-02-04 18:14:08 +01:00
Axel Naumann
c2172523f4 Add missing #include <tuple>.
The tuple part will be moved to a separate header in the cling extra / overriding include path,
behind a #include_next <tuple>.
2016-02-04 18:14:08 +01:00
Danilo Piparo
359515e06e Remove usage of stringstream and reformulate iteration on tuple elements
in order to  stop the iteration and account for the empty tuple case with
one single specialisation.
We loop at compile time from element 0 to element TUPLE_SIZE - 1
of the tuple. The running index is N which has as initial value
TUPLE_SIZE.
2016-02-04 15:29:16 +01:00