Axel Naumann
8d1d56edd0
Whitespace.
2016-09-09 13:29:08 +02:00
Frederich Munch
477d65df86
Travis: Add gcc6 target on OS X.
2016-09-09 13:29:08 +02:00
Frederich Munch
877a1f46af
OS X: Fallback to getting system version with sw_vers.
...
This is necessary to support gcc > 10.9 and Gestalt is deprecated/may be removed.
Don't warn about deprecation in that section only, not the whole file.
Log progress in getting SDK when in verbose mode.
2016-09-09 13:29:08 +02:00
Frederich Munch
a34f2512c4
Windows: Fix DynamicLibraryManager error reporting.
2016-09-09 09:29:49 +02:00
Frederich Munch
ede2c165c3
Windows: Add verbose logging in AddHostArguments.
2016-09-09 09:29:49 +02:00
Frederich Munch
182bf78ce1
Windows: Fix VisualStudio include searching.
...
Fix writing to a string returned from getenv.
String version was wrong for _MSC_VER >= 1900.
VCINSTALLDIR was being queried too early.
Mechanism for falling back to other versions was inconsistant.
2016-09-09 09:29:49 +02:00
Frederich Munch
416eb642b6
Windows: Don't add VS2015 include paths unless compiled with that.
2016-09-09 09:29:49 +02:00
Frederich Munch
63ead8d92e
Windows: Fix CMake generation of CLING_INCLUDE_PATHS.
2016-09-09 09:29:49 +02:00
Frederich Munch
f933a88800
Windows: Fix SplitPaths when delimiter is ':'
2016-09-09 09:29:49 +02:00
Frederich Munch
9c09a27481
Fix SplitPaths when pruning non-existent directories.
2016-09-09 09:29:49 +02:00
Frederich Munch
16b3c48e78
Windows: Use enumeration rather than 3 constexpr ints.
...
Allows cling to compile on VisualStudio 2013.
2016-09-09 09:29:49 +02:00
Frederich Munch
7e26a469c4
Windows: Fix redefinition warning of NOMINMAX.
2016-09-09 09:29:49 +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
Vassil Vassilev
4731d83009
Add missing includes.
2016-09-07 22:29:10 +02:00
Axel Naumann
b56389eebe
Add test for ROOT-7610.
2016-09-06 10:14:21 +02:00
Axel Naumann
22925c8b0a
Add test against ROOT-5248.
2016-09-05 12:59:28 +02:00
Axel Naumann
580f6bee47
Add test against ROOT-7857.
2016-09-05 12:59:28 +02:00
Axel Naumann
31486e784e
Add test against ROOT-8300, fixed by wrapper improvements by Roman.
2016-09-05 12:59:28 +02:00
Frederich Munch
ac74ce4efc
Refactor Interpreter::WrapInput and Interpreter::createUniqueWrapper.
...
Avoid unnecessary copies of input that isn't wrapped.
Add argument to get location of source in wrapper (useful for error reporting with SourceLocation).
Remove dependency of CompilationOptions/CodeCompletion state.
Avoid allocation in Interpreter::createUniqueWrapper:
sizeof(const char*) + sizeof(m_UniqueCounter) is less than strlen of UniquePrefix
2016-09-05 12:44:13 +02:00
Frederich Munch
5bb4fc3e8d
More complete function/class wrap detection.
...
Handle C++ class scoping for unwrapped function/method definitions.
Handle source that begins with a function/method that should't be wrapped and
is followed by statements that should be.
2016-09-05 12:44:13 +02:00
Frederich Munch
be7769aa5d
Remove .rawInput from a variety of tests to test unwrapped function input.
2016-09-05 12:44:13 +02:00
Frederich Munch
c86cd5bc6c
Allow struct and class return types from function definitions.
2016-09-05 12:44:12 +02:00
Frederich Munch
1bb3b96d2f
Don't wrap function, method, constructor, or destructor definitions.
2016-09-05 12:44:12 +02:00
Axel Naumann
27b505e2a2
Disable some more warnings from clang.
2016-09-05 11:14:08 +02:00
Frederich Munch
4a45f0bc51
Fix x86 dependency in test/UnknownType.C
2016-09-05 08:29:46 +02:00
Frederich Munch
354a406ae8
Remove ValuePrinterSynthesizer::m_ValuePrinterStream.
2016-09-02 12:59:54 +02:00
Frederich Munch
3fc04047aa
Remove useless heap allocation in Value::dump.
2016-09-02 12:59:54 +02:00
Frederich Munch
38c0ee7849
Optimize C-string output.
...
Seems rather inefficient to allocate a stream buffer for every character.
2016-09-02 12:59:54 +02:00
Frederich Munch
cb0e5cf94a
Fix crash when first thing printed in a session is a function
2016-09-02 12:59:54 +02:00
Frederich Munch
415483c07e
Gracefully handle unknown type expressions.
...
Prior behavior crashed, now an error printed.
Add test/Prompt/ValuePrinter//UnkownType.C.
2016-09-02 12:59:54 +02:00
Frederich Munch
fd083261b9
Print expressions containing any valid pointer type.
...
Prior behavior was crashing when all it is is a pointer value.
Affecting Objective-C values on OS X.
2016-09-02 12:59:54 +02:00
Axel Naumann
e71a2c60e1
Only do DynLookup in functions with a body!
2016-09-02 09:42:14 +02:00
Axel Naumann
0327bdabe1
Restrict dyn scopes to functions on global scope.
2016-09-01 15:11:22 +02:00
Axel Naumann
9a9acc2b3a
Revert "Fix value printing of structs." - the problem is in ROOT.
...
This reverts commit e61630e2ab32fb2bb4d47fb5455d96981bf56464.
2016-09-01 08:14:34 +02:00
Philippe Canal
4450ad6724
Suppress warning about (intentional) use of deprecated function in CIFactory.cxx
2016-08-31 23:14:08 +02:00
Axel Naumann
7c7510fbbf
Value printing: fix const char*, handle nullptr case.
2016-08-31 20:59:11 +02:00
Axel Naumann
608a560140
DynScopes: recurse into Decls.
2016-08-31 18:14:13 +02:00
Axel Naumann
a8608d0a67
DynLookup: annotate the wrapper instead of visiting it.
2016-08-31 18:14:13 +02:00
Axel Naumann
1b81e23313
Wrapper must be a FunctionDecl.
2016-08-31 18:14:13 +02:00
Axel Naumann
9bf00ee3db
Fix value printing of structs.
2016-08-31 18:14:13 +02:00
Axel Naumann
22fe0f2c20
Do not transform recursively; each Decl should only be transformed once.
...
(cherry picked from commit a1a1288176480f717f6031aa6a7e664f2135e537)
2016-08-30 11:14:19 +02:00
Axel Naumann
d9760070f6
Fix and simplify.
...
The original implementation would have needed multiple calls to ChildMP.process() for the value printing to work.
2016-08-29 12:14:42 +02:00
Axel Naumann
0d7735c7fb
Set the child interpreter's counter to 1 + the parent's counter, to avoid clashes.
2016-08-29 09:29:16 +02:00
Axel Naumann
a302f3c002
Do not violate contract of frozen parent.
2016-08-29 09:29:15 +02:00
Axel Naumann
849d959138
doxygen fixed.
2016-08-26 17:59:14 +02:00
Axel Naumann
f6bfab6b2a
XFAIL until I understand the failure.
2016-08-26 17:14:22 +02:00
Axel Naumann
5e8ee50a09
Clarify that CLING_CONSTEXPR is only for functions (vars need const for old MSVC).
2016-08-26 15:14:10 +02:00
Axel Naumann
62a6f08172
No need to wrap if EOF, possibly after preproc (ROOT-8325).
2016-08-26 13:14:08 +02:00
Axel Naumann
23735aca6b
"const static bool isDefinition(void*)" is weird. Thanks, Roman Zulak!
2016-08-26 11:44:29 +02:00