summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* fix buildbot failure on windows by slightly trimming test output to ignore ↵Blaine Garst2010-02-231-2/+2
| | | | | | temporary name llvm-svn: 96998
* Add support for the weakref attribute. We still produce "alias weak" as ↵Rafael Espindola2010-02-232-0/+37
| | | | | | llvm-gcc does, but are more strict on what uses of weakref we accept. llvm-svn: 96992
* Unconditionally support block introspection data in a new field at the endBlaine Garst2010-02-231-0/+94
| | | | | | | | | | | | | | | of the block descriptor field. This field is the ObjC style @encode signature of the implementation function, and was to this point conditionally provided in the block literal data structure. That provisional support is removed. Additionally, eliminate unused enumerations for the block literal flags field. The first shipping ABI unconditionally set (1<<29) but this bit is unused by the runtime, so the second ABI will unconditionally have (1<<30) set so that the runtime can in fact distinguish whether the additional data is present or not. llvm-svn: 96989
* Fixes a rewriting of qualified-id type which exposed a biggerFariborz Jahanian2010-02-231-0/+21
| | | | | | rewriting problem. Fixes radar 7680953. llvm-svn: 96987
* Dead emit dead store warnings when assigning nil to an ObjC objectTed Kremenek2010-02-231-0/+7
| | | | | | | pointer (for defensive programming). This matches the behavior with assigning NULL to a regular pointer. Fixes <rdar://problem/7631278>. llvm-svn: 96985
* Fix another crash on invalid code. In this case, handle ObjC categories ↵Ted Kremenek2010-02-231-0/+4
| | | | | | | | (with no names) that refer to an undefined class. llvm-svn: 96976
* Don't assert on compound assignment operators that operate in FP types whenJohn McCall2010-02-231-0/+8
| | | | | | the result is integral. Fixes <rdar://problem/7676608>. llvm-svn: 96970
* A test case for property synthesis using ivar in class extensions.Fariborz Jahanian2010-02-231-0/+36
| | | | llvm-svn: 96968
* PR6400: Handle an extreme edge case in mangling correctly.Eli Friedman2010-02-231-0/+6
| | | | llvm-svn: 96961
* PR6386: Fix a recent regression in IRGen of cast-to-union constructs.Eli Friedman2010-02-231-0/+12
| | | | llvm-svn: 96958
* Retain attributes for K&R style parameter declarations.Richard Pennington2010-02-231-0/+11
| | | | llvm-svn: 96941
* Add test case for <rdar://problem/7242010>, which appears to have been fixedTed Kremenek2010-02-231-0/+21
| | | | | | | in the recent changes to RegionStore::InvalidateRegions(). Note that we are still not yet modeling 'memcpy()' explicitly. llvm-svn: 96902
* When comparing two calling conventions after redeclaring a function, compareCharles Davis2010-02-231-0/+4
| | | | | | | the canonical calling conventions instead of comparing the raw calling conventions directly. Fixes PR6361. llvm-svn: 96895
* When a reference to a field of a struct/union/class is passed to theCharles Davis2010-02-231-0/+6
| | | | | | | __alignof__ operator, make sure to take into account the packed alignment of the struct/union/class itself. Matches GCC's behavior and fixes PR6362. llvm-svn: 96884
* More fixes. Don't try to emit a virtual base vtable if the virtual base in ↵Anders Carlsson2010-02-231-0/+29
| | | | | | question is a primary virtual base of some other base. llvm-svn: 96881
* Always emit vcall offset for the primary base, not only if it's virtual. ↵Anders Carlsson2010-02-231-0/+59
| | | | | | Remove a debug printf, and add the test case that now passes. llvm-svn: 96880
* More support for ivars in class extension.Fariborz Jahanian2010-02-231-0/+42
| | | | llvm-svn: 96850
* Perform two more constructor/destructor code-size optimizations:John McCall2010-02-235-10/+172
| | | | | | | | | | | | | | | | 1) emit base destructors as aliases to their unique base class destructors under some careful conditions. This is enabled for the same targets that can support complete-to-base aliases, i.e. not darwin. 2) Emit non-variadic complete constructors for classes with no virtual bases as calls to the base constructor. This is enabled on all targets and in theory can trigger in situations that the alias optimization can't (mostly involving virtual bases, mostly not yet supported). These are bundled together because I didn't think it worthwhile to split them, not because they really need to be. llvm-svn: 96842
* Implement crazy destructor name lookup semantics differently inDouglas Gregor2010-02-234-1/+78
| | | | | | | | | | C++98/03 and C++0x, since the '0x semantics break valid C++98/03 code. This new mess is tracked by core issue 399, which is still unresolved. Fixes PR6358 and PR6359. llvm-svn: 96836
* Fixes a rewriting of byref variable when its initializer isFariborz Jahanian2010-02-221-0/+28
| | | | | | itself rewritten. Radar 7669784. llvm-svn: 96798
* Do not require a complete type when checking for a pointer conversionDouglas Gregor2010-02-221-0/+21
| | | | | | between cv1 T* and cv2 T*. llvm-svn: 96787
* Add 'previous declaration is here' note for param redefinition Chris Lattner2010-02-223-3/+6
| | | | | | | | | | | | | errors, e.g.: t.c:1:21: error: redefinition of parameter 'x' int test(int x, int x); ^ t.c:1:14: note: previous declaration is here int test(int x, int x); ^ llvm-svn: 96769
* De-XFAIL some win32 tests that are now passingDouglas Gregor2010-02-215-5/+0
| | | | llvm-svn: 96759
* Attempt to fix the MSVC9 failure with c-indext-test, where the CIndex DLLDouglas Gregor2010-02-211-1/+0
| | | | | | | | and the c-index-test executable end up getting different copies of stderr, causing non-deterministic ordering of output. Fixed by flushing the file after printing a diagnostic (only on Windows). llvm-svn: 96754
* Implement support for parsing pseudo-destructor expression with a ↵Douglas Gregor2010-02-211-1/+7
| | | | | | | | | | | | nested-name-specifier, e.g., typedef int Int; int *p; p->Int::~Int(); This weakens the invariant that the only types in nested-name-specifiers are tag types (restricted to class types in C++98/03). However, we weaken this invariant as little as possible, accepting arbitrary types in nested-name-specifiers only when we're in a member access expression that looks like a pseudo-destructor expression. llvm-svn: 96743
* Commiting a revert from dgregor of a bit of destructor logic until we canChandler Carruth2010-02-211-1/+1
| | | | | | | figure out how not to break lots of code using this. See PR6358 and PR6359 for motivating examples. FIXME's left in the code and the test. llvm-svn: 96733
* Make Decl::isOutOfLine() virtual, and use that to determine when definitionsChandler Carruth2010-02-211-0/+25
| | | | | | | are for out of line declarations more easily. This simplifies the logic and handles the case of out-of-line class definitions correctly. Fixes PR6107. llvm-svn: 96729
* Clang really intends to reject attribute 'warn_unused_result' on Objective-C ↵Ted Kremenek2010-02-211-0/+8
| | | | | | | | | methods, but instead it crashes on them. We might extend this attribute to work on methods, but for now fix the crasher. Addresses <rdar://problem/7670939>. llvm-svn: 96723
* Don't emit a warning about a dllimport attribute being used in a typedefTed Kremenek2010-02-211-0/+17
| | | | | | when -fms-extensions is specified. Fixes <rdar://problem/7653870>. llvm-svn: 96722
* Don't warn about functions redeclared without the dllimport attribute whenTed Kremenek2010-02-211-0/+19
| | | | | | -fms-extensions is enabled. Fixes <rdar://problem/7669559>. llvm-svn: 96721
* Start supporting declaration of ivars in @implementationFariborz Jahanian2010-02-191-0/+22
| | | | | | blocks. WIP. llvm-svn: 96696
* Issue extended diagnostic when property dot-syntax is used and Fariborz Jahanian2010-02-191-2/+2
| | | | | | there is a setter but no getter (part of radar 7664555). llvm-svn: 96687
* Only parse C++0x attribute specifiers in declarators when in C++0xDouglas Gregor2010-02-191-0/+12
| | | | | | | mode. This allows us to detect invalid VLAs in Objective-C++ mode. This should be the last of <rdar://problem/7660386>. llvm-svn: 96679
* Implement C++ name lookup for instance variables of Objective-C classesDouglas Gregor2010-02-191-1/+18
| | | | | | | | | | | | from an instance method. Previously, we were following the Objective-C name lookup rules for ivars, which are of course completely different from and incompatible with the Objective-C++ rules. For the record, the Objective-C++ rules are the sane ones. This is another part of <rdar://problem/7660386>. llvm-svn: 96677
* Make Sema::ActOnClassMessage robust when name lookup for the receiverDouglas Gregor2010-02-191-0/+12
| | | | | | | name finds something other than a TypedefDecl or an ObjCInterfaceDecl. This is a small part of <rdar://problem/7660386>. llvm-svn: 96676
* More refactoring around constructor/destructor code generation.John McCall2010-02-191-1/+48
| | | | | | | | | | | | Fix some bugs with function-try-blocks and simplify normal try-block code generation. This implementation excludes a deleting destructor's call to operator delete() from the function-try-block, which I believe is correct but which I can't find straightforward support for at a moment's glance. llvm-svn: 96670
* Add another test from the ABI spec.Anders Carlsson2010-02-191-0/+49
| | | | llvm-svn: 96659
* Remove this test for now.Fariborz Jahanian2010-02-191-17/+0
| | | | llvm-svn: 96651
* Re-introduce the ctor/dtor alias optimization, this time hidden behind aJohn McCall2010-02-193-8/+7
| | | | | | command-line option which defaults off. llvm-svn: 96649
* AST import for CStyleCastExpr. With this, we can import Cocoa.h into an ↵Douglas Gregor2010-02-192-2/+4
| | | | | | empty context llvm-svn: 96648
* AST import for sizeof and alignof expressionsDouglas Gregor2010-02-192-2/+4
| | | | llvm-svn: 96647
* AST import for DeclRefExprsDouglas Gregor2010-02-192-2/+4
| | | | llvm-svn: 96646
* XFAIL until I can fugure out how test check for a pattern whenFariborz Jahanian2010-02-191-0/+1
| | | | | | clang is built optimized. llvm-svn: 96645
* XFAIL some of the c-index-test tests on Windows, where they are failing ↵Douglas Gregor2010-02-196-1/+6
| | | | | | inexplicably llvm-svn: 96644
* AST import of parenthesized expressions, unary operators, binaryDouglas Gregor2010-02-192-2/+6
| | | | | | operators, and compound assignment operators. llvm-svn: 96643
* Patch removes IVars list from ObjCInterfaceDecl andFariborz Jahanian2010-02-191-0/+16
| | | | | | instead relies on their DeclContext for iteration, etc. llvm-svn: 96638
* Re-apply my diagnostics-capture patch for CIndex, with some tweaks toDouglas Gregor2010-02-182-2/+1
| | | | | | try to address the msvc failures. llvm-svn: 96624
* Allow GNU attributes to appear in an Objective-C method declarationTed Kremenek2010-02-181-1/+5
| | | | | | | before the selector name (but after the return type). Among other things, this allows IBAction to be implemented with an attribute. llvm-svn: 96623
* Revert my CIndex diagnostic changes (r96603, 96606, 96607), which wereDouglas Gregor2010-02-182-1/+2
| | | | | | breaking the msvc9 builder for unknown reasons. llvm-svn: 96618
* Revert the ctor/dtor alias optimization for now; the buildbots can detectJohn McCall2010-02-187-14/+18
| | | | | | some failure here that I can't. llvm-svn: 96612
OpenPOWER on IntegriCloud