summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Robustify callers that rebuild typename type nodes again NULL returnDouglas Gregor2010-03-071-0/+17
| | | | | | types. Fixes PR6463. llvm-svn: 97924
* Perform overload resolution when static_cast'ing from aDouglas Gregor2010-03-072-1/+25
| | | | | | | pointer-to-member-to-derived to a pointer-to-member-to-base. Fixes PR6072. llvm-svn: 97923
* Reference binding via user-defined conversion can compute a bindingDouglas Gregor2010-03-071-0/+20
| | | | | | | that is not reference-related (because it requires another implicit conversion to which we can find). Fixes PR6483. llvm-svn: 97922
* implement support for -Wno-deprecated, PR6534. WhileChris Lattner2010-03-072-38/+38
| | | | | | | I'm in there, change the altivec diagnostics to use 'double' instead of "double" for consistency. llvm-svn: 97919
* Fix for PR6294: we should only delay recording nested dynamic classes if theyEli Friedman2010-03-071-0/+13
| | | | | | | are lexically nested. Othewise, we never end up recording semantically nested classes. llvm-svn: 97900
* Don't turn off mangling in implicitly extern "C" system headers. GCCDouglas Gregor2010-03-071-0/+4
| | | | | | | | | doesn't do this on any of the major platforms, and we don't really support any of the platforms that do (nor will we actually handle those headers well). Fixes PR6217; see PR6530 for details on what we would need to do to support these platforms. llvm-svn: 97899
* Don't produce debug info when given -g. Fixes PR6529.Rafael Espindola2010-03-071-0/+5
| | | | llvm-svn: 97897
* Implement missing-braces warning and add a test case.Tanya Lattner2010-03-071-0/+3
| | | | llvm-svn: 97893
* PR6515: Implement __builtin_signbit and friends.Eli Friedman2010-03-061-0/+1
| | | | | | | I'm reasonably sure my implementation is correct, but it would be nice if someone could double-check. llvm-svn: 97864
* Allow use of byref (__block attributed) arrays insideFariborz Jahanian2010-03-061-1/+5
| | | | | | the block. Fixes radar 7671883. llvm-svn: 97863
* When declaring a catch block in C++, make sure that the type beingDouglas Gregor2010-03-051-0/+40
| | | | | | caught can be copy-initialized and destructed. Fixes PR6518. llvm-svn: 97853
* Augment __has_feature to report that Clang supports adding attribute 'unused'Ted Kremenek2010-03-051-1/+9
| | | | | | to an Objective-C instance variable. llvm-svn: 97850
* Patch to build qualifier on objective-cFariborz Jahanian2010-03-051-0/+5
| | | | | | pointer types. Fixes radar 7626768. llvm-svn: 97847
* Emit warning on indirect goto that potentially violates Chris Lattner2010-03-051-1/+1
| | | | | | scope instead of error, PR6517 llvm-svn: 97826
* address PR6502 by downgrading the scope checker's addressChris Lattner2010-03-051-1/+1
| | | | | | of label error to a warning controllable with a -W flag. llvm-svn: 97815
* Remove header file dependencies in block patchFariborz Jahanian2010-03-051-8/+4
| | | | | | test case. llvm-svn: 97777
* add support for a 1<<29 bit in the block flags field to mark blocks using ↵Blaine Garst2010-03-051-0/+110
| | | | | | alternate struct return ABI llvm-svn: 97775
* Make rewritten source compiled with clang++.Fariborz Jahanian2010-03-041-11/+2
| | | | llvm-svn: 97762
* Make rewritten source compiled with clang++ for correctness.Fariborz Jahanian2010-03-041-4/+2
| | | | llvm-svn: 97761
* Change test to compile rewritten test with clang++.Fariborz Jahanian2010-03-041-1/+2
| | | | llvm-svn: 97756
* really fix 6473 by handling weakref in constant expressions.Rafael Espindola2010-03-041-0/+8
| | | | llvm-svn: 97750
* c-index-test's printing of linkage was completely broken, as was theDouglas Gregor2010-03-041-5/+8
| | | | | | test of this functionality. The API worked great, though! :) llvm-svn: 97736
* Fixes a bug whereby static const block var has static Fariborz Jahanian2010-03-041-0/+11
| | | | | | moved incorrectly. (radar 7714443). llvm-svn: 97734
* Fix PR6473.Rafael Espindola2010-03-043-6/+108
| | | | | | | | | Clang's support for weakref is now better than llvm-gcc's :-) We don't introduce a new symbol and we correctly mark undefined references weak only if there is no definition or regular undefined references in the same file. llvm-svn: 97733
* Steal the TARGET lit condition from the LLVM test suite.John McCall2010-03-041-0/+12
| | | | llvm-svn: 97727
* When profiling Environment, also profile with AnalysisContext*, bacauseZhongxing Xu2010-03-041-0/+15
| | | | | | | | | | we now may have identical states with different analysis context. Set the right AnalysisContext in state when entering and leaving a callee. With both of the above changes, we can pass the test case. llvm-svn: 97724
* Revert changes r97693, r97700, and r97718.John McCall2010-03-049-23/+0
| | | | | | Our testing framework can't deal with disabled targets yet. llvm-svn: 97719
* XFAIL these tests on win32, since the win32 buildbot apparently disables allJohn McCall2010-03-048-0/+16
| | | | | | targets except X86. llvm-svn: 97718
* Fix __builtin_ia32_roundss and __builtin_ia32_roundsd definitions.Eric Christopher2010-03-041-2/+2
| | | | | | Re-enable test. llvm-svn: 97707
* Refactor local class name mangling and make itFariborz Jahanian2010-03-041-0/+27
| | | | | | ABI conforming. llvm-svn: 97702
* Implement __builtin_dwarf_sp_column().John McCall2010-03-041-0/+7
| | | | llvm-svn: 97700
* fix a buildbot failure, this was passing for me because the Chris Lattner2010-03-041-3/+7
| | | | | | '%t' file was left around on my disk. doh. llvm-svn: 97699
* Reinstate r97674 with a fix for the assertion that was firing in <list>Douglas Gregor2010-03-031-0/+63
| | | | llvm-svn: 97686
* Revert r97674; it's causing failuresDouglas Gregor2010-03-031-63/+0
| | | | llvm-svn: 97677
* Implement disambiguation of base class members via aDouglas Gregor2010-03-031-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | nested-name-specifier. For example, this allows member access in diamond-shaped hierarchies like: struct Base { void Foo(); int Member; }; struct D1 : public Base {}; struct D2 : public Base {}; struct Derived : public D1, public D2 { } void Test(Derived d) { d.Member = 17; // error: ambiguous cast from Derived to Base d.D1::Member = 17; // error: okay, modify D1's Base's Member } Fixes PR5820 and <rdar://problem/7535045>. Also, eliminate some redundancy between Sema::PerformObjectMemberConversion() and Sema::PerformObjectArgumentInitialization() -- the latter now calls the former. llvm-svn: 97674
* Fix code gen bug generating code forFariborz Jahanian2010-03-031-1/+17
| | | | | | ((id)cat)->isa. Fixes radar 7709015. llvm-svn: 97672
* merge asm-2.c into asm.c, remove asm-inout.c because it is Chris Lattner2010-03-033-28/+11
| | | | | | XFAIL and already tracked in bugzilla. llvm-svn: 97671
* fix PR6475, we were doing side-effecting stuff in an assert.Chris Lattner2010-03-031-1/+11
| | | | llvm-svn: 97669
* Implements mangling of local class names toFariborz Jahanian2010-03-031-0/+30
| | | | | | | | fix a code gen crash. This is WIP as not all ABI cases are covered (there is a FIXME to this effect). Fixes radar 7696748. llvm-svn: 97658
* add framework for ARM builtins, Patch by Edmund Grimley Evans!Chris Lattner2010-03-031-0/+6
| | | | llvm-svn: 97656
* Add '-test-print-linkage-source' option to c-index-testTed Kremenek2010-03-031-0/+23
| | | | | | to test clang_getCursorLinkage() llvm-svn: 97648
* Fix a bug with base offset merging that Devang noticed.Anders Carlsson2010-03-031-0/+58
| | | | llvm-svn: 97641
* Implement name hiding for names found through virtual base subobjectsDouglas Gregor2010-03-032-4/+44
| | | | | | | | that are hidden by other derived base subobjects reached along a lookup path that does *not* pass through the hiding subobject (C++ [class.member.lookup]p6). Fixes PR6462. llvm-svn: 97640
* Don't emit derived-to-base destructor aliases if we don't have a definitionJohn McCall2010-03-031-0/+14
| | | | | | | | for the base destructor, because aliases to declarations aren't legal. Fixes PR 6471. llvm-svn: 97637
* Add comments to test case.Zhongxing Xu2010-03-031-0/+2
| | | | llvm-svn: 97619
* Don't use echo in the Index test, which I hope will work around an ↵Douglas Gregor2010-03-032-2/+3
| | | | | | intermittent Windows failure llvm-svn: 97613
* Suppress implicit member redeclarations arising from explicit instantiationJohn McCall2010-03-021-0/+16
| | | | | | | | | | | | declarations after the member has been explicitly specialized. We already did this after explicit instantiation definitions; not doing it for declarations meant that subsequent definitions would see a previous member declaration with specialization kind "explicit instantiation decl", which would then happily get overridden. Fixes PR 6458. llvm-svn: 97605
* During codegen assert that any copy assignment, destructor or constructor thatRafael Espindola2010-03-022-6/+6
| | | | | | | | we need to synthesize has been marked as used by Sema. Change Sema to avoid these asserts. llvm-svn: 97589
* Add test case from PR6064, which now worksDouglas Gregor2010-03-021-0/+13
| | | | llvm-svn: 97575
* Diagnose the declaration of enum templates. Also, be a bit moreDouglas Gregor2010-03-021-0/+5
| | | | | | careful about value-dependent enumerators. Fixes PR5786. llvm-svn: 97570
OpenPOWER on IntegriCloud