Axel Naumann
22d7530121
From Pere: disable cling/lib/textinput for ROOT.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48221 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-08 07:58:06 +00:00
Philippe Canal
444ffb02a8
Now that we sometimes desugar things directly in std, we need to explicitly not desugar std::string
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48208 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-06 17:06:31 +00:00
Philippe Canal
3eeaa60dce
For backward compatibility with CINT accept (for now?) a trailing close parenthesis in the list of arguments
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48207 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-06 05:53:26 +00:00
Philippe Canal
101602fb42
Only keep the typedef that are within a class or namespace insidehe std namespace (that way we do desugar std::size_t).
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48201 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-04 17:26:48 +00:00
Axel Naumann
fcad3e9e4d
Silence unused var warning.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48198 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-31 13:29:19 +00:00
Philippe Canal
90d940fbb8
Introduce (and use in TCling) Interpreter::parseForModule that codegen just
...
inline functions (and should codegen anything that is not directly provide
by a library 'described' by a module).
git-svn-id: http://root.cern.ch/svn/root/trunk@48197 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-25 04:57:07 +00:00
Vassil Vassilev
bc4f022fd8
Remove spurious comment
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48125 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-19 13:51:19 +00:00
Vassil Vassilev
a81a028269
Add simpler testcase. The test is marked as XFAIL because of another bug.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48121 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-19 10:59:04 +00:00
Vassil Vassilev
84fc5f77d4
Fix the order of static initialization in cling (eg: int i = 1; i++; int j =i;)
...
Fixes Savannah #99210 and closes the season for me.
Happy holidays!
git-svn-id: http://root.cern.ch/svn/root/trunk@48120 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-19 10:56:30 +00:00
Vassil Vassilev
833d4de40b
Another try to fix the warning unused return result of system.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48119 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-19 09:56:37 +00:00
Paul Russo
b5ec57da5b
Turn off the codegen option CXXCtorDtorAliases for the
...
jit. This prevents codegen from implementing a complete
constructor by using a linker alias to the base constructor,
instead it emits the function itself. This prevents the
jit from crashing on simple code.
git-svn-id: http://root.cern.ch/svn/root/trunk@48053 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-14 22:23:19 +00:00
Vassil Vassilev
d107bd91ea
Remove newline.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48042 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-14 11:40:52 +00:00
Fons Rademakers
fc0d43ea2e
From Pere:
...
changes needed from introduction of cling and removal of cint.
There are still some problems, that will be fixed asap.
git-svn-id: http://root.cern.ch/svn/root/trunk@48027 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-13 17:22:52 +00:00
Axel Naumann
adaba0a9b4
Silence "result unused" warning.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48010 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-13 13:29:34 +00:00
Philippe Canal
c5bbf1c9a1
The input passed to MetaProcessor's InputValidator::validate can have multiple line (for example being a script\!) and so we need to skip the comment only until the end of the end of the line
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47993 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-13 04:38:00 +00:00
Axel Naumann
c759ab29ed
Add two missing ASTConsumer interfaces to the DeclCollector.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47986 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-12 08:08:56 +00:00
Vassil Vassilev
d8d127664d
Until we have the full implementation of the preprocessor directives just act
...
on #include. This makes sure that we don't do any extra work causing roottest
failures.
git-svn-id: http://root.cern.ch/svn/root/trunk@47972 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-11 14:43:40 +00:00
Philippe Canal
40895f8595
Better version of the output
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47965 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-11 10:41:56 +00:00
Timur Pocheptsov
f4b4c78748
.! is back, fix .typedef to process sequence of tokens, containing white-space characters.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47962 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-11 09:19:50 +00:00
Philippe Canal
d267a7e10e
In the GetPartiallyDesugaredType, properly handle the case where the input is partially qualified (input: B::C and the ouput needs to be A::B::C ; i.e. properly handle ElaboratedType as input). Also properly strip the typedef from any of the scopes (A::vecint::iterator -> std::vector<int>::iterator). Add the corresponding test
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47958 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-11 08:26:00 +00:00
Philippe Canal
cbc0713c9e
Document new parameter of findScope
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47948 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-10 13:40:57 +00:00
Vassil Vassilev
242e1feb89
Using directive decls must not be added in the scope chains. Fixes second part
...
of savannah #99294
git-svn-id: http://root.cern.ch/svn/root/trunk@47947 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-10 13:07:18 +00:00
Vassil Vassilev
b117bb49de
Implement simple preparse of input lines. In many cases this helps to take
...
quickly decisions what to do with the input. Partially fixes savannah #99294
git-svn-id: http://root.cern.ch/svn/root/trunk@47941 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-10 11:17:43 +00:00
Philippe Canal
5e19abebbb
humm .. the message was not so much the problem but rather the 'unbalanced' fixing. Yet another minor patch around the current unnamed script detection to make it go a bit further ...
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47938 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-09 10:07:41 +00:00
Philippe Canal
6a56db4741
Disable error/warning message that is often wrongly issued (whenever an unamed macro has text after the closing })
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47936 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-09 06:44:59 +00:00
Philippe Canal
c7b6bc94ce
In findScope, give the user the choice on whether the class template are instantiated or not
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47934 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-09 01:51:25 +00:00
Vassil Vassilev
c9169f2f3d
Don't try to extract out the using directives onto the global scope.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47917 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-07 13:20:45 +00:00
Vassil Vassilev
20f9431b19
Use the stored value in MP;
...
Invoke process instead of it's shortcuts. Should fix savannah #98725
git-svn-id: http://root.cern.ch/svn/root/trunk@47916 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-07 13:04:19 +00:00
Vassil Vassilev
dc5e70e317
Store the last value that was returned from execution.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47915 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-07 13:02:06 +00:00
Vassil Vassilev
f03f6ab2cc
Add real assertion.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47900 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 19:17:32 +00:00
Philippe Canal
b5ccfdfe18
Fully desugar the typedef underlying type
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47895 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 17:08:19 +00:00
Axel Naumann
979efbde76
Update doc.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47894 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 14:50:38 +00:00
Vassil Vassilev
83331c8cfa
Update docs.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47891 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 11:49:53 +00:00
Vassil Vassilev
c97b8bd3c7
Remove redundant includes and forward declarations.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47890 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 11:49:14 +00:00
Vassil Vassilev
9881b59a06
Get rid of meta processor options and various improvements.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47889 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 11:47:24 +00:00
Vassil Vassilev
e846d218bb
Initialize the newly introduced flag.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47888 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 11:36:29 +00:00
Vassil Vassilev
ba6e233003
Unused var.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47886 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:54:52 +00:00
Vassil Vassilev
ad0cfca9a6
Get rid of another use of meta processor option.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47885 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:52:01 +00:00
Vassil Vassilev
b6020d1e60
const
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47884 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:48:12 +00:00
Vassil Vassilev
5fe903da79
Don't rely on MP options we have support for rawInput in the interpreter through cling::Interpreter::process
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47883 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:40:20 +00:00
Vassil Vassilev
5b995b50d1
Add accessor for the interpreter.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47882 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:39:27 +00:00
Vassil Vassilev
b4ae9af6f1
RawInput mode has proven itself to be very helpful. We should have support for it
...
on Interpreter level and not at MetaProcessor level.
git-svn-id: http://root.cern.ch/svn/root/trunk@47881 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:38:56 +00:00
Vassil Vassilev
096a0647c2
No need of dynamic lookup as meta processor option.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47880 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:20:15 +00:00
Vassil Vassilev
9b237493fe
MetaProcessor Options must go away. This is one step towards it.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47879 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:18:35 +00:00
Vassil Vassilev
7717eb911f
Cleanup.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47878 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:15:38 +00:00
Vassil Vassilev
1f8fc62305
Remove unused code
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47877 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 10:11:25 +00:00
Vassil Vassilev
fc6f865dfb
Use contemporary cling coding style :)
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47876 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 09:54:20 +00:00
Vassil Vassilev
fda024151f
Remove redundant unclude.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47875 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 09:46:23 +00:00
Paul Russo
aa524c6ad7
Fix typo introduced by revision 46455.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47872 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 07:22:16 +00:00
Philippe Canal
8b517ca71f
We need to the typedef type printed fully qualified which typdefDecl::print does not seem to be able to do. Add a couple of missing header lines
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47871 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 06:57:39 +00:00