Frederich Munch
8fc1289cd4
Make sure to get PATH_MAX on OS X with gcc.
2016-08-12 13:44:05 +02:00
Frederich Munch
33c05d3105
Relocate PPOpts variable initialization and remove comment.
2016-08-12 13:44:05 +02:00
Bertrand Bellenot
4dcd5f599e
Add Universal CRT or Windows 10 SDK in the include PATH.
...
This allows to run cling in a regular windows command prompt (instead of a Visual Studio Developer Command Prompt)
The issue was reported on the Forum: https://root.cern.ch/phpBB3/viewtopic.php?f=21&t=22006#p96749
2016-08-08 12:14:09 +02:00
Axel Naumann
40b24434be
Do not return early if the "{" is in a CPP macro!
2016-07-29 16:59:08 +02:00
Axel Naumann
928983b710
If a macro has an #if we cannot tell wether it is unnnamed. Reverts to previous behavior (named macro).
2016-07-29 15:59:08 +02:00
Axel Naumann
0b4ee9eefc
Treat tok::eod as part of the PP directive.
2016-07-29 10:29:24 +02:00
Axel Naumann
c378fe7289
Return first offset of token that needs wrapping; fixes cling test suite.
2016-07-28 12:46:24 +02:00
Axel Naumann
40e6b501a4
Handle last token, too.
2016-07-28 11:09:24 +02:00
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