2153 Commits

Author SHA1 Message Date
Axel Naumann
93edfaeec2 Move shouldWrap / isUnnamedMacro; use Lexer. Prerequisite for improving wrapInput(). 2016-07-28 11:09:24 +02:00
CristinaCristescu
d0debe0aa9 Try std::unique_ptr for ClingATSImporter 2016-07-25 15:59:11 +02:00
Axel Naumann
762942581e Remove unused function IncrementalParser::Parse(). 2016-07-22 16:14:11 +02:00
Axel Naumann
431e6e6815 Add clarifying comment. 2016-07-22 16:14:11 +02:00
CristinaCristescu
5e2df99165 Call compile for code completion and reset diagnostics after completion. 2016-07-22 16:14:11 +02:00
Frederich Munch
eb1f75891b Fix Token::startToken not initializing length member. 2016-07-22 12:44:12 +02:00
Frederich Munch
63b1f5d4c9 Fix gcc5 complaining about pow10 being redeclared. 2016-07-22 12:44:12 +02:00
Frederich Munch
c2dc7e1af8 Remove m_exe variable from ClingMemoryManager as it's not being used. 2016-07-22 12:44:12 +02:00
Frederich Munch
57339863eb Comment out unused code in IncrementalExecutor::runStaticInitializersOnce 2016-07-22 12:44:12 +02:00
Frederich Munch
e4fc69a122 Cache function name in IncrementalExecutor::runStaticInitializersOnce. It can be non-trivial to lookup. 2016-07-22 12:44:12 +02:00
Frederich Munch
79afcba73d Fix needless assert in CheckABICompatibility for Debug builds. Trying to get a macro definition was using dyn_cast (which assert on NULL). The function is already handling that case later, so use dyn_cast_or_null. 2016-07-22 12:44:12 +02:00
Axel Naumann
cc77dac476 Indent. 2016-07-21 19:44:08 +02:00
Axel Naumann
77bbfc0020 Only use -I../../include if this is cling (ancient ROOT-4455). 2016-07-21 19:44:08 +02:00
Axel Naumann
09a50d78ce Fix missing enum case warning. 2016-07-21 15:59:24 +02:00
Axel Naumann
12d10b3145 Fix unused var warning. 2016-07-21 15:59:24 +02:00
Axel Naumann
ffec1df67b Only refuse decl extraction if ill-formed; add test; move KnownFail out. 2016-07-21 15:59:24 +02:00
Bertrand Bellenot
0d24d146df Fix weird compilation errors on Windows (to be reviewed) 2016-07-21 11:44:27 +02:00
Bertrand Bellenot
e0dabaef08 Don't use std::stringstream, since it doesn't prepend '0x' in front of hexadecimal values when streaming pointer values 2016-07-21 11:44:27 +02:00
Bertrand Bellenot
b0b2c6d9e7 Propagate the debug compiler flag to prevent mixing debug/optimized code on Windows 2016-07-21 11:44:26 +02:00
Frederich Munch
5a0e1bca84 Fix searching for library twice: DynamicLibraryManage::loadLibrary takes optional argument indicating if the path is from a previous lookupLibrary call.
(cherry picked from commit 244b26d6021e55e214ee078bec99e7c6a43d4820)
2016-07-19 18:14:10 +02:00
Axel Naumann
39dd90e183 Use LLVM_LINK_COMPONENTS; add_dependencies superseded by cling/CMakeLists.txt depending on tablegen-ed files. Cleanup linked libs. 2016-07-19 17:59:14 +02:00
Axel Naumann
b4e6edebb7 Remove unnecessary interface lib; no need for dependencies; add -ldl only if needed; use LLVM_LINK_COMPONENTS for llvm libs. 2016-07-19 17:59:14 +02:00
Frederich Munch
a054b253d8 Fix CMake projects to link to proper libraries when built as shared library. 2016-07-19 17:59:14 +02:00
CristinaCristescu
ae0c82121d Cling UITabCompletion. 2016-07-19 12:10:58 +02:00
Axel Naumann
2e08275916 Build libcling.so based on OBJECT "library" in CMake. 2016-07-19 10:59:32 +02:00
CristinaCristescu
1d13fe7548 Remove Extra included file in cling/UserInterface. 2016-07-18 20:44:10 +02:00
Axel Naumann
b3592df5c0 Fix (un)signed comparison warning. From Cristina! 2016-07-18 15:59:14 +02:00
Axel Naumann
955345222e Fix compilation failure. From Cristina. 2016-07-18 15:59:14 +02:00
CristinaCristescu
12ac538a5c Refactor 2016-07-18 14:29:14 +02:00
CristinaCristescu
4e320a621e LLVM resource dir for the child interpreter. 2016-07-18 14:29:14 +02:00
CristinaCristescu
528b16faf6 Refactoring ROOT & Cling code completion. 2016-07-18 14:29:14 +02:00
CristinaCristescu
e3d5b485e9 Filter the results loaded on the decls map for the known stem. 2016-07-18 14:29:14 +02:00
CristinaCristescu
8a646b6dba Pass the parent's interpreter llvmdir to the child interpreter. 2016-07-18 14:29:14 +02:00
CristinaCristescu
0d5cad62d2 Mark the external visibility of imported decls. 2016-07-18 14:29:14 +02:00
CristinaCristescu
16c5266de3 Make the Complete function a member of cling Interpreter. 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
Axel Naumann
8ef4931a12 Initialize all pointer members! (Coverity 63235) 2016-07-18 11:29:36 +02:00
Axel Naumann
ce6206dd3b Do not access TheTarget if nullptr (Coverity 63252). 2016-07-18 11:29:36 +02:00
Axel Naumann
399dbc5248 Do not leak duped file handles (Coverity 54845). 2016-07-18 11:29:36 +02:00
Axel Naumann
1fe1876136 Exit early once the dylib is found. 2016-07-13 17:16:13 +02:00
Axel Naumann
7e9a74f3e4 Remove remnants of llvm configure/make build system. 2016-07-13 17:16:13 +02:00
Axel Naumann
b7267e1553 Clang now checks for missing cleanup actions. 2016-07-12 10:44:20 +02:00
Axel Naumann
ad1b09290d Follow change in clang interface. 2016-07-12 10:44:20 +02:00
Axel Naumann
6d97a5c2fa Improve detection of unnamed macro, from Nigel Victor Warr! 2016-07-06 15:29:05 +02:00
Philippe Canal
a5a0102dd0 Expected<T> object must be checked before use 2016-07-05 23:44:14 +02:00
Philippe Canal
95b31810f3 Fix the behavior of PointerCheckInjector for templated functions.
The previous version of the code was injecting the null pointer check in both
the function template and each function template instances resulting in the
check being called twice.

In addition, r272382 of llvm/clang seems to 'drop' part of the code that is
inserted in the function template when it instantiates it.  This resulting in
faulting behavior as the pointer is incorrectly cast (offset).

To solve this problem and avoid the double call, we now only insert the null
pointer check on regular function and function template instances.
2016-06-28 19:59:07 +02:00
Axel Naumann
bedc277fae Simplify invocation of DeclUnloader::UnloadDecl(). 2016-06-26 18:59:08 +02:00
Axel Naumann
d695460d0c Speling. 2016-06-26 18:59:07 +02:00
Axel Naumann
eb9e07a244 Move include to source where it belongs. 2016-06-26 18:59:07 +02:00