Commit Graph

226 Commits

Author SHA1 Message Date
Vassil Vassilev
d1a416ddc0 When variadic return stmt doesn't have a return value, invalidate the calculation of the last expr for evaluation.
In the same cases we still need to synthesize the setValueNoAlloc, to initialize
the cling::Value to void.
2014-04-04 09:42:07 +02:00
Vassil Vassilev
c868ddfd49 In cases of cling::Value reuse we need to update its settings even if we evaluated void expression. 2014-04-02 16:56:58 +02:00
Axel Naumann
d00d9e8d54 Simplify; adapt to new Value. 2014-04-01 18:31:58 +02:00
Vassil Vassilev
234bfb7770 Simplify some of the changes due to the new diag mapping. 2014-04-01 17:09:58 +02:00
Vassil Vassilev
ab58d03cba Add known failures section. 2014-03-31 16:53:55 +02:00
Vassil Vassilev
8b485436fb Preprocess the file before looking for expected-error substrings. This helps in tests which have multiple RUN lines and define a macro in them. 2014-03-31 16:53:55 +02:00
Axel Naumann
bbf4a3588f Update to XCode 5.1; e.g. ignore type of std::string::c_str(). 2014-03-31 15:15:57 +02:00
Vassil Vassilev
68221520fc Silence a warning. 2014-03-31 14:03:09 +02:00
Vassil Vassilev
14dc0c1c99 Silence a warning. 2014-03-31 14:03:09 +02:00
Vassil Vassilev
666437108e Replace .U with .undo 2014-03-31 14:03:09 +02:00
Vassil Vassilev
40195aa864 Cosmetics. 2014-03-31 14:03:06 +02:00
Vassil Vassilev
d7d4674f4e Increase verbosity of the output 2014-03-31 14:03:05 +02:00
Vassil Vassilev
2f9ba97a53 We need internal isystem. 2014-03-31 14:03:05 +02:00
Vassil Vassilev
0210c101f4 Escape -x flags passed in as invocation. 2014-03-31 14:03:03 +02:00
Vassil Vassilev
c65f5bbba6 Use proper regexp 2014-03-27 11:18:57 +01:00
Vassil Vassilev
9af7ee2640 Actual optional regex syntax. 2014-03-24 15:26:56 +01:00
Vassil Vassilev
80a0e1e56e C++11 noexcept op. 2014-03-24 14:25:58 +01:00
Vassil Vassilev
c6544c49f9 Update test. 2014-03-24 14:25:57 +01:00
Philippe Canal
93ce42bdc3 Preliminary support for template alias.
GetPartiallyDesaguredType now desugar template alias
but does not yet properly propagate the opaque typedef
and thus:

  template <typename T> using myvector = std::vector<T>;
  myvector<Double32_t> vd32d;

  template<class T> using ptr = T*;
  ptr<Double32_t> p3;

Both currently result in the Double32_t being ignored.
2014-03-21 16:57:07 +01:00
Philippe Canal
45895aec23 No longer hide the compiler detail.
The partial desugaring (part of normalization) now strips a typedef
even when it original from std and points to compiler details (__gnu_cxx, etc.).

The cost of this convenience was the fact the same entity could have different
'name' and thus different class even-though they were supposed to be strictly
equivalent. i.e. depending on the way to get to the class it could be name
vector<int*>::iterator or __gnu_cxx::iterator<int*> or std::iterator<int*>.

This different from the case where we have a strictly bidirectional equivalent
between the class and its unique typedef (yes, we are talking about you std::string).

This also different from the case where there is a semantic difference between
the two possible name.  I.e. where an opaque typedef is used.  For example,
vector<Double32_t> and vector<double> and where the 'way' to get to the type[name]
is relevant.
2014-03-21 16:57:07 +01:00
Axel Naumann
2699d27626 Add test for ROOT-6124. 2014-03-18 09:12:02 +01:00
Axel Naumann
73a285d69a Add tests for ROOT-6137. 2014-03-14 17:31:02 +01:00
Vassil Vassilev
b9a4d063d1 Reduce the noise in compareState. 2014-03-14 10:52:29 +01:00
Vassil Vassilev
f6f4c707d4 Add a dead code removal pass. The test is expected to succeed now.
Removing a GlobalValue from the module might make other values (referenced only
by the one being removed) available for removal. Those should go as well. The
initial implementation is a bit greedy - it removes more: i.e dtors because they
are not referenced (because IncrementalExecutor takes care of them in an custom
way)
2014-03-14 10:52:29 +01:00
Axel Naumann
ed1069786f Improve version string; adapt test. 2014-03-05 09:46:09 +01:00
Axel Naumann
e784149c9b Update tests to new clang output. 2014-03-03 19:11:05 +01:00
Axel Naumann
40be9385f3 From Cristina: tests redirection. 2014-03-02 19:45:00 +01:00
Vassil Vassilev
c66118f2e2 Make the test xfailing because we don't handle .str removal and deferred decls removal. 2014-02-27 12:49:13 +01:00
Vassil Vassilev
150231c357 Run only dtors of the unloaded entities. 2014-02-27 12:49:11 +01:00
Axel Naumann
574b7751f9 Test the behavior of the ValueExtractionSythesizer for objects.
Still missing: arrays incl arrays of objects.
2014-02-26 09:22:05 +01:00
Axel Naumann
9c73790d79 Test decl extraction of const enum.
And uncover a new bug: k2 is not visible, now ROOT-6095.
2014-02-19 15:59:01 +01:00
Axel Naumann
efa8f37cd4 long double has "L" suffix. 2014-02-19 15:34:56 +01:00
Vassil Vassilev
02a9f05fe0 Follow the change ExecutionContext -> IncrementalExecutor. 2014-02-19 15:01:03 +01:00
Axel Naumann
c78aa3b7fb Test value printing of a long double. 2014-02-19 14:55:00 +01:00
Axel Naumann
6b3e713217 Test evaluation of long double. 2014-02-19 14:55:00 +01:00
Vassil Vassilev
e92088a41e If RHS is dependent - skip value extraction. Add a testcase for auto vars. 2014-02-19 14:22:58 +01:00
Axel Naumann
2a58b82ebe Update tests to new interfaces. 2014-02-19 12:55:00 +01:00
Vassil Vassilev
9749af417c The test should be run on 32 bit finally. 2014-02-18 17:22:59 +01:00
Vassil Vassilev
460b8b43b1 We have more accurate results so adjust the test. 2014-02-18 17:22:59 +01:00
Vassil Vassilev
980a1813cf typo. 2014-02-18 17:22:59 +01:00
Vassil Vassilev
c963d9f520 Add var returns test case. 2014-02-18 17:22:58 +01:00
CristinaCristescu
0b3a2d5ef0 Correct comment. 2014-02-18 17:08:57 +01:00
CristinaCristescu
7605c85f5c Fix Cling Regression test. 2014-02-18 17:08:57 +01:00
Axel Naumann
fae0d4037f Follow changes in llvm/clang. 2014-02-18 08:29:38 +01:00
Vassil Vassilev
f34076fffc Send the output of grep to /dev/null 2014-02-12 11:00:59 +01:00
Vassil Vassilev
da37422d23 Ignore -o -, this is by default what we do in cling 2014-02-12 11:00:59 +01:00
Vassil Vassilev
04304014ca Run clang with -print-file-name=include, seems that is needed by clang's testsuite. 2014-02-12 11:00:59 +01:00
Vassil Vassilev
5933b67862 Improve debugging look and feel. 2014-02-10 11:20:55 +01:00
CristinaCristescu
091a2aabaf Add correct test for unanamed decls for cling. 2014-02-07 23:12:58 +01:00
CristinaCristescu
aadc2db22c Add test for unnamed decls for cling. 2014-02-07 23:12:58 +01:00