Commit Graph

66 Commits

Author SHA1 Message Date
Jiang Yi
90a7639461 Support setting cmd history file by ${CLING_HISTFILE} 2023-01-25 13:59:06 +01:00
Jiang Yi
392d5365d5 Set history size to ${CLING_HISTSIZE}
It was left unset. Then the default hist size was

static_cast<size_t>(-1), which is practically equivalent to unlimited

history size.
2023-01-25 13:59:06 +01:00
Jiang Yi
7c1e968336 Delete UITabCompletion* with unique_ptr 2022-11-19 16:14:05 +01:00
Vassil Vassilev
c2a28b097f Remove redundant include. 2018-02-20 13:44:05 +01:00
Frederich Munch
808cd70864 UserInterface: Enforce destruction order with TextInputHolder. 2017-07-05 10:29:07 +02:00
Frederich Munch
aad084a75a UserInterface: cling is discarding the last line if it does not have a newline. 2017-07-04 15:29:09 +02:00
Frederich Munch
38c757e36d Have MetaProcessor::process take an llvm::StringRef. Remove unnecessary std::string -> const char* -> std::string conversions. 2017-06-21 11:29:07 +02:00
Frederich Munch
7ab0d2ca97 Remove useless lines. 2017-03-24 13:44:13 +01:00
Frederich Munch
4d41bd315f Make InterpreterException::diagnose virtual and return a boolean. Refactor inheritance chain for InterpreterException. 2016-12-20 12:59:08 +01:00
Frederich Munch
075f4ffa83 Add cling output streams to cling/Utils/Output.h 2016-12-19 13:59:11 +01:00
Frederich Munch
e0ddb56b20 Fixes for output redirection.
Decouple redirection state from MetaProcessor and MaybeRedirectOutputRAII.
Only suspend redirection when writing to the prompt.
Allow user to redirect to files named 1, 2, &1, &2.
Allow stderr and stdout to be redirected to one another.
Don't create _IO_2_1_stdout_ file.
2016-12-14 09:29:10 +01:00
Frederich Munch
bedf4302e4 Avoid unnecessary string allocations. 2016-12-14 09:29:10 +01:00
Frederich Munch
f7e4bb2615 Add default for MetaProcessor::process Value argument. 2016-12-14 09:29:10 +01:00
Roman Zulak
a55bbe356c Use llvm to get Home directory, was broken on Windows anyway.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-18 17:53:20 +02:00
Frederich Munch
28ab61a8da Move CompilationException into Interpreter library.
InterpreterException is compiled with RTTI on, so all subclasses need to be as well.
Throwing from llvm_unreachable should be available to all clients of libInterpreter.
2016-09-09 09:29:49 +02:00
Frederich Munch
e4ffea8cd4 Use LLVM_NOEXCEPT and LLVM_CONSTEXPR macros. 2016-09-09 09:29:49 +02:00
Frederich Munch
378b926d72 Match exception specification for InterpreterException.
Some compilers are complaining about the mismatching exception specifications
between destructors of InterpreterException and its subclasses.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-17 10:14:33 +02:00
CristinaCristescu
ae0c82121d Cling UITabCompletion. 2016-07-19 12:10:58 +02:00
CristinaCristescu
1d13fe7548 Remove Extra included file in cling/UserInterface. 2016-07-18 20:44:10 +02:00
CristinaCristescu
12ac538a5c Refactor 2016-07-18 14:29:14 +02:00
CristinaCristescu
528b16faf6 Refactoring ROOT & Cling code completion. 2016-07-18 14:29:14 +02:00
CristinaCristescu
0381b517c1 Glue the cling tab completion to ROOT. 2016-07-18 14:29:13 +02:00
CristinaCristescu
cc5da51f21 Cling patch for code completion. 2016-07-18 14:29:13 +02:00
CristinaCristescu
95e3dcf8ef Check for invalid pointer address access. 2015-12-15 20:24:16 +01:00
Axel Naumann
923b4ce39b Also strip the "runtime" part of the Interpreter exception here. 2015-12-15 20:24:16 +01:00
CristinaCristescu
1d46fe88d8 Remove runtime namespace from NullDerefException and rename RuntimeException.h to Exception.h.
(cherry picked from commit 234da8bfedce8661c2b8bc50f72632c240c4dfd8)
2015-12-15 20:24:16 +01:00
CristinaCristescu
8ab37ec3d6 Enable Baozeng Ding's NullDeref protection for ROOT; use exceptions.
The function HandleInterpreterException catches the NullDerefException.
Remove pre-exception longjmp code.
2015-12-15 20:24:15 +01:00
Vassil Vassilev
96b189e8d7 Remove new lines. 2015-12-15 20:24:15 +01:00
Axel Naumann
faf2b44a0d Tell which language is enabled (ROOT-7090). 2015-02-21 23:15:27 +01:00
Vassil Vassilev
22f891e9be llvm::OwningPtr to std::unique_ptr. 2014-08-14 14:56:38 +02:00
Philippe Canal
576ca3ca96 Remove trailing spaces 2014-08-13 16:08:36 +02:00
Axel Naumann
0f77b4ff1b Less mem leaks. 2014-07-01 16:10:07 +02:00
Axel Naumann
93970e8c35 Replace StoredValueRef by Value. 2014-04-01 18:31:58 +02:00
Axel Naumann
c36da12a79 Disable history if envvar CLING_NOHISTORY is set - for fixed memory address. 2014-02-06 17:40:54 +01:00
CristinaCristescu
6296b84ab3 Changes to redirection. 2014-01-15 12:02:03 +01:00
CristinaCristescu
0ec0ba48b6 Change redirection from Interpreter to MetaProcessor. 2014-01-15 12:02:03 +01:00
Axel Naumann
44481ace1e Fix license; remove $Id$ version. 2014-01-07 11:14:04 +01:00
Axel Naumann
5706d4bdef Workaround broken JIT exceptions, use longjmp instead. 2013-10-03 09:54:00 +02:00
Axel Naumann
95c14596f0 Fix small string / $HOME mess. 2013-09-26 17:54:18 +02:00
Axel Naumann
6c0e0a2103 Reimplement GetUserHomeDirectory(). 2013-09-26 17:54:16 +02:00
Axel Naumann
37e58b7dba Typo 2013-09-11 10:11:04 +02:00
Axel Naumann
3a8534d285 Improve exception reporting. 2013-09-11 09:41:52 +02:00
Axel Naumann
0782d4d515 Make CompilationException public, (also) use new cling runtime exception as base. 2013-09-09 18:02:53 +02:00
Axel Naumann
0a9be4bfd1 Install fatal error handler throwing an exception. Yes that is dangerous. 2013-09-09 18:02:53 +02:00
Vassil Vassilev
5873981203 File was renamed. 2013-09-09 17:31:53 +02:00
Vassil Vassilev
0c4a39f10f Handle better the exceptions. 2013-09-07 10:46:54 +02:00
Vassil Vassilev
34d2c33c18 Handle the default interpreter's runtime exception. 2013-09-06 23:47:55 +02:00
Vassil Vassilev
683a11e9e9 Use default cling style for naming classes. 2013-09-06 23:47:55 +02:00
Baozeng Ding
2224bba3a7 Synthesize throwing of exception to handle the null deref. 2013-09-06 23:47:54 +02:00
Vassil Vassilev
f282a9a7b9 Add proper handling of the runtime exception. 2013-09-05 19:08:56 +02:00