Commit Graph

2066 Commits

Author SHA1 Message Date
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
Philippe Canal
6bc1db9883 Add error message in case the decl is not a class or does not have definition
git-svn-id: http://root.cern.ch/svn/root/trunk@47870 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 05:15:07 +00:00
Philippe Canal
498f1d913b Revert -r47806 which had negative consequences (failing to handle properly #ifdef at the beginning of an unnamed script and making it much harder to update roottest to work around missing feature in cling)
git-svn-id: http://root.cern.ch/svn/root/trunk@47869 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-06 04:43:49 +00:00
Timur Pocheptsov
6a649ea5f4 'Class-name' can contain spaces, like in 'std::vector<int, std::allocator<int> >'
git-svn-id: http://root.cern.ch/svn/root/trunk@47862 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 16:36:42 +00:00
Timur Pocheptsov
964bde36f1 Print diagnostic, if class was not found.
git-svn-id: http://root.cern.ch/svn/root/trunk@47859 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 16:09:15 +00:00
Timur Pocheptsov
76e614c8ee Initial version of '.typedef' command.
git-svn-id: http://root.cern.ch/svn/root/trunk@47856 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 15:44:04 +00:00
Vassil Vassilev
add2016128 Silence -Wcovered-switch-default
git-svn-id: http://root.cern.ch/svn/root/trunk@47853 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 14:50:00 +00:00
Timur Pocheptsov
77e5b37f8c Oops, remove an assert.
git-svn-id: http://root.cern.ch/svn/root/trunk@47852 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 13:23:12 +00:00
Timur Pocheptsov
4bae258b78 Support for 'typedef' command.
git-svn-id: http://root.cern.ch/svn/root/trunk@47851 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 13:20:58 +00:00
Axel Naumann
dac8f76e3e Showcase https://savannah.cern.ch/bugs/index.php?99210
and likely also https://savannah.cern.ch/bugs/?99234
Use a test case where RAII is enforced and copying is not an option (instance count).


git-svn-id: http://root.cern.ch/svn/root/trunk@47847 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 11:12:52 +00:00
Vassil Vassilev
8dc005bc10 Ignore warning for use of auto keyword.
git-svn-id: http://root.cern.ch/svn/root/trunk@47845 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 10:04:42 +00:00
Vassil Vassilev
1c073c84c6 Doxygen.
git-svn-id: http://root.cern.ch/svn/root/trunk@47841 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-05 09:46:28 +00:00
Vassil Vassilev
ce6051db36 Copy-pasto
git-svn-id: http://root.cern.ch/svn/root/trunk@47829 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 17:13:14 +00:00
Vassil Vassilev
63492a7a1b We use kCCINone internally as delimiter in the Transaction
git-svn-id: http://root.cern.ch/svn/root/trunk@47828 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 17:12:21 +00:00
Vassil Vassilev
8a46f33881 80.
git-svn-id: http://root.cern.ch/svn/root/trunk@47826 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 16:23:30 +00:00
Vassil Vassilev
8040f69fc3 Fix the test. In that particular case in ReturnSynthesizer we check whether the
type is trivially copiable and cling::StoredValueRef is not.
We could check for a copy ctor (which is defined in that type), however, that is
not important at the moment. We can readd that logic on use-case.


git-svn-id: http://root.cern.ch/svn/root/trunk@47825 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 16:10:48 +00:00
Vassil Vassilev
8910e774e6 Still expected to fail (unfortunatelly)
git-svn-id: http://root.cern.ch/svn/root/trunk@47824 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 15:43:55 +00:00