summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* PCH support for do-while and for loopsDouglas Gregor2009-04-171-1/+8
| | | | llvm-svn: 69334
* PCH support for while and continue statementsDouglas Gregor2009-04-171-0/+7
| | | | llvm-svn: 69332
* Fixup semantic analysis for nested blocks, and allow block literalMike Stump2009-04-172-4/+13
| | | | | | | expressions that can be of static duration to be returned. Radar 6786551 llvm-svn: 69331
* PCH support for the first batch of statements, including null,Douglas Gregor2009-04-172-0/+30
| | | | | | compound, case, default, if, switch, and break statements. llvm-svn: 69329
* Fix <rdar://problem/6765383> clang-6: clang does not appear to support ↵Steve Naroff2009-04-161-0/+6
| | | | | | declaring a static Block 'const'. llvm-svn: 69306
* Category method synbols must be qualified by gategory name toFariborz Jahanian2009-04-161-4/+2
| | | | | | match gcc's. llvm-svn: 69305
* Fix a crash bug when comparing overload quality of conversion operators with ↵Sebastian Redl2009-04-162-0/+155
| | | | | | | | | | | conversion constructors. Remove an atrocious amount of trailing whitespace in the overloaded operator mangler. Sorry, couldn't help myself. Change the DeclType parameter of Sema::CheckReferenceInit to be passed by value instead of reference. It wasn't changed anywhere. Let the parser handle C++'s irregular grammar around assignment-expression and conditional-expression. And finally, the reason for all this stuff: implement C++ semantics for the conditional operator. The implementation is complete except for determining lvalueness. llvm-svn: 69299
* Force target triple for test depending on __weak.Eli Friedman2009-04-161-1/+1
| | | | llvm-svn: 69297
* Ensure that the most recent declaration of a tentative definition winsDaniel Dunbar2009-04-161-0/+5
| | | | | | when generating a common definition. llvm-svn: 69287
* arrange for -Wno-error=foo warnings to be immune to -Werror as Chris Lattner2009-04-161-0/+19
| | | | | | they are supposed to be. llvm-svn: 69265
* PCH support for CompoundLiteralExpr. This is the last C expressionDouglas Gregor2009-04-162-0/+7
| | | | | | | that does not require PCH support for statements. Only AddrLabelExpr, StmtExpr, and BlockExpr remain (for C). llvm-svn: 69255
* PCH support for InitListExpr, DesignatedInitExpr, and ImplicitValueInitExpr.Douglas Gregor2009-04-162-0/+17
| | | | llvm-svn: 69251
* Add support for the __has_trivial_constructor type trait.Anders Carlsson2009-04-161-0/+34
| | | | llvm-svn: 69245
* PCH support for ShuffleVectorExpr and BlockDeclRefExprDouglas Gregor2009-04-162-1/+7
| | | | llvm-svn: 69244
* PCH support for TypesCompatibleExpr, ChooseExpr, and GNUNullExpr.Douglas Gregor2009-04-152-0/+18
| | | | llvm-svn: 69242
* PCH support for ExtVectorElementExpr and VAArgExpr.Douglas Gregor2009-04-152-0/+7
| | | | llvm-svn: 69240
* PCH support for CompoundAssignOperator and ConditionalOperatorDouglas Gregor2009-04-152-0/+12
| | | | llvm-svn: 69237
* PCH support for ImaginaryLiteral and ArraySubscriptExprDouglas Gregor2009-04-152-0/+14
| | | | llvm-svn: 69233
* Defer generation of tentative definitions.Daniel Dunbar2009-04-153-4/+30
| | | | | | | | | | | | | | - PR3980. - <rdar://problem/6762287> [irgen] crash when generating tentative definition of incomplete structure - This also avoids creating common definitions for things which are later overwritten. - XFAIL'ed external-defs.c, it isn't completing types properly yet. llvm-svn: 69231
* PCH support for ExtQualTypeDouglas Gregor2009-04-152-4/+13
| | | | llvm-svn: 69230
* Fix decl type merges when they haveFariborz Jahanian2009-04-151-0/+16
| | | | | | __string/__weak attributes. llvm-svn: 69229
* Set DebugInfo at the beginning of GenerateBlockFunction().Devang Patel2009-04-151-0/+13
| | | | llvm-svn: 69228
* Add warning when a tentative array definition is assumed to have one element.Daniel Dunbar2009-04-152-3/+3
| | | | | | - Also, fixed one to actually be one (instead of zero). :) llvm-svn: 69226
* PCH support for declaration attributesDouglas Gregor2009-04-152-0/+15
| | | | llvm-svn: 69225
* Don't use \01 in symbol name if unnecessary.Daniel Dunbar2009-04-152-6/+2
| | | | | | | | - This was particularly bad since I fixed one instance of this name and not another, meaning we got an LLVM module with the same effective name in two different globals! llvm-svn: 69205
* Fix <rdar://problem/6786597> varargs not supported for Blocks under clang.Steve Naroff2009-04-151-0/+41
| | | | | | Teach Sema::SemaBuiltinVAStart() about blocks. llvm-svn: 69201
* Patch to remove a bogus warning which pointed to underlying ASTFariborz Jahanian2009-04-151-0/+24
| | | | | | | | gen. issue for property in continuation class declared readwrite but which did not generate the declaration for the setter. Fix also removed a FIXME and resulted in code cleanup. llvm-svn: 69200
* Fix alignment on obj_msgrefs to match llvm-gcc.Daniel Dunbar2009-04-151-0/+1
| | | | llvm-svn: 69199
* Add test case for superrefs section (and make spacing consistent).Daniel Dunbar2009-04-151-1/+15
| | | | llvm-svn: 69198
* PCH support for MemberExpr and CallExpr.Douglas Gregor2009-04-152-0/+17
| | | | llvm-svn: 69186
* Fixup http://llvm.org/viewvc/llvm-project?rev=69165&view=rev (based on ↵Steve Naroff2009-04-151-3/+0
| | | | | | feedback from Eli). llvm-svn: 69184
* Revert previous patch (will commit a fix soon).Steve Naroff2009-04-152-1/+11
| | | | llvm-svn: 69178
* PCH support for string literalsDouglas Gregor2009-04-152-0/+8
| | | | llvm-svn: 69172
* PCH support for UnaryOperator, SizeOfAlignOfExprDouglas Gregor2009-04-152-1/+16
| | | | llvm-svn: 69169
* Fix <rdar://problem/6789707> "warning: 'extern' variable has an initializer" ↵Steve Naroff2009-04-151-2/+1
| | | | | | not correct for __private_extern__. llvm-svn: 69167
* Fix <rdar://problem/6791490> [clang10 regression] [sema] invalid illegal ↵Steve Naroff2009-04-151-0/+8
| | | | | | | | | | | | jump diagnostic. caused by: <rdar://problem/6252084> [sema] jumps into Obj-C exception blocks should be disallowed. Sema::RecursiveCalcLabelScopes() and Sema::RecursiveCalcJumpScopes() need to pop the ScopeStack within the statement iteration loop (was outside the loop). Eli, please review (thanks). llvm-svn: 69165
* add another sanity check for -Werror=xxChris Lattner2009-04-151-0/+3
| | | | llvm-svn: 69157
* add a missing &&Chris Lattner2009-04-151-1/+1
| | | | llvm-svn: 69156
* fix a broken test, that passed for the wrong reason. Two wrongs make a ↵Chris Lattner2009-04-151-1/+1
| | | | | | right! :) llvm-svn: 69155
* Rejigger how -pedantic and -pedantic-errors work and their interactionChris Lattner2009-04-151-0/+27
| | | | | | | | | | | | | | | | with other diagnostic mapping. In the new scheme, -Wfoo or -Wno-foo or -Werror=foo all override the -pedantic options, and __extension__ robustly silences all extension diagnostics in their scope. An added bonus of this change is that MAP_DEFAULT goes away, meaning that per-diagnostic mapping information can now be stored in 2 bits, doubling the density of the Diagnostic::DiagMapping array. This also substantially simplifies Diagnostic::getDiagnosticLevel. OTOH, this temporarily introduces some "macro intensive" code in Diagnostic.cpp. This will be addressed in a later patch. llvm-svn: 69154
* Implement support for designated initializers that refer to members ofDouglas Gregor2009-04-151-0/+34
| | | | | | anonymous structs or unions. Fixes PR3778. llvm-svn: 69153
* remove #include of system header, making this a) not apple specific, andChris Lattner2009-04-151-3/+3
| | | | | | b) test dramatically faster. llvm-svn: 69135
* Tweaks to Objective-C metadata (32 & 64-bit) to match llvm-gcc.Daniel Dunbar2009-04-152-0/+173
| | | | | | | | | | | | | | | | | | | - Set alignment on property lists. - 32-bit: o Set section on property lists. o Fix section name for category class methods. o Fix symbol name for property lists. o Fix section name for class method. o Set alignment and section on class extension structure. o Set alignment on a number of things: instance variables, methods, method descriptions, the symbols structure. - 64-bit: o Fix section flags for protocol list. I doubt most of these were problems in practice, but it is nice to match llvm-gcc. llvm-svn: 69132
* PCH support for CStyleCastExpr and BinaryOperator expression kinds.Douglas Gregor2009-04-152-2/+14
| | | | llvm-svn: 69119
* Improve "assignment to cast" diagnostic.Daniel Dunbar2009-04-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Strip off extra parens when looking for casts. - Change the location info to point at the cast (instead of the assignment). For example, on int *b; #define a ((void*) b) void f0() { a = 10; } we now emit: /tmp/t.c:4:3: error: assignment to cast is illegal, lvalue casts are not supported a = 10; ^ ~ /tmp/t.c:2:12: note: instantiated from: #define a ((void*) b) ~^~~~~~~~~~ instead of: /tmp/t.c:4:5: error: expression is not assignable a = 10; ~ ^ llvm-svn: 69114
* PCH support for ParenExprDouglas Gregor2009-04-141-1/+1
| | | | llvm-svn: 69106
* Add PCH support for ImplicitCastExprs. This is the first expressionDouglas Gregor2009-04-141-1/+1
| | | | | | | | | | kind PCH handles that has an expression as an operand, so most of this work is in the infrastructure to rebuild expression trees from the serialized representation. We now store expressions in post-order (e.g., Reverse Polish Notation), so that we can easily rebuild the appropriate expression tree. llvm-svn: 69101
* Strip paren expressions when trying to diagnose "cast as lvalue"Daniel Dunbar2009-04-141-0/+1
| | | | | | extension. llvm-svn: 69100
* Diagnose properties which have no implementations;Fariborz Jahanian2009-04-142-4/+4
| | | | | | | either unimplemented setter/getter or no implementation directive. llvm-svn: 69098
* Set alignment on __cstring metadata variables to 1 (matchingDaniel Dunbar2009-04-141-0/+1
| | | | | | llvm-gcc). llvm-svn: 69097
OpenPOWER on IntegriCloud