summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Invalidate the alloca region by setting its default value to conjured symbol.Zhongxing Xu2009-06-291-2/+11
| | | | llvm-svn: 74419
* Make the StackProtector bitfield use enums instead of obscure numbers.Bill Wendling2009-06-283-5/+5
| | | | llvm-svn: 74414
* Move the check for vprintf* functions inside of SemaCheckStringLiteral. ↵Anders Carlsson2009-06-281-25/+22
| | | | | | Fixes PR4470. llvm-svn: 74413
* Fix incorrect AST's being produced, noticed by Eli.Nate Begeman2009-06-281-10/+4
| | | | | | The issue this was working around is no longer present in TOT clang. llvm-svn: 74411
* Adjust retrieve handler priority. If a field is of array type, it should be Zhongxing Xu2009-06-281-6/+6
| | | | | | handled by RetrieveArray(). llvm-svn: 74409
* Invalidate a field of struct type by setting its default value to conjured Zhongxing Xu2009-06-281-4/+15
| | | | | | symbol. llvm-svn: 74408
* Do not crash on binding concrete integer location.Zhongxing Xu2009-06-282-0/+6
| | | | llvm-svn: 74407
* Simplify some code. As in region store, we always expect the location is aZhongxing Xu2009-06-281-41/+34
| | | | | | memregion. llvm-svn: 74406
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-285-4/+58
| | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. llvm-svn: 74405
* OpenCL 1.0 support: Nate Begeman2009-06-281-29/+46
| | | | | | | | Handle rules for ExtVector + ExtVector and ExtVector + Scalar operations. Fix problem Eli noticed where we were allowing pointer types to be splatted to vector elements. llvm-svn: 74404
* Implement feedback from Eli re: the purpose of lax vector conversionsNate Begeman2009-06-271-13/+2
| | | | llvm-svn: 74397
* Improve support for overloaded operator templates.Douglas Gregor2009-06-274-26/+45
| | | | llvm-svn: 74390
* Fix the parser error hanlding for __builtin_offsetof to actually print Eli Friedman2009-06-271-6/+7
| | | | | | out an error for a malformed __builtin_offsetof. llvm-svn: 74388
* Renamed MarcDestructorReferenced -> MarkDestructorReferencedFariborz Jahanian2009-06-274-6/+6
| | | | llvm-svn: 74386
* Fix screwup with my previous patch which broke tests. (The patch is Eli Friedman2009-06-271-1/+1
| | | | | | | making sure we return true when annotating a function template with explicit template arguments, but not when we don't annotate anything.) llvm-svn: 74383
* Fix a crash with constructs like x<false>() in C++. No testcase because Eli Friedman2009-06-271-1/+1
| | | | | | it doesn't actually work yet; we just error out a bit more gracefully. llvm-svn: 74381
* Fix a bogus error overloading an operator where the only class Eli Friedman2009-06-271-2/+3
| | | | | | parameter has a dependent type. llvm-svn: 74380
* Implement support for the format_arg attribute. Fixes PR4442.Anders Carlsson2009-06-271-0/+21
| | | | llvm-svn: 74369
* Make it possible for using decls to point to operators. Fixes PR4441.Anders Carlsson2009-06-274-11/+35
| | | | llvm-svn: 74362
* Remove the last 'GetXXX' methods from GRStateManager.Ted Kremenek2009-06-271-0/+31
| | | | llvm-svn: 74361
* Patch to mark destructors when they are used.Fariborz Jahanian2009-06-265-7/+84
| | | | llvm-svn: 74359
* Fix test.Anders Carlsson2009-06-261-0/+7
| | | | llvm-svn: 74358
* Set the rest of the flags we need to perform template argumentDouglas Gregor2009-06-261-5/+28
| | | | | | | deduction using a base class of the argument type. No actual functionality change; this is just a hook. llvm-svn: 74356
* During template argument deduction from a function call, allowDouglas Gregor2009-06-261-28/+69
| | | | | | | | deduction from pointer and pointer-to-member types to work even in the presence of a qualification conversion (C++ [temp.deduct.type]p3 bullet 2). llvm-svn: 74354
* More auto work.Anders Carlsson2009-06-261-0/+46
| | | | llvm-svn: 74339
* A little template argument deduction test uncovered an "oops". As partDouglas Gregor2009-06-261-87/+61
| | | | | | | | | | of template instantiation, we were dropping cv-qualifiers on the instantiated type in a few places. This change reshuffles the type-instantiation code a little bit so that there's a single place where we add qualifiers to the instantiated type, so that we won't end up with this same bug in the future. llvm-svn: 74331
* OpenCL 1.0 Support: fix a bug with lvalue swizzlesNate Begeman2009-06-261-3/+4
| | | | llvm-svn: 74324
* Template argument deduction is no longer responsible for checkingDouglas Gregor2009-06-261-32/+100
| | | | | | | | | | | | | non-dependent parameter types. Instead, class template partial specializations perform a final check of all of the instantiated arguments. This model is cleaner, and works better for function templates where the "final check" occurs during overload resolution. Also, cope with cv-qualifiers when the parameter type was originally a reference type, so that the deduced argument can be more qualified than the transformed argument. llvm-svn: 74323
* Can't have arrays of auto.Anders Carlsson2009-06-261-0/+6
| | | | llvm-svn: 74314
* An auto variable can't appear in its own initializer.Anders Carlsson2009-06-262-0/+7
| | | | llvm-svn: 74312
* Implement enough of the 'auto' keyword so we can claim to support N2546.Anders Carlsson2009-06-266-1/+20
| | | | llvm-svn: 74307
* typoDevang Patel2009-06-261-1/+1
| | | | llvm-svn: 74305
* Revrt PR4228 fix for now.Devang Patel2009-06-262-43/+21
| | | | llvm-svn: 74304
* Simplify, and fix a possible crash (never happens however, because we don't everDaniel Dunbar2009-06-261-10/+7
| | | | | | take this path with non-builtin floating point types). llvm-svn: 74303
* Improve template argument deduction for reference parameters whenDouglas Gregor2009-06-261-4/+42
| | | | | | | deducing template arguments from a function call. Plus, add a bunch of tests. llvm-svn: 74301
* OpenCL 1.0 Support:Nate Begeman2009-06-261-3/+19
| | | | | | Add support for scalar to vector and partially initialized vector constant initializers. llvm-svn: 74299
* Minor change per Doug's comments.Fariborz Jahanian2009-06-261-2/+4
| | | | | | - Fariborz llvm-svn: 74287
* OpenCL 1.0 support: attributesNate Begeman2009-06-265-2/+69
| | | | llvm-svn: 74280
* Add NamedDecl::getUnderlyingDecl that can see through UsingDecl and ↵Anders Carlsson2009-06-262-29/+25
| | | | | | ObjCCompatibleAliasDecl. llvm-svn: 74279
* See through UsingDecls in more places.Anders Carlsson2009-06-262-6/+17
| | | | llvm-svn: 74269
* Fix failing test.Anders Carlsson2009-06-261-1/+3
| | | | llvm-svn: 74268
* Improve error recovery in C++: when we hit 'implicit int' cases in C++,Chris Lattner2009-06-262-11/+12
| | | | | | | | | | these are usually because the parser was thoroughly confused. In addition to typing the value being declared as an int and hoping for the best, we mark the value as invalid so we don't get chains of errors when it is used downstream. In C, implicit int actually is valid, so typing the thing as int is good and marking it invalid is bad. :) llvm-svn: 74266
* fix PR4452, a crash on invalid. The error recovery is still terrible in ↵Chris Lattner2009-06-263-12/+38
| | | | | | | | this case but at least we don't crash :) llvm-svn: 74264
* Fix another assert related to using decls.Anders Carlsson2009-06-261-0/+3
| | | | llvm-svn: 74262
* rearrange more code, this avoids a token lookahead for foo<Chris Lattner2009-06-261-44/+51
| | | | llvm-svn: 74261
* move some code around, no functionality change.Chris Lattner2009-06-261-32/+32
| | | | llvm-svn: 74260
* simplify some code.Chris Lattner2009-06-261-34/+35
| | | | llvm-svn: 74259
* When creating LookupResults, see through UsingDecls. Fixes PR4450.Anders Carlsson2009-06-261-2/+6
| | | | llvm-svn: 74258
* Fix PR4448.Anders Carlsson2009-06-263-2/+13
| | | | llvm-svn: 74257
* OpenCL 1.0 support: explicit casts to ext-vector typesNate Begeman2009-06-262-2/+41
| | | | llvm-svn: 74247
OpenPOWER on IntegriCloud