Commit Graph

56 Commits

Author SHA1 Message Date
Axel Naumann
68ede76505 Remove fwddecl files; RUN: often fails. 2020-08-12 09:14:07 +02:00
Philippe Canal
7a5894d1b8 meta/cling: consistent casing for AutoLoading 2020-02-15 17:14:14 +01:00
Vassil Vassilev
c2bda52ba2 The test is expected to fail on cling standalone. 2018-03-11 17:14:05 +01:00
Vassil Vassilev
6eca8bd693 Revert "Silence cling test error until after the break."
This reverts commit 16b0a0b8bb2aa4415a9a40138b70406f4c2b6c20.

The error seems to be fixed but we forgot to update the test.
2018-03-08 22:44:15 +01:00
Axel Naumann
b302a6bcfe Silence cling test error until after the break. 2017-12-21 10:48:27 +01: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
Axel Naumann
4922050e9b Create lit feature for stand-alone / non-embedded cling and use it! 2017-05-11 16:44:31 +02:00
Frederich Munch
42971e42cd Lit: Add %mkdir, %rm, and %rmdir substitutions. 2017-02-21 16:34:19 +01:00
Bertrand Bellenot
fdf057e19a Cannot use tick as quote on Windows.' 2016-11-30 11:14:29 +01:00
Philippe Canal
39ea2ba5c2 Extent autoforwarding test with more include nesting case 2016-11-18 01:29:09 +01:00
Philippe Canal
d066ad6061 Add test of the case where the definition are indirectly included 2016-11-14 03:14:37 +01:00
Philippe Canal
1bd0822562 Test for ROOT-8443
Test clean-up of forward decl with or without template default parameter and user forward decl
also with or without template default parameter and located before or after the inclusion
of the annotated/dictionary forward decls.
2016-11-14 03:14:37 +01:00
Philippe Canal
6920d6d460 Add cling version of test for ROOT-7037 2016-11-14 03:14:37 +01:00
Axel Naumann
1ce8341b6d Add newline at end of file. 2016-09-27 10:29:55 +02:00
Vassil Vassilev
13687cd986 Mark as XFAIL until Axel fixes it. 2014-09-28 17:02:06 +02:00
Vassil Vassilev
122233ada6 Do not display suggestions only for ROOT. 2014-09-19 14:05:15 +02:00
Vassil Vassilev
dba2f39ff4 Print only annotate attr until type_visibility printing is fixed. 2014-09-15 14:12:06 +02:00
Vassil Vassilev
c0321e417e Test passes. 2014-09-04 11:03:05 +02:00
Vassil Vassilev
d303a43760 Add expected warning. 2014-09-03 12:03:03 +02:00
Vassil Vassilev
efa445eb72 Reenable test. 2014-08-23 15:05:01 +02:00
Vassil Vassilev
eda6bc1949 Improve and reenable test. 2014-08-21 17:26:02 +02:00
manasij7479
9b17f43f05 Enable callback in Interpreter, change test to use metacommand 2014-08-21 17:07:01 +02:00
Vassil Vassilev
cbdc92cedb Disable tests until the multiplexing interpreter callback comes. 2014-08-20 16:53:04 +02:00
manasij7479
282ce06530 Recheck if top level decl, workaround test problem by printing pass in a loop 2014-08-14 14:56:43 +02:00
manasij7479
3c260f9e4a New log file name format, and skip function templates with default function arguments 2014-08-14 14:56:43 +02:00
Vassil Vassilev
7238b2eb7b Autoloading is enabled by default. 2014-08-14 14:56:42 +02:00
manasij7479
7b99ddcfa1 Skip decls using names from defs like typedef struct {} structName 2014-08-14 14:56:40 +02:00
Vassil Vassilev
dd554c2d6e Use #include instead of real files.
If we use real files cling would .x them and run a function named after the file.
In our case it is missing and would issue useless warnings.
2014-08-14 14:56:40 +02:00
Vassil Vassilev
e0874ff6a4 Improve the STL test. Now we can reenable it. 2014-08-14 14:56:39 +02:00
manasij7479
38b773ad3e Simple test for Standard Library headers, and a few more workarounds 2014-08-14 14:56:38 +02:00
Vassil Vassilev
a3058bf045 Disable #inclusion of the generated fwd decl headers. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
14fecdd942 Try #include the generated files by separate instance. 2014-08-14 14:56:38 +02:00
Vassil Vassilev
ac4ab27781 Reduce the iteration to only STL (at least on Ubu is the first include path.) 2014-08-14 14:56:37 +02:00
Vassil Vassilev
bacc8b6f08 Remove debug printout. Run in verify mode. 2014-08-14 14:56:37 +02:00
Vassil Vassilev
0065df1842 Test the fwd decl generator with all headers in the include path. 2014-08-14 14:56:37 +02:00
Vassil Vassilev
03f4edd3c1 Do not print the inherited default arguments. 2014-08-14 14:56:36 +02:00
Vassil Vassilev
53d7da9b75 No need of undo anymore. 2014-08-14 14:56:35 +02:00
Vassil Vassilev
d8f6659dcc Improve support for enum redeclaration. 2014-08-14 14:56:35 +02:00
Philippe Canal
576ca3ca96 Remove trailing spaces 2014-08-13 16:08:36 +02:00
Vassil Vassilev
a833661f08 Fix failing test. 2014-07-25 13:18:01 +02:00
manasij7479
662262e3ac Rename SetAutoloadCallback to EnableAutoloading 2014-07-22 14:52:04 +02:00
manasij7479
03e5ef7668 Prevent printing non-fixed enums Remove skipping of system headers Also, do not print default template arguments if they do not have a name. 2014-07-22 14:52:04 +02:00
manasij7479
a812b2cd1d Added a function to attach the AutoloadCallback automatically 2014-07-22 14:52:03 +02:00
manasij7479
083ab88d81 Modified test to include a function with a default arg 2014-07-22 14:52:03 +02:00
manasij7479
e7a196dcbd Transformation-Callback Pipeline for Decls needing special handling (when defining after being forward declared.)
New state in Interpreter (AutoloadingStateInfo) containing a map.
AutoloadingTransform adapted to push required decls into this map.
AutoloadCallback adapted to be called when a file is included (but before being parsed)
(done by enabling PPCallbacks and overriding InclusionDirective method)
m_PPCallbacks changed from OwningPtr to a normal pointer as an workaround for double free bug.
Default template arguments as a POC example usage of this pileline.

Test:
AutoForwarding.C now passes because of this commit.

Extra:
Re-enabled the printing of class template default arguments when generating fwd declarations.
Forward declprinter now looks up the SourceManager for file name instead of directly printing the Argument.
2014-07-22 14:52:02 +02:00
manasij7479
2e3e929a41 Skip functions and vars with nested types and new failing enum tests 2014-07-22 14:52:02 +02:00
Vassil Vassilev
1fd7010509 Remove the XFAIL, the test doesn't fail anymore. 2014-06-24 11:26:57 +02:00
Manasij Mukherjee
f474d63079 Generation of forward declarations of top level decls in an input file.
Consists of:
  ForwardDeclPrinter, adapted from clang::DeclPrinter
  Interpterer::GenerateAutoloadingMap for invoking the functionality
  It has hardcoded checks to prevent ForwardDeclPrinter from visiting decls from
standard library files. This restriction will be lifted after the
issues specifyed in the tests are fixed.
  Test cases for code which FowrardDeclPrinter can not deal with properly
2014-06-23 14:37:03 +02:00
manasij7479
983abbe17b split out failing stl test 2014-06-10 15:24:01 +02:00
manasij7479
297d005617 other fixes 2014-06-10 15:24:01 +02:00