Commit Graph

1891 Commits

Author SHA1 Message Date
Vassil Vassilev
37f64ff956 Typo. 2014-05-19 16:27:54 +02:00
Vassil Vassilev
2b9860162e Typo. 2014-05-19 16:27:54 +02:00
Vassil Vassilev
7ae23a4831 Disable C specific code, it needs more work in order to make the value printing in C work. 2014-05-19 16:27:54 +02:00
Vassil Vassilev
729d8da586 Inconsistently to named macros with return stmts we don't print the result of unnamed macros. 2014-05-19 16:05:57 +02:00
Vassil Vassilev
e5a04f9375 Expand 'properly' VPAuto into whatever the value printer synthesizer desided to do. 2014-05-19 16:05:57 +02:00
Vassil Vassilev
5deb236214 Dump only if value printing was enabled. Add assertion. 2014-05-19 16:05:57 +02:00
Vassil Vassilev
68d86e2537 Add proper assert. 2014-05-19 16:05:57 +02:00
Vassil Vassilev
58b76265fa Forget about ValuePrinterInfo. 2014-05-18 20:45:56 +02:00
Vassil Vassilev
711e39e092 Pass in the transaction ptr, whoose value we print out. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
5bdf863d5f Do not dump for void, resetting the value of the value. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
5167e8f992 Improve the C version of the value printing. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
e1367a1f17 Add a simple overload candidate selector. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
74ad676363 Allow handling of ptr types by the non-specialized version. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
10259542d2 Add some future reference for the C runtime. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
9b5c844b9b Change the wrapper signature to take a void* (useful for the C mode) 2014-05-18 18:08:59 +02:00
Vassil Vassilev
46636a18d3 No need to pass the interpreter. We have it. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
28de2c1cc2 No need to pass in the ASTContext, we have it. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
47a0d9e5e8 No need of complex indirections and 'fancy' function signatures. Simplify. 2014-05-18 18:08:59 +02:00
Vassil Vassilev
3dc52b1e5f No need of 'public' StreamClingValue. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
96be4e98c5 Remove dangling comment. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
3e5af816aa No need to synthesize anything anymore. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
3dfc56637b Get rid of redundant class. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
c86fbc27b9 Rewire the dumping on cling::Value to its new implementation.
Dump cling::Value within setNoAlloc routines because this is its lifespan,
otherwise gets deleted if nobody requested it. I.e it was created only for
value printing purposes.

Dump cling::Value outside setWithAlloc because the actual value is not put inside
until the call to ::new finishes, thus we need to do it outside, i.e in EvaluateInternal.

Switch on the ValueExtraction synthesizer even when 'just' value printing. We
depend on it. Must be factored out properly in one class.

Stop attaching the value printing template magic, which didn't work in some cases.

Update the ref file, because now there is better type information.

Adapt the user-defined printout functions (TDatime).
2014-05-18 18:08:58 +02:00
Vassil Vassilev
245f098fe1 Record the outcome of VPAuto (auto detection if a value should be printed out). 2014-05-18 18:08:58 +02:00
Vassil Vassilev
214376a899 Implement cling::Value dump as a 'static' operation.
We need to look for a user overload of cling::printValue and printType and give
the control to it. If not specified, fallback into the default implementation.
2014-05-18 18:08:58 +02:00
Vassil Vassilev
e587158b03 Add the Interpreter* to the cling::Value. We can afford it, because its actual size is 24 and it anyway gets aligned to 32 (except on a few old washing machines). 2014-05-18 18:08:58 +02:00
Vassil Vassilev
7b18586fa9 Extend the lifetime of the temporaries up to the function call using them.
Results in move of ExprWithCleanups, which is responsible for the lifetime
of the temporaries.
2014-05-18 18:08:58 +02:00
Vassil Vassilev
b9cc758195 Allow simplisticCastAs to work on ptr types. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
ca50db4ec7 Remove the const so that the proper overload can be picked up. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
39f42b02cd Instead of passing the Expr*, which is being value printed, pass the Interpreter* and deduce the expr. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
cb29e6e529 Add printing utility functions to the cling::Value. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
db0c7200db Use the short more meaningful function. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
9b009e02a6 Hide codegen from external users. 2014-05-18 18:08:58 +02:00
Vassil Vassilev
250dbcf655 Collapse the tests into one. 2014-05-18 18:08:58 +02:00
Fons Rademakers
bb72260cfc Changes related to the use of gendered or binary language in the code.
The changes are all related to the use of gendered or binary language in
the comments, messages, and documents (e.g. referring to the user explicitly
as "he" or "he/she").  I searched for thse instances and changed them to
the gender-neutral singular they (http://en.wikipedia.org/wiki/Singular_they).
In the process I fixed quite a few typos that would show up in the
auto-generated documentation.

By Jean-François Caron jfcaron@phas.ubc.ca).
2014-05-17 15:04:59 +02:00
Axel Naumann
0a0a1d6cbd Fix doxygen. 2014-05-16 18:35:58 +02:00
Axel Naumann
b29245024c Ignore #line directives in ShouldWrapInput(). 2014-05-15 17:53:03 +02:00
Anirudha Bose
7658828d0d Fix wrong path of VERSION in Makefile 2014-05-15 13:51:55 +02:00
Pere Mato
8d43694e85 Another attempt for CLING_VERSION with proper scape characters (CMake) 2014-05-14 15:39:01 +02:00
Axel Naumann
4dfe5ee75a Make interpreter available to callbacks. 2014-05-14 15:32:58 +02:00
Axel Naumann
af66248191 Accessor to current transaction, useful e.g. for callbacks. 2014-05-14 15:32:58 +02:00
Philippe Canal
f7aaac2c07 Avoid the risk of type creation if we can 2014-05-14 09:03:56 +02:00
Philippe Canal
d1e545b60d In Partial desugar add support for array type 2014-05-14 09:03:56 +02:00
Pere Mato
45635cf4a2 Pass the CLING_VERSION as compiler flag and remove it from cling_compiledata.h file 2014-05-13 16:47:56 +02:00
Bertrand Bellenot
709f085345 Pass the CLING_VERSION as compiler flag 2014-05-13 15:41:10 +02:00
Vassil Vassilev
575bf01e31 Use debian style version naming. 2014-05-11 18:27:58 +02:00
Vassil Vassilev
a1c9e12809 Remove old code and dir. 2014-05-09 22:59:55 +02:00
Vassil Vassilev
cefb472b5f Update the test to more generically 'detect' the version. 2014-05-09 15:28:06 +02:00
Vassil Vassilev
764f126c70 Simplify. 2014-05-09 15:28:06 +02:00
Vassil Vassilev
7ce34cdf3c Propagate the version to the executable code. 2014-05-09 15:28:06 +02:00