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 f1538c4f304f470b8e24c4fc55f5724264427397.
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