Vassil Vassilev
1b25ec970f
Try to fix Fedora 17 and Windows.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48317 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-17 16:27:19 +00:00
Vassil Vassilev
1ae610b211
Fix savannah #99234 .
...
The issue we experienced is that we couldn't pipe the output in the terminal.
The reason is that we were using llvm::outs() which closes explicitly the file
descriptor (thanks Axel for the help debugging).
We introduce our custom stream, which keeps the file descriptor open so that
we can use it in pipes. For debugging purposes, however we use/should use llvm::errs()
The lesson learned:
DONT USE LLVM::OUTS() ANYMORE!
git-svn-id: http://root.cern.ch/svn/root/trunk@48316 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-17 15:27:14 +00:00
Vassil Vassilev
d98bece0ed
Implement .? (fixes savannah #99730 )
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48300 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-15 10:11:52 +00:00
Axel Naumann
17a0a2ce64
Check that the expression is indeed a DeclRefExpr.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48229 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-08 15:35:16 +00:00
Axel Naumann
e89020d590
Also print headers from modules - once we update clang as it doesn't exist yet in our revision...
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48228 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-08 15:34:40 +00:00
Axel Naumann
0a703cc12c
Move target-specific -D after the definition of the target!
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48223 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-08 08:23:09 +00:00
Axel Naumann
34e7fa0f67
Add missing cygwin arch defines as reported by Angelo Gaziosi. Will report to clang later, once we know that this works.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@48222 27541ba8-7e3a-0410-8455-c3a389f83636
2013-01-08 08:12:33 +00:00
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