summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Enhance my implementation of //rdar ://8747333 in r121597 to allowFariborz Jahanian2010-12-111-1/+12
| | | | | | | | for declaration of property setter/getter in forward class extensions and also skip over propeties which are @dynamic. llvm-svn: 121617
* Improved complex constants evaluation.Abramo Bagnara2010-12-111-0/+12
| | | | llvm-svn: 121616
* Any property declared in a class extension might have userFariborz Jahanian2010-12-101-0/+24
| | | | | | | | | | | declared setter or getter in current class extension or one of the other class extensions. Mark them as synthesized as property will be synthesized when property with same name is seen in the @implementation. This prevents bogus warning about unimplemented methods to be issued for these methods. Fixes // rdar://8747333 llvm-svn: 121597
* Do not substitute template types if template has dependent contextPeter Collingbourne2010-12-101-0/+15
| | | | | | | | | We should not substitute template types if the template has a dependent context because the template argument stack is not yet fully formed. Instead, defer substitution until the template has a non-dependent context (i.e. instantiation of an outer template). llvm-svn: 121491
* In clang_getCursor(), don't override a preprocessing cursor withinDouglas Gregor2010-12-101-0/+7
| | | | | | another preprocessing cursor, since we want the outermost one. llvm-svn: 121470
* Treat visibility on an enclosing namespace as a non-explicit source ofJohn McCall2010-12-102-1/+21
| | | | | | | | | | | visibility. Fixes PR8713. I've disabled a test which was testing that you can #pragma pop visibility to get out of a namespace's visibility attribute. We should probably just diagnose that as an error unless it's instrumental to someone's system headers. llvm-svn: 121459
* Add dependency to "make clang-test check-all".NAKAMURA Takumi2010-12-101-1/+11
| | | | llvm-svn: 121458
* Added remaining objective-c library builtins (as in gcc) toFariborz Jahanian2010-12-102-4/+29
| | | | | | clang. // rdar://8735023 llvm-svn: 121441
* Fix another obscure corner layout case.Argyrios Kyrtzidis2010-12-101-0/+14
| | | | llvm-svn: 121436
* Don't crash when code-completing after "#include <". It would be farDouglas Gregor2010-12-091-0/+3
| | | | | | | better to actually produce a decent set of completions by checking the system include paths, but not today. Fixes PR8744. llvm-svn: 121431
* Eliminate duplicate code completions for properties.Douglas Gregor2010-12-091-0/+16
| | | | llvm-svn: 121424
* Don't walk the translation unit context to produce protocol names whenDouglas Gregor2010-12-091-1/+3
| | | | | | | | | | global code completions are disabled (e.g., because they are cached). Also, make sure that forward-declared protocols are visited when we look for all visible names within a declaration context. Previously, we would end up with duplicate completions for protocols. llvm-svn: 121416
* Update test.Devang Patel2010-12-091-2/+2
| | | | | | This test intends to catch invalid use of ".byte 256" in output. Now, the assert in MC will be triggered in such cases. llvm-svn: 121403
* When an "inline" declaration was followed by a definition not markedDouglas Gregor2010-12-091-0/+8
| | | | | | | | | | | | | "inline", we weren't giving the definition weak linkage because the "inline" bit wasn't propagated. This was a longstanding FIXME that, somehow, hadn't triggered a bug in the wild. Fix this problem by tracking whether any declaration was marked "inline", and clean up the semantics of GNU's "extern inline" semantics calculation based on this change. Fixes <rdar://problem/8740363>. llvm-svn: 121373
* Fix PR8760: IndirectFieldDecl Type was not updated during template ↵Francois Pichet2010-12-091-0/+13
| | | | | | instantiation. llvm-svn: 121363
* Fix another unnecessary-struct-padding issue.Argyrios Kyrtzidis2010-12-091-1/+19
| | | | llvm-svn: 121352
* Before determining the effect the alignment of base struct will have in the ↵Argyrios Kyrtzidis2010-12-091-0/+16
| | | | | | | | | | aligment of the sub-struct, take into account if the sub-struct is packed and its maximum field alignment. Fixes rdar://8745206 llvm-svn: 121335
* Test case for r121323.Devang Patel2010-12-091-0/+309
| | | | llvm-svn: 121324
* A typename specifier can end up referring to a unresolved usingDouglas Gregor2010-12-091-0/+20
| | | | | | | | declaration that is a value in ill-formed code. Instead of crashing, treat this as a dependent typename specifier and suggest that the using add "typename" into the using declaration. Fixes <rdar://problem/8740998>. llvm-svn: 121322
* Start using DIBuilder. It provides cleaner interface.Devang Patel2010-12-081-1/+1
| | | | llvm-svn: 121302
* Driver: M and MM should be grouped together, <rdar://problem/8744831>.Daniel Dunbar2010-12-081-0/+3
| | | | llvm-svn: 121284
* Make this test resilient to whether or not the Linux toolchain renders theChandler Carruth2010-12-081-3/+3
| | | | | | sysroot flag to the link command as a joined flag or a separate flag. llvm-svn: 121270
* Fix two thinkos and add a test for importing the AST of a categoryDouglas Gregor2010-12-083-1/+31
| | | | | | implementation. llvm-svn: 121263
* Fix bug where annotate tokens was not working for BinaryTypeTraitExpr.Francois Pichet2010-12-081-2/+10
| | | | | | CIndex's EnqueueVisitor must visit elements backward apparently. llvm-svn: 121247
* Fix test that didn't really test anything.Francois Pichet2010-12-081-2/+2
| | | | llvm-svn: 121246
* Handle parameter attributes when tentative parsing for function/variable ↵Argyrios Kyrtzidis2010-12-081-0/+3
| | | | | | | | disambiguation. Fixes rdar://8739801. llvm-svn: 121228
* Test case.John McCall2010-12-071-0/+3
| | | | llvm-svn: 121194
* Implement AST import for Objective-C property implementationsDouglas Gregor2010-12-073-1/+44
| | | | | | (@synthesize and @dynamic). llvm-svn: 121159
* Implement ASTImporter support for Objective-C category implementations.Douglas Gregor2010-12-072-0/+17
| | | | llvm-svn: 121139
* Fix PR8720 by printing an error message with a substring that the gcc ↵Rafael Espindola2010-12-075-4/+12
| | | | | | testsuite searches for. llvm-svn: 121137
* Extern the ASTImporter to import @implementation declarations.Douglas Gregor2010-12-073-1/+46
| | | | llvm-svn: 121097
* Type traits intrinsic implementation: __is_base_of(T, U)Francois Pichet2010-12-071-0/+51
| | | | | | New AST node introduced: BinaryTypeTraitExpr; to be reused for more intrinsics. llvm-svn: 121074
* Objective-C pointer conversions to 'id' or qualified 'id' subsumeDouglas Gregor2010-12-061-0/+9
| | | | | | | | cv-qualification conversions. More specifically, there's an implicit cv-qualification conversion (even one that drops qualifiers) when converting to 'id' or qualified 'id'. Fixes <rdar://problem/8734046>. llvm-svn: 121047
* Do unary conversions on vararg arguments and *then* special-case float.John McCall2010-12-061-0/+14
| | | | | | Fixes PR8742. llvm-svn: 121022
* __block variables require us to evaluate the RHS of an assignment beforeJohn McCall2010-12-061-1/+1
| | | | | | | | | | the LHS, or else the pointer might be invalid. This is kindof dumb, but go ahead and make sure we're doing that for l-value scalar assignment, which fixes a miscompile of obj-c++.dg/block-seq.mm. Leave a FIXME for how to solve this problem for agg __blocks. llvm-svn: 120992
* Clarify the logic for when to build an overloaded binop. In particular,John McCall2010-12-062-1/+16
| | | | | | | | | build one when either of the operands calls itself type-dependent; previously we were building when one of the operand types was dependent, which is not always the same thing and which can lead to unfortunate inconsistencies later. Fixes PR8739. llvm-svn: 120990
* Fix a bug in the emission of __real/__imag l-values on scalar operands.John McCall2010-12-052-38/+8
| | | | | | | | | Fix a bug in the emission of complex compound assignment l-values. Introduce a method to emit an expression whose value isn't relevant. Make that method evaluate its operand as an l-value if it is one. Fixes our volatile compliance in C++. llvm-svn: 120931
* Put each test in class-layout.cpp into a separate namespace.Anders Carlsson2010-12-051-9/+15
| | | | llvm-svn: 120925
* Fix rewriter to match recent changes in property refFariborz Jahanian2010-12-042-9/+3
| | | | | | AST. llvm-svn: 120919
* Silly special case: never load when dereferencing void*.John McCall2010-12-041-12/+12
| | | | llvm-svn: 120905
* First pass at implementing the intent of ANSI C DR106.John McCall2010-12-041-2/+16
| | | | llvm-svn: 120904
* Don't crash when initializing a subaggregate in C from a property r-value.John McCall2010-12-041-0/+12
| | | | llvm-svn: 120899
* When deciding whether to complain about the type of a boolean condition, useJohn McCall2010-12-042-0/+18
| | | | | | the type of the expression *after* array/function decay. llvm-svn: 120895
* Apparently properties.m does not always fail; make it.John McCall2010-12-041-0/+1
| | | | llvm-svn: 120894
* Fix this test case on no-asserts builds by not trying to match the basicJohn McCall2010-12-041-1/+3
| | | | | | block line. llvm-svn: 120893
* Although we currently have explicit lvalue-to-rvalue conversions, they'reJohn McCall2010-12-047-5/+44
| | | | | | | | | | | | | | | | | | | not actually frequently used, because ImpCastExprToType only creates a node if the types differ. So explicitly create an ICE in the lvalue-to-rvalue conversion code in DefaultFunctionArrayLvalueConversion() as well as several other new places, and consistently deal with the consequences throughout the compiler. In addition, introduce a new cast kind for loading an ObjCProperty l-value, and make sure we emit those nodes whenever an ObjCProperty l-value appears that's not on the LHS of an assignment operator. This breaks a couple of rewriter tests, which I've x-failed until future development occurs on the rewriter. Ted Kremenek kindly contributed the analyzer workarounds in this patch. llvm-svn: 120890
* Test case for the l-value base only being evaluated once.John McCall2010-12-041-1/+28
| | | | | | | | | | Also, move the l-value emission code into CGObjC.cpp and teach it, for completeness, to store away self for a super send. Also, inline the super cases for property gets and sets and make them use the correct result type for implicit getter/setter calls. llvm-svn: 120887
* Implement -cl-single-precision-constantPeter Collingbourne2010-12-041-0/+7
| | | | llvm-svn: 120877
* Implement -cl-opt-disablePeter Collingbourne2010-12-041-3/+3
| | | | llvm-svn: 120876
* Mark functions referenced by 'cleanup' attribute as used. Fixes rdar://8728293Argyrios Kyrtzidis2010-12-041-0/+7
| | | | llvm-svn: 120872
OpenPOWER on IntegriCloud