114 Commits

Author SHA1 Message Date
Axel Naumann
b266e2e5fc Implement first ".trace" command. From Viktor Khristenko! 2017-04-04 15:14:05 +02:00
Frederich Munch
165e7ea0b5 Fix collection printing for pairs, recursion, and std::vector<bool>. 2017-03-24 14:59:07 +01:00
Axel Naumann
7c1fbfcf9f Require ">" after ".5" to accept it as redirection (ROOT-8696). 2017-03-22 21:14:29 +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
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
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
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
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
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
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
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
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
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
6b06b7344b The "." is needed for lit to parse the regex; require 5*hex. 2016-07-30 21:14:15 +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
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