703 Commits

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