Axel Naumann
9f6e4d0ba0
Add test for "Also recognize templates as identifier."
2017-09-13 18:38:18 +02:00
Philippe Canal
f715135d1c
Don't clang-format cling test script.
...
Since the test script is not a fully compliant C++ file, clang-format can not
(be expected to) follow its unusual conventions/requirements.
2017-08-24 18:59:04 +02:00
Philippe Canal
6c368913e7
clang-format suggestion
2017-08-24 17:03:58 +02:00
Frederich Munch
38c4b902cf
Fix registration of other atexit functions during an atexit handler. Recursive registration of atexit handlers is legal and should be handled, not ignored.
2017-08-24 17:03:58 +02:00
Frederich Munch
fb2e8fc7a4
Fixes for CERN-LLVM.
2017-07-15 10:14:38 +02:00
Frederich Munch
eba5ccd09a
Update DeclCollectorPPAdapter to allow unloading of #undef command.
2017-07-15 10:14:38 +02:00
Roman Zulak
4a8d300bb1
When looking for the end of a block comment, really don’t bother with nesting. Finding the first end is good enough, the real parser can warn about any balancing issues.
2017-07-13 10:21:58 +02:00
Roman Zulak
6f5594ab4d
Fix block comments greedily looking for the next asterisk.
2017-07-13 10:21:58 +02:00
Bertrand Bellenot
8720965ee5
Dont pass -fPIC flag on Windows (unsupported option)
2017-07-06 16:59:40 +02:00
Bertrand Bellenot
5947e13cb9
Don't run Gnu.C test on Windows...
2017-07-06 16:44:06 +02:00
Frederich Munch
cdf5c72f1d
Fix tests on platforms with __float128 without forcing C++14.
...
This reverts commit c11224dce0
.
2017-07-05 10:00:05 +02:00
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