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
Vassil Vassilev
32751e08ff
Remove now redundant code.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47823 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 15:42:01 +00:00
Vassil Vassilev
ed96f22a74
Make use of the new patch in the vendor branch. Setting the TU to TU_Complete
...
will force generation of the vtables of referenced classes.
git-svn-id: http://root.cern.ch/svn/root/trunk@47821 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 15:22:10 +00:00
Vassil Vassilev
300466790f
Add correspoding patch ready to go in clang's mainline.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47820 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 15:21:06 +00:00
Axel Naumann
3f150a8d8b
Fix fwd decl for windows.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47814 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 12:46:01 +00:00
Vassil Vassilev
5e9a144766
Add default case and silence a warning.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47813 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 10:53:44 +00:00
Vassil Vassilev
68020403d7
Update cmake to compile the newly added files
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47812 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 10:41:56 +00:00
Vassil Vassilev
183115df4f
Remove redundant comment.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47810 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 09:45:17 +00:00
Axel Naumann
7fa822b411
Remove unused var.
...
Make const string static.
git-svn-id: http://root.cern.ch/svn/root/trunk@47809 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 09:37:11 +00:00
Axel Naumann
5b92bda924
Skip white space when determining whether input can be wrapped or not.
...
Fixes Savannah #99246
git-svn-id: http://root.cern.ch/svn/root/trunk@47806 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 08:54:16 +00:00
Axel Naumann
5ed01c266c
Add interface to cancel input continuation.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47803 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 08:05:33 +00:00
Axel Naumann
643a9c3284
Spelling.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47802 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-04 08:05:11 +00:00
Axel Naumann
36f406676f
Print source from memory buffer instead of AST dump if the code is available. Print file name / line number.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47797 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-03 21:20:53 +00:00
Vassil Vassilev
86243e4b95
Add support for exclamation point.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47792 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-03 16:42:06 +00:00
Vassil Vassilev
e5a6058db4
Add support for backslash
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47791 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-03 16:37:47 +00:00
Vassil Vassilev
ef8d4e85ba
Readd support (which we had long time ago) for tracking down which decl came from.
...
This "is meant" to help us generating the missing symbols in the llvm::Module.
git-svn-id: http://root.cern.ch/svn/root/trunk@47790 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-03 16:28:24 +00:00
Vassil Vassilev
33e420bb73
Typo in comment.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47788 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-03 14:28:21 +00:00
Vassil Vassilev
fdd88b8a47
Implement basic infrastruction to begin tracking down the interfaces from which the decls came.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47787 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-03 14:27:12 +00:00
Vassil Vassilev
8e84e50e2a
Lex properly identifiers (Allow numbers to occur in idents.)
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47783 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-03 08:34:39 +00:00
Vassil Vassilev
5ea5ea8351
Readd support for .g
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47781 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-02 20:14:02 +00:00
Vassil Vassilev
fd499a33b3
Ugly typo.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47780 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-02 19:31:08 +00:00
Vassil Vassilev
38a05dd1df
We don't need to add header search path for that particular test.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47779 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-02 19:25:49 +00:00
Vassil Vassilev
953819f92d
Remove redundant comment.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47777 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-02 19:05:24 +00:00
Vassil Vassilev
a530a63d15
Readd custom meta command support.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47776 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-02 19:01:02 +00:00
Axel Naumann
17884114d5
Add value printing of namespace- or static member functions (i.e. not CXXMethods):
...
root [0] TIterCategory<TList>::End
(class TIterCategory<class TList> (void)) Function @0x1086ff040:
static TIterCategory<TList> End() {
return TIterCategory<TList>(static_cast<TIterator *>(0));
}
root [1] printf
(int (const char *, ...)) Function @0x7fff946a6650:
int printf(const char *, ...) __attribute__((format("printf", 1, 2)))
root [2] TCollection::GetCurrentCollection
(class TCollection *(void)) Function @0x100b4cf90:
static TCollection *GetCurrentCollection()
root [3] TMath::Sin
(Double_t (Double_t)) Function @0x10ca2d9f0:
inline Double_t Sin(Double_t x) {
return sin(x);
}
Dump the decl (its definition, if available), which we cannot get from the type, instead put the Expr back into the ValuePrinterInfo and use its DeclRefExpr.
If we don't have one, then just dump the function type which is much less informative.
git-svn-id: http://root.cern.ch/svn/root/trunk@47775 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-02 16:47:34 +00:00
Philippe Canal
6fbf8745a2
Add minimal test of findClassTemplate
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47773 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-02 06:50:03 +00:00
Philippe Canal
0ecd2ced8c
Properly handle the qualifiers in the new desugaring code
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47772 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-02 01:56:59 +00:00
Philippe Canal
33293b1730
Properly handle the qualifiers in the new desugaring code
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47770 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 20:37:09 +00:00
Vassil Vassilev
7cf86a9898
Remove unused variable
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47769 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 18:56:53 +00:00
Philippe Canal
a834428d87
Add a couple of comment on elaboratedType
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47765 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 18:02:54 +00:00
Vassil Vassilev
d89c749b1f
.x is alias of .X
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47764 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 16:48:33 +00:00
Vassil Vassilev
d2c7012d6e
Documentation.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47763 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 14:30:31 +00:00
Vassil Vassilev
e6b1a83e6a
Use small caps for method names.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47762 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 14:07:57 +00:00
Vassil Vassilev
a189526360
Cling/LLVM style Include order.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47761 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 14:04:29 +00:00
Vassil Vassilev
d5d88ab9df
Timur.
...
git-svn-id: http://root.cern.ch/svn/root/trunk@47760 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 14:00:22 +00:00