Commit Graph

76 Commits

Author SHA1 Message Date
Axel Naumann
925cdd2400 Update to git "version" (which currently is "$Id$"...) 2013-05-08 15:38:21 +02:00
Axel Naumann
9c6c792a8d dos2unix 2013-05-03 14:14:17 +02:00
Axel Naumann
56e2be3e6f Add library path.
git-svn-id: http://root.cern.ch/svn/root/trunk@49350 27541ba8-7e3a-0410-8455-c3a389f83636
2013-04-25 16:22:23 +00:00
Axel Naumann
70695fe2be Update to clang/llvm r179269 (llvm vendor branch r49215):
Parser::Scope versus Sema::DeclContext are now checked for cross-vailidity.
Emit the TU-transaction explicitly instead of relying on a first transaction.
The typename extraction now takes a stream instead of a string to write to.
The llvm::Linker has much reduced functionality; use llvm::sys::Path instead to find dynamic libraries.


git-svn-id: http://root.cern.ch/svn/root/trunk@49325 27541ba8-7e3a-0410-8455-c3a389f83636
2013-04-24 16:28:08 +00:00
Vassil Vassilev
fc0f602a9e Add more checks.
git-svn-id: http://root.cern.ch/svn/root/trunk@49319 27541ba8-7e3a-0410-8455-c3a389f83636
2013-04-24 15:01:35 +00:00
Vassil Vassilev
4a809957be Add test.
git-svn-id: http://root.cern.ch/svn/root/trunk@49316 27541ba8-7e3a-0410-8455-c3a389f83636
2013-04-24 13:12:08 +00:00
Vassil Vassilev
f65fafc648 Add test exposing weakness in LookupHelper::findFunctionProto
git-svn-id: http://root.cern.ch/svn/root/trunk@48909 27541ba8-7e3a-0410-8455-c3a389f83636
2013-03-20 15:22:51 +00:00
Vassil Vassilev
03cac10cfd Now we don't do execute("gCling = (cling::Interpreter*)some_ptr") at startup.
This cause the number of unique wrappers to decrease by 1. 

Fix the test correspondingly.


git-svn-id: http://root.cern.ch/svn/root/trunk@48854 27541ba8-7e3a-0410-8455-c3a389f83636
2013-03-09 20:12:35 +00:00
Vassil Vassilev
99dfb99f35 Do not print the address of the temporary value of an enum constants.
For example, when we have enum e {e1=1}; and we do e1 on the prompt we got the 
address of e1 and we printed it out. However, this doesn't make sence because we
cannot use it later, because it is destroyed.


git-svn-id: http://root.cern.ch/svn/root/trunk@48850 27541ba8-7e3a-0410-8455-c3a389f83636
2013-03-07 23:29:10 +00:00
Philippe Canal
ea36f5aa5d Attempt to fix the test on 32 bits platforms
git-svn-id: http://root.cern.ch/svn/root/trunk@48801 27541ba8-7e3a-0410-8455-c3a389f83636
2013-03-02 02:38:59 +00:00
Philippe Canal
5b7940b35d add more test with qualifications
git-svn-id: http://root.cern.ch/svn/root/trunk@48795 27541ba8-7e3a-0410-8455-c3a389f83636
2013-03-01 19:05:54 +00:00
Axel Naumann
451a0e5066 Dynamic lookup: replacing something in the condition doesn't mean that we should give up; there might be more to replace in the then / else parts.
Add a tests for that.
Fix involuntary test (using an undeclared printf) by fwd declaring printf.


git-svn-id: http://root.cern.ch/svn/root/trunk@48787 27541ba8-7e3a-0410-8455-c3a389f83636
2013-03-01 15:13:01 +00:00
Philippe Canal
6f8d8f8d71 Missed a spot in r48782
git-svn-id: http://root.cern.ch/svn/root/trunk@48784 27541ba8-7e3a-0410-8455-c3a389f83636
2013-03-01 12:29:22 +00:00
Philippe Canal
214fc4f963 We now are stripping the elaborated type so, no more :: prefix
git-svn-id: http://root.cern.ch/svn/root/trunk@48782 27541ba8-7e3a-0410-8455-c3a389f83636
2013-03-01 11:28:35 +00:00
Philippe Canal
e869ee0993 Add testing of the desugaring behavior of typdef inside std
git-svn-id: http://root.cern.ch/svn/root/trunk@48577 27541ba8-7e3a-0410-8455-c3a389f83636
2013-02-14 17:45:49 +00:00
Philippe Canal
a7f6d5c3c9 Finish 48510 SubstTemplateTypeParmType can indeed carry meaningfull qualifier (also add related test)
git-svn-id: http://root.cern.ch/svn/root/trunk@48549 27541ba8-7e3a-0410-8455-c3a389f83636
2013-02-12 18:38:58 +00:00
Philippe Canal
b218b89d4c In the partial desugaring add support for the case where we have a type that point to an already completely desugared template instantiation in which case the type is a RecordDecl rather than a TemplateInstantationType
git-svn-id: http://root.cern.ch/svn/root/trunk@48510 27541ba8-7e3a-0410-8455-c3a389f83636
2013-02-07 22:56:10 +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
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
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
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
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
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
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
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
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
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
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
Vassil Vassilev
1a07e07155 Add sane test case testing capital x.
git-svn-id: http://root.cern.ch/svn/root/trunk@47757 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 13:07:07 +00:00
Vassil Vassilev
810fd5f060 Make sure that we have proper case preventing such scenario as from today.
git-svn-id: http://root.cern.ch/svn/root/trunk@47754 27541ba8-7e3a-0410-8455-c3a389f83636
2012-12-01 01:14:53 +00:00
Vassil Vassilev
8cf9ab9121 Add test case for an item on my TODO list.
git-svn-id: http://root.cern.ch/svn/root/trunk@47516 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-21 01:15:58 +00:00
Axel Naumann
c197c04fb6 DiagConsumer::Begin/EndSourceFile() are used to switch from "parsing command line flags" to "parsing source files" more; not to signal a new source file to the diag client.
Switch BeginSourceFile() on after having parsed Interpreter internals.
Switch it off (EndSourceFile()) in ~Interpreter.
Indentation.

Now that we handle diags appropriately, test/ErrorRecovery/MetaProcessor.C fails; repair it.


git-svn-id: http://root.cern.ch/svn/root/trunk@47476 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-20 13:21:00 +00:00
Axel Naumann
1546d01ca3 Make test more verbose; fix directory for library.
git-svn-id: http://root.cern.ch/svn/root/trunk@47430 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-19 10:59:40 +00:00
Vassil Vassilev
9fce4384b9 Add test exposing the problem with the partial code generation.
git-svn-id: http://root.cern.ch/svn/root/trunk@47417 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-18 22:56:46 +00:00
Axel Naumann
10c0ac8711 Don't free all JITted functions, only those that are referencing an unresolved symbol.
Thus also no need anymore to collect all jitted functions through a function JIT listener.
Sadly, recompilation of them will pick up the existing stub instead of actually recompiling.
Don't use StringRef.data() where we need a 0-terminated string for FindFunctionNamed().
Be explicit about what symbol is triggering an unresolved symbol.
Update test suite.


git-svn-id: http://root.cern.ch/svn/root/trunk@47398 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-17 16:28:14 +00:00
Axel Naumann
47c2be1200 Handle ValuePrinting of char* 0 without crashing.
git-svn-id: http://root.cern.ch/svn/root/trunk@47378 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-16 20:25:34 +00:00
Axel Naumann
f0f33b18b4 Test array printing
git-svn-id: http://root.cern.ch/svn/root/trunk@47175 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-11 17:17:27 +00:00
Axel Naumann
bb0cacfb13 More rvalue-const removal
git-svn-id: http://root.cern.ch/svn/root/trunk@47173 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-11 16:38:14 +00:00
Axel Naumann
716729e5eb Don't append "const" for rvalues for increased CINT compatibility.
Might re-introduce later.


git-svn-id: http://root.cern.ch/svn/root/trunk@47171 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-11 16:15:35 +00:00
Axel Naumann
909bc42884 [5] now becomes * because we use the wrapper return type.
git-svn-id: http://root.cern.ch/svn/root/trunk@47170 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-11 16:13:02 +00:00
Axel Naumann
2f0d47e0b7 Teach the ValuePrinter to print arrays.
Accept that Value's type is not the last Expr's type (e.g. const char[5]) but whatever the wrapper returns, (e.g. const char*).
Print StoredValueRefs recursively.
Add mechanism to suppress newlines (improves readability for nested calls)


git-svn-id: http://root.cern.ch/svn/root/trunk@47169 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-11 16:05:30 +00:00
Axel Naumann
3b59fceed9 Test r47166:
return 12;
as alterative to
12;


git-svn-id: http://root.cern.ch/svn/root/trunk@47168 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-11 14:06:03 +00:00
Axel Naumann
0269fc8b08 Add test for r47002: ValuePrinting of function ptrs.
git-svn-id: http://root.cern.ch/svn/root/trunk@47003 27541ba8-7e3a-0410-8455-c3a389f83636
2012-11-02 13:40:27 +00:00
Vassil Vassilev
e5b8645bda Disable test for now.
Right now the issue is not that urgent. We will have to revisit and rethink the
test case.


git-svn-id: http://root.cern.ch/svn/root/trunk@46859 27541ba8-7e3a-0410-8455-c3a389f83636
2012-10-27 22:20:01 +00:00
Vassil Vassilev
d70f4b6173 Fix broken by construction test.
git-svn-id: http://root.cern.ch/svn/root/trunk@46858 27541ba8-7e3a-0410-8455-c3a389f83636
2012-10-27 21:42:00 +00:00
Vassil Vassilev
2908e7f9e4 Do not issue error in case: .x MyFile() - where no string is between the parenthesis.
git-svn-id: http://root.cern.ch/svn/root/trunk@46851 27541ba8-7e3a-0410-8455-c3a389f83636
2012-10-27 19:57:29 +00:00
Philippe Canal
d1f4b8c39e Add code and testing for classes declared inside an anymous namespace
git-svn-id: http://root.cern.ch/svn/root/trunk@46841 27541ba8-7e3a-0410-8455-c3a389f83636
2012-10-26 19:51:56 +00:00
Vassil Vassilev
4fd8ccc00d Rollback the transaction if there is an error occurred in one of the transformers.
git-svn-id: http://root.cern.ch/svn/root/trunk@46826 27541ba8-7e3a-0410-8455-c3a389f83636
2012-10-26 12:56:49 +00:00