435 Commits

Author SHA1 Message Date
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