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
Axel Naumann
c11224dce0
Force -std=c++14 to enable __STRICT_ANSI__.
...
This removes __float128 warnings (enabled when building cling, disabled at runtime due to missing
support in clang) on MacOS with GCC.
2017-07-04 11:29:45 +02:00
Frederich Munch
4739761b89
Don’t clear GNUMode when user has specifically asked for it. There are uses that are valid even if the host compiled with _GLIBCXX_USE_FLOAT128.
2017-06-28 16:15:10 +02:00
Axel Naumann
6ec2c42b3c
Reflect updated function name in error message.
2017-06-26 17:44:07 +02:00
Axel Naumann
c283f26a8a
Fix test to check the right thing.
2017-06-26 17:44:07 +02:00
Axel Naumann
bef7762723
Remove outdated comment.
...
clang does warn about backslash-followed-by-tab.
2017-06-23 15:14:10 +02:00
Frederich Munch
df4aea2fb0
Add continuation support for comma and backslash characters.
2017-06-23 15:14:10 +02:00
Frederich Munch
7825094907
Fix test for CERN/master.
2017-06-23 10:44:12 +02:00
Frederich Munch
137e1a48af
Cleanup test formatting.
2017-06-23 10:44:12 +02:00
Frederich Munch
522b5f491c
Add support for multiple arguments in one pragma call. Add support for multiple styles:
2017-06-23 10:44:12 +02:00
Frederich Munch
955b5423e4
Make sure to declare gCling in C-mode. Skip failing test in AtExit.C.
2017-06-22 20:30:27 +02:00
Frederich Munch
8f29132120
Fix -fsyntax-only flag which changed in 0d15357
and to allow usage of gCling.
...
0d15357
unintentionally blocked inclusion of RuntimeUniverse.h when using -fsyntax-only.
2017-06-22 16:39:14 +02:00
Frederich Munch
ffa8f951ce
Combine similar tests into one file.
2017-06-21 08:29:11 +02:00
Frederich Munch
e641e0e837
Compress bools into bitfields.
2017-06-21 08:29:11 +02:00
Frederich Munch
1cc08e2cbe
Windows: Fix type printed for test/Utils/Transform.C
2017-06-21 08:29:10 +02:00
Frederich Munch
981e2f61f3
Fix typo.
2017-06-14 11:29:05 +02:00
Roman Zulak
2806ec0f61
Warn if lambdas in global scope use copy capture.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-06-12 18:14:31 +02:00
Roman Zulak
6a8632d451
Fix trying to destruct C structs after printing on prompt. Don't bother destructing C++ objects who have trivial destructors.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-06-12 18:14:30 +02:00
Roman Zulak
9ea5a480da
Remove dead code from LLVM upgrade.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-06-09 17:45:50 +02:00
Vassil Vassilev
f10a89efb1
Remove on_clone, it doesn't exist anymore in llvm.
2017-06-08 10:29:13 +02:00
Vassil Vassilev
8f257e74d3
Create a virtual file entry for each input line.
...
This is the only way not to confuse the diagnostics engine of upgraded clang.
Also, this gives us a few advantages:
* We can compare more precisely the source locations of diagnostics;
* We can merge the code completion code path which works with file entries;
* We can rely better when specifying //expected-note-s in different files.
2017-06-08 10:29:13 +02:00
Vassil Vassilev
a1bd767b6b
Adapt to interface changes due to upgrade to r302975.
2017-06-08 10:29:13 +02:00
Frederich Munch
77bda84fb2
Destroy elements in reverse order of construction.
...
Prevents possibility of last element referencing now invalid first element.
2017-06-06 13:59:18 +02:00
Frederich Munch
2d141ff840
Change evaluation test to track instances better.
2017-06-06 13:59:18 +02:00
Axel Naumann
4922050e9b
Create lit feature for stand-alone / non-embedded cling and use it!
2017-05-11 16:44:31 +02:00
Axel Naumann
a3b7f8b2b5
Fix C comments with slash. By Roman Zulak!
2017-05-11 09:00:00 +02:00
Axel Naumann
c7fcec5a46
Typo causing unrelated failure.
2017-05-09 08:59:40 +02:00
Axel Naumann
93869de6c7
Test ROOT-7016.
2017-05-05 12:14:05 +02:00
Axel Naumann
52d32de70c
Add tests for #pragma cling optimize
and .O
2017-04-12 15:44:35 +02:00
Philippe Canal
f5c7037763
Fix ROOT-8739: Lookup of symbol inside of namespace shadowed by function (in another 'used' namespace).
...
This was happening when a namespace had the same as the function in a namespace that was 'used'. Namely,
in the issue report it was the 'next' namespace and the function std::next.
This required the quick search function in LookupHelper.cxx to properly handle the return value of utils::Lookup::Named.
2017-04-07 21:14:06 +02:00
Philippe Canal
3a1db539f6
Revert "Fix ROOT-8739: Lookup of symbol inside of namespace shadowed by function (in another 'used' namespace)."
...
This reverts commit 0728f30ead6c1cca74bf31b93dc9a1cb616a3e35.
2017-04-07 20:44:04 +02:00
Philippe Canal
68283cac47
Fix ROOT-8739: Lookup of symbol inside of namespace shadowed by function (in another 'used' namespace).
...
This was happening when a namespace had the same as the function in a namespace that was 'used'. Namely,
in the issue report it was the 'next' namespace and the function std::next.
This required the quick search function in LookupHelper.cxx to properly handle the return value of utils::Lookup::Named.
2017-04-07 20:29:17 +02:00
Axel Naumann
b266e2e5fc
Implement first ".trace" command. From Viktor Khristenko!
2017-04-04 15:14:05 +02:00
Frederich Munch
0d42a482e0
Add test of function level static variables.
2017-03-31 10:29:22 +02:00
Frederich Munch
165e7ea0b5
Fix collection printing for pairs, recursion, and std::vector<bool>.
2017-03-24 14:59:07 +01:00
Frederich Munch
f28c04c1a2
Add Interpreter::getMacroValue method.
2017-03-23 15:59:04 +01:00
Axel Naumann
7c1fbfcf9f
Require ">" after ".5" to accept it as redirection (ROOT-8696).
2017-03-22 21:14:29 +01:00
Frederich Munch
00ffd4c420
CMake: Remove extraneous dependencies for CLING_TEST_DEPS.
2017-02-21 16:34:19 +01:00
Frederich Munch
2a41c186d8
Lit: Add IsWindows variable.
2017-02-21 16:34:19 +01:00
Frederich Munch
42971e42cd
Lit: Add %mkdir, %rm, and %rmdir substitutions.
2017-02-21 16:34:19 +01:00
Frederich Munch
fa5c74997b
Lit: Fixup Windows cling_obj_root path when built with CMake.
2017-02-21 16:34:19 +01:00
Frederich Munch
a939c253d8
Lit: Use LLCM/Clang way of testing ‘execute_external’. Fix-up Windows paths based on this.
2017-02-21 16:34:19 +01:00
Axel Naumann
2785a7c105
Remove debug breakage.
2017-02-21 15:14:05 +01:00
Axel Naumann
9588c52a43
Make it actually fail.
2017-02-21 14:14:05 +01:00
Axel Naumann
1ea1ac2d44
Temporary breakage to debug cont integration.
2017-02-21 11:44:30 +01:00
Frederich Munch
311a557be1
Windows: Interpret -nostdinc++ as -nostdinc which clang does not use on Windows backend. Fixes ABI and NoStdInc tests.
2017-02-17 15:14:06 +01:00
Frederich Munch
15c1247a44
Windows: Fix byte dumping to non UTF-8 codepage and Strings.C test.
2017-02-17 15:14:06 +01:00
Frederich Munch
3bde3e4404
Windows: Trivial fix for initorder.C.
2017-02-17 15:14:06 +01:00
Axel Naumann
40bc805952
Revert "Fix unloading of friend declarations."
...
This reverts commit 1cf955ae4504d8cdb6d87c70d4331806c9861255.
2017-02-10 08:44:05 +01:00
Axel Naumann
7bcbdf120b
Revert "Call VisitRedeclarable before VisitDeclContext to avoid any recursion that might occur."
...
This reverts commit 1d1d8fd511a4ec621a92628462142cb8d9356b70.
2017-02-10 08:44:05 +01:00
Axel Naumann
71187acfba
Revert "Fix unloading of using namespace declarations. Add test/CodeUnloading/UsingShadows.C"
...
This reverts commit f5287603e6502c07f76a7f5a599aa6faae005327.
2017-02-10 08:44:05 +01:00
Axel Naumann
86de616002
Revert "Fix unloading of types in a namespace declared as using. This fixes triggering an assert in clang caused by trying to remove a declaration too many times."
...
This reverts commit c1574e399ae2e46fd0400d49c45eb48875995775.
2017-02-10 08:44:05 +01:00
Axel Naumann
9f5820a693
Revert "Fix unloading declarations in std namespace that were declared in an inline namespace, but referenced in the std namespace itself. Cling would crash or complain about forward declarations not being the same later."
...
This reverts commit 200ac7c6e64923f42023cc7324cab6ea7ebd3616.
2017-02-10 08:44:05 +01:00
Axel Naumann
3addec52ea
Revert "Fix unloading from inline namespaces other than std."
...
This reverts commit 1e9984a65312b07f39760f6aec88b0b246fe3d94.
2017-02-10 08:44:05 +01:00
Frederich Munch
185b905525
Fix unloading from inline namespaces other than std.
2017-02-09 17:14:20 +01:00
Frederich Munch
87c97bab0d
Fix unloading declarations in std namespace that were declared in an inline namespace, but referenced in the std namespace itself. Cling would crash or complain about forward declarations not being the same later.
2017-02-09 17:14:20 +01:00
Frederich Munch
1cc55d32ea
Fix unloading of types in a namespace declared as using. This fixes triggering an assert in clang caused by trying to remove a declaration too many times.
2017-02-09 17:14:19 +01:00
Frederich Munch
14aaa3995e
Fix unloading of using namespace declarations. Add test/CodeUnloading/UsingShadows.C
2017-02-09 17:14:19 +01:00
Frederich Munch
8957d2b84e
Call VisitRedeclarable before VisitDeclContext to avoid any recursion that might occur.
...
This should have been included in the prior commit, but as it affects [ordering in] other DeclUnloader functions;
the ability to back it out separately is better.
Also exposes a bug/change necessary in clang when building in Debug mode to avoid an infinite loop.
2017-02-09 17:14:19 +01:00
Frederich Munch
f87922659d
Fix unloading of friend declarations.
2017-02-09 17:14:19 +01:00
Frederich Munch
eb40609ab2
Add -noruntime flag to force cling not load or use support for value-printing or null dereferencing. This makes it tons easier to debug DeclUnload and discover what isn't being unloaded.
2017-02-09 16:45:11 +01:00
Frederich Munch
630abbf855
Windows: Fix preprocessor output test.
2017-02-09 16:45:10 +01:00
Frederich Munch
a91b83632e
Use std::find_if when searching m_StoredStates.
2017-02-07 16:59:09 +01:00
Frederich Munch
4dd1ce8e56
Fix for Interpreter hanging on to states that can refer to a deleted llvm::Module.
2017-02-07 16:59:09 +01:00
Frederich Munch
f057cf9b0c
Fix ExternC test on Linux.
2017-02-07 16:44:05 +01:00
Frederich Munch
efd446871c
Fix LLVM API misuse when trying to replace and keep a DiagnosticConsumer.
2017-02-02 11:44:05 +01:00
Frederich Munch
72ed42670a
Add inline unloading test.
2017-02-02 10:14:15 +01:00
Frederich Munch
94672dd0d0
Fix unloading functions declared external "C". Refactor VisitRedeclarable.
2017-02-02 08:30:01 +01:00
Frederich Munch
afb2746b64
Fix unloading global variables declared extern "C". Add test that demonstrated failure.
2017-02-02 08:30:01 +01:00
Frederich Munch
14437862ef
Handle -E flag to dump preprocessor definitions.
2017-02-01 13:14:11 +01:00
Frederich Munch
592e61ba1e
Feature to generate precompiled headers.
2017-02-01 13:14:11 +01:00
Frederich Munch
e10447fe92
Support inclusion of precompiled header from header search paths.
2017-02-01 13:14:10 +01:00
Frederich Munch
8daa5bcf11
Fix atexit function declarations for gcc and add test. Fix mangling issues for at_quick_exit and g++ headers.
2017-01-25 11:14:11 +01:00
Frederich Munch
7bf90d02f3
Comment redirection test and restore its previous glory.
...
This reverts commit f1538c4f30
.
2017-01-25 08:14:56 +01:00
Frederich Munch
7eea9235da
Have Value::dump write unicode and strings with embedded data properly.
2017-01-18 15:59:12 +01:00
Frederich Munch
f39f1f7318
Fix C-string printing for safety, speed, and data loss. Prior behavior assumed both pointer and pointer+10000 were valid memory. Add override for const char arrays so that they can be printed faster. Make cling::printValue a lossless operation. Previously strings with non-ASCII printable chars were transformed into an invalid c-string and the data could not be used to recreate the string.
2017-01-18 15:59:11 +01:00
Frederich Munch
fb96f9c040
Support unicode std::strings.
2017-01-18 15:59:11 +01:00
Axel Naumann
f1538c4f30
Test for ROOT-8399.
2017-01-17 14:29:07 +01:00
Axel Naumann
b3c0b92872
Add test for ROOT-7354.
...
(cherry picked from commit 1cc79b53c9289cf7f5f63a96d98ed2da741af41a)
2017-01-17 08:59:30 +01:00
Axel Naumann
03c2b3ea09
Test ROOT-8529.
2017-01-13 11:59:10 +01:00
Axel Naumann
3e22e9e78e
Move from KnownFail, now that it works!
2017-01-12 11:14:34 +01:00
Axel Naumann
478a2e8646
This is now passing, actually.
...
For some reason that was not visible before the change to the prompt diag suppression.
2017-01-12 11:14:34 +01:00
Frederich Munch
1aabc2dbe0
Add simple wrappers for buffered LLVM streams. Use them to control Value printing format.
2016-12-19 13:59:11 +01:00
Frederich Munch
075f4ffa83
Add cling output streams to cling/Utils/Output.h
2016-12-19 13:59:11 +01:00
Frederich Munch
340f6b897b
Fix setenv declaration for gcc on OS X.
2016-12-15 14:29:09 +01:00
Frederich Munch
4427d1a5c2
Have .> cmd expand env-vars. Fixes OutputRedirect test on Windows.
2016-12-14 09:29:10 +01:00
Frederich Munch
1bf0e16d7f
Redirect to file properly when no space between > and filename.
2016-12-14 09:29:10 +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
64b89f34a7
Randomize and speed up OutputRedirect.C.
2016-12-14 09:29:10 +01:00
Frederich Munch
3a519fe9cd
Windows: Get RunAgainstClangTestSuite.C working.
2016-12-12 12:44:10 +01:00
Frederich Munch
12ebdf3686
Change PCH test to generated C++14.
...
This allows the test to pass on VStudio 2015 and seems like a good thing
to test on other platforms.
2016-12-12 12:44:10 +01:00
Frederich Munch
bf3c8052d8
Windows: Fix various test failures.
2016-12-12 12:44:09 +01:00
Frederich Munch
705e2b2a7e
Windows: Fix test failure because path has backslashes.
2016-12-12 12:44:09 +01:00
Frederich Munch
d4aed2527d
Add CLING_EXPORT macro.
2016-12-12 12:44:09 +01:00
Frederich Munch
52cd30dbef
Lit: Add setenv transformation to use export/set on Unix/Windows.
2016-12-12 12:44:09 +01:00
Frederich Munch
e8cade29c7
Lit: Quote paths for Windows.
2016-12-12 12:44:09 +01:00
Frederich Munch
e265a84fef
Lit: Use proper Windows paths for easier copy/paste.
2016-12-12 12:44:09 +01:00
Frederich Munch
960f6e4be7
Lit: Propagate LIB & LIBPATH env-vars on Windows.
2016-12-12 12:44:09 +01:00
Frederich Munch
723bed09d5
Add preprocessor #if conditional support to InputValidator.
2016-12-12 12:29:38 +01:00
Frederich Munch
72c3eac1e1
Add block comment support to InputValidator.
2016-12-12 12:29:38 +01:00
Frederich Munch
4b6ae92419
Split getcwd tests into two files as Windows cannot pass one of the tests.
2016-12-06 20:44:05 +01:00
Frederich Munch
0a995d8b3d
Revert "Simplify; make Windows compatible (cannot delete cwd)."
...
This reverts commit 2459221755
.
2016-12-06 20:44:05 +01:00
Bertrand Bellenot
2459221755
Simplify; make Windows compatible (cannot delete cwd).
2016-12-06 16:14:25 +01:00
Axel Naumann
372c3243bf
MacOS messes up unicode file names with old git.
2016-12-02 11:29:08 +01:00
Axel Naumann
cab3c10849
Revert "Fix UTF8 encoding for _42_Semmel_Knödel."
...
Makes the tests fail on Linux.
This reverts commit e666cfc7b0d141aff54e380c2f7f63e85ae23646.
2016-12-01 17:44:07 +01:00
Frederich Munch
c534930b64
Fix UTF8 encoding for _42_Semmel_Knödel.
2016-12-01 17:29:08 +01:00
Bertrand Bellenot
fdf057e19a
Cannot use tick as quote on Windows.'
2016-11-30 11:14:29 +01:00
Bertrand Bellenot
f8f73fd444
On Windows we need -nostdinc as C and C++ header locations are identical.
2016-11-30 10:14:14 +01:00
Bertrand Bellenot
79d830c122
Test cannot succeed on Windows due to DLL / dyn linker behavior.
2016-11-30 10:14:14 +01:00
Bertrand Bellenot
1f6b27c24c
Make non-windows selectable for tests.
2016-11-30 10:14:13 +01:00
Axel Naumann
5e14792560
Add test for ROOT-8467.
2016-11-28 17:44:15 +01:00
Roman Zulak
9157aad03e
Fix printing of std::map broken in 1e004e9
.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-23 12:59:23 +01:00
Roman Zulak
1e004e9d3a
Fix printing of collections. Make it impossible for a collection with 1 element to match the string of an empty collection. Avoid checking if comma needs to be added in loop. Make an empty tuple print same as empty collection: '{}'.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Roman Zulak
c91e902f58
Windows: Fix print QualType's that can be severely hidden in layers of typedefs.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-11-21 12:44:34 +01:00
Philippe Canal
39ea2ba5c2
Extent autoforwarding test with more include nesting case
2016-11-18 01:29:09 +01:00
Philippe Canal
d066ad6061
Add test of the case where the definition are indirectly included
2016-11-14 03:14:37 +01:00
Philippe Canal
1bd0822562
Test for ROOT-8443
...
Test clean-up of forward decl with or without template default parameter and user forward decl
also with or without template default parameter and located before or after the inclusion
of the annotated/dictionary forward decls.
2016-11-14 03:14:37 +01:00
Philippe Canal
6920d6d460
Add cling version of test for ROOT-7037
2016-11-14 03:14:37 +01:00
Roman Zulak
74cb06a22f
Fixes issues where symbols can be improperly aligned for llvm::PointerIntPair Use std::pair instead of llvm::PointerIntPair.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-19 13:54:07 +02:00
Roman Zulak
1dadbe2495
Refactor CheckABICompatibility into a more legible version. Standardize error message. Return whether the ABI matched or not.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-10-18 17:53:21 +02:00
Vassil Vassilev
fbd110fc67
When deciding not to wrap add the last token ';' we advanced to.
...
This fixes Github issue 113, breaking Jupiter notebooks.
2016-10-16 11:39:16 +02:00
Axel Naumann
1ce8341b6d
Add newline at end of file.
2016-09-27 10:29:55 +02:00
Frederich Munch
2bf05c5188
Fix extern "C" declarations not being called from .x command.
...
This handles top-level declarations only (i.e. not nested in namespaces).
2016-09-16 21:39:49 +02:00
Frederich Munch
c6b24d764c
Fix TransactionPool placement new and delete.
...
TransactionPool was using placement new and delete improperly which could lead to Transaction::~Transaction running twice.
Make Transaction constructor private to make sure TransactionPool has allocated all Transactions it contains.
Remove "*Very useful for debugging purposes" leak on every allocation.
2016-09-12 17:29:20 +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
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
Frederich Munch
4a45f0bc51
Fix x86 dependency in test/UnknownType.C
2016-09-05 08:29:46 +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
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
a302f3c002
Do not violate contract of frozen parent.
2016-08-29 09:29:15 +02:00
Axel Naumann
f6bfab6b2a
XFAIL until I understand the failure.
2016-08-26 17:14:22 +02:00
Roman Zulak
8688067f1c
Changing output name call.C test.
...
Hopefully this removes intermittent test failures because of a race condition where
two tests were attempting to write to the same file.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:24 +02:00
Frederich Munch
bbfd61d897
Share -v flag with clang, and use it during startup to log info about header search paths.
...
Also fix trying to report why compiler invocation failed when it was never attempted.
Add message about build being probably being configured incorrectly.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:18 +02:00
Frederich Munch
5ee1cfb7c3
Refactor all argument parsing into InvocationOptions.cpp.
...
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:18 +02:00
Frederich Munch
2142853de6
Don't call clang::ApplyHeaderSearchOptions from Interpreter::AddIncludePaths.
...
Instead call it at the end of cling::createCI (that should probably change too).
clang::ApplyHeaderSearchOptions is a very heavy-weight function that does a lot
of work to determine and add system headers. More importantly it can also wind
up invalidating clangs internal cache making inclusion of files later impossible.
By using the lighter HeaderSearchOptions::AddSearchPath we not only avoid redoing
a lot of work that has been done, but can adjust the method in clang to avoid
cache invalidation so that calling Interpreter::AddIncludePath will actually
make the files in that path accessible to clang.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:18 +02:00
Frederich Munch
4cdbc0461e
Honor clangs -nostdinc++ and -nobuiltininc flags.
...
Rename AddHostCXXIncludes to AddHostIncludes and delineate between -nostdinc++
and -nobuiltininc. When cling is invoked with -nobuiltininc, do not #include any runtime
files on startup. Make ABI incompatability error consistent across platforms and add a test to verify behavior when this occurs.
More importantly this allow for easier debugging of Decl unloading as the amount of
declarations on startup is greatly reduced.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-18 15:44:17 +02:00
Frederich Munch
109812d223
Fix crash from possible null return from getcwd.
2016-08-12 14:29:07 +02:00
Frederich Munch
bcb75e1476
Don't create a virtual file with a valid file name.
...
This fix allows running a file in the current working directory.
2016-08-12 14:29:07 +02:00
Frederich Munch
a7f5c1719e
Set CLING_NOHISTORY when running tests.
2016-08-12 14:14:06 +02:00
Frederich Munch
e3265d1d8c
Add %built_cling substitution for lit so tests can be run from either the build or installations directories.
2016-08-12 14:14:06 +02:00
Frederich Munch
a875004a73
Fix check-cling target, broken in commit b461173
.
...
Signed-off-by: Bertrand Bellenot <bertrand.bellenot@cern.ch>
2016-08-11 10:59:21 +02:00
Bertrand Bellenot
3c3c027663
Keep the Cling copyright header
2016-08-08 11:29:09 +02:00
Bertrand Bellenot
b46117358a
Use the same CMake cling test architecture than the clang tests
2016-08-08 11:14:16 +02:00
Axel Naumann
6b06b7344b
The "." is needed for lit to parse the regex; require 5*hex.
2016-07-30 21:14:15 +02:00
Axel Naumann
be22fa6165
Fix spelling of CPP check.
2016-07-30 13:14:13 +02:00
Axel Naumann
214dcfc40f
Do not require extra char after 6 hex-digit ptrs.
2016-07-30 13:14:13 +02:00
Axel Naumann
494733cef8
JIT exception support missing for powerpc64.
2016-07-30 00:43:09 +02:00
Axel Naumann
92716fcdc6
Do not expose x86 asm to Power8.
2016-07-30 00:14:22 +02:00
Frederich Munch
f59228426b
Fix writing files to source directory, write to build directory instead.
2016-07-22 12:44:12 +02:00
Axel Naumann
d9eea3590b
Add test for ROOT-8077.
2016-07-21 19:29:07 +02:00
Axel Naumann
d4e01536f8
Make it fail!
2016-07-21 17:44:08 +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
Axel Naumann
a26c3cf033
Try to fix test failure in Travis.
2016-07-14 14:14:15 +02:00
Axel Naumann
7e9a74f3e4
Remove remnants of llvm configure/make build system.
2016-07-13 17:16:13 +02:00
Axel Naumann
0ad3a09203
Cope with new diag notes
2016-07-12 10:44:20 +02:00
Vassil Vassilev
af2cded628
Add consistent to llvm and clang target name to run the testsuite.
2016-07-08 11:29:29 +02:00
Philippe Canal
a573e3340b
Add test of null pointer checking in function template
2016-06-30 03:14:17 +02:00
Axel Naumann
f9a8254617
Work around ROOT-8240.
2016-06-27 09:59:08 +02:00
Axel Naumann
1514d41841
Missing decl of printf.
2016-06-27 08:44:24 +02:00
Axel Naumann
fcb6aafd9e
Fix file name.
2016-06-27 00:14:05 +02:00
Axel Naumann
7e1ee6da3a
Add test for ROOT-7858.
2016-06-26 20:29:05 +02:00
Axel Naumann
e65d942ffa
Add test for ROOT-8036.
2016-06-26 20:14:04 +02:00
Axel Naumann
7b0276fcae
Remove platform-specific code (fails on Darwin), just use cannotCallWithNull.
2016-06-17 15:14:08 +02:00
Axel Naumann
f2326da23d
Remove XFAIL now that the JIT can handle exceptions (at least on darwin).
2016-06-15 15:10:51 +02:00
Axel Naumann
1091b41295
Port test/CodeUnloading to CMake. Less failures than before!
2016-06-15 14:14:34 +02:00
Axel Naumann
47a6a5f288
Add %llvmsrcdir replacement. Remove leading space (?!).
2016-06-15 14:14:34 +02:00
Axel Naumann
f32d1a9ec7
Simplify test - import of string literals is not supported.
2016-06-15 14:14:33 +02:00
Axel Naumann
752dcfbb54
Adapt test to new style of scope dumps
2016-06-15 14:14:33 +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
3c31044732
Do not rely on debug output. Fix code.
2016-03-30 12:44:14 +02:00
Axel Naumann
0d827a761a
Add test for ROOT-7837.
2016-03-04 21:29:05 +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
a8dcd932fe
Fix expected enum value printing (underlying type).
2016-02-04 18:14:08 +01:00
Danilo Piparo
c07e92e42d
Add test for empty tuple.
2016-02-04 15:29:16 +01:00
Axel Naumann
8621eb091a
Simplify regex; #includes; std::.
2016-02-02 20:59:04 +01:00
Danilo Piparo
90fe0e262e
Add to cling value printing capabilities for std::tuple and std::pair.
2016-02-02 12:59:25 +01:00
Axel Naumann
5587ae57e6
Test for ROOT-7918.
2016-01-31 21:29:07 +01:00
Axel Naumann
ba2d25f20a
No diags! Really do iter deref. User fwd decl.
2016-01-28 15:12:50 +01:00
CristinaCristescu
0329828fd8
Add tests for cling NullDeref.
...
If stmt testing and checking that the execution is stopped after
a null deref warning.
2016-01-28 15:12:50 +01:00
Axel Naumann
5fb064400f
Add test for ROOT-7426.
2016-01-28 15:12:50 +01:00
Axel Naumann
fd8be83d46
Revert unintentional add.
2016-01-14 20:59:08 +01:00
Elisavet Sakellari
e6487af04a
Forgot to remove commented code
2016-01-14 20:44:14 +01:00
Elisavet Sakellari
ef6320070f
Additional minor changes
2016-01-14 20:44:14 +01:00
Elisavet Sakellari
01a4526fc6
Edited test for Multiple Interps, and added some fixes
2016-01-14 20:44:14 +01:00
Elisavet Sakellari
4ac0a10a3e
Added test for MultipleInterpreters, and some changes.
2016-01-14 20:44:14 +01:00
Axel Naumann
abf65cb689
Typo.
2016-01-13 10:14:06 +01:00
Axel Naumann
62ea6ec80a
Do not rely on init_list intricacies.
2016-01-13 09:59:04 +01:00
Axel Naumann
1044052eed
Range-based for loop requires type for loop variable.
2016-01-13 09:59:04 +01:00
Axel Naumann
d60d4e76be
Two missing CMake vars for lit.cfg.
2016-01-12 12:27:43 +01:00