Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use true/false instead of 1/0. | Daniel Dunbar | 2009-06-29 | 1 | -4/+4 | |
| | | | | llvm-svn: 74479 | |||||
* | Improvements to decltype. We now don't crash anymore when the expr is an ↵ | Anders Carlsson | 2009-06-29 | 5 | -3/+39 | |
| | | | | | | overloaded function decl. llvm-svn: 74472 | |||||
* | Don't define __KPRINTF_ATTRIBUTE__ unconditionally on OpenBSD. | Daniel Dunbar | 2009-06-29 | 1 | -1/+0 | |
| | | | | llvm-svn: 74467 | |||||
* | Improve code generation for function template specializations: | Douglas Gregor | 2009-06-29 | 7 | -11/+98 | |
| | | | | | | | | | | | | | | | | - Track implicit instantiations vs. the not-yet-supported explicit specializations - Give implicit instantiations of function templates (and member functions of class templates) linkonce_odr linkage. - Improve name mangling for function template specializations, including the template arguments of the instantiation and the return type of the function. Note that our name-mangling is improved, but not correct: we still don't mangle substitutions, although the manglings we produce can be demangled. llvm-svn: 74466 | |||||
* | Diagnose multiple initialzation of data-member/base | Fariborz Jahanian | 2009-06-29 | 4 | -0/+45 | |
| | | | | | | in the ctor-initializer list. More to come. llvm-svn: 74465 | |||||
* | Remove some dead code | Anders Carlsson | 2009-06-29 | 1 | -3/+0 | |
| | | | | llvm-svn: 74460 | |||||
* | Keep track of function template specializations, to eliminate | Douglas Gregor | 2009-06-29 | 9 | -382/+530 | |
| | | | | | | | redundant, implicit instantiations of function templates and provide a place where we can hang function template specializations. llvm-svn: 74454 | |||||
* | OpenBSD support. | Daniel Dunbar | 2009-06-29 | 9 | -0/+296 | |
| | | | | | | - Patch by Jonathan Gray! llvm-svn: 74453 | |||||
* | -Keep a reference to the ASTContext inside the TranslationUnitDecl. | Argyrios Kyrtzidis | 2009-06-29 | 4 | -3/+31 | |
| | | | | | | | | -Introduce Decl::getASTContext() which returns the reference from the TranslationUnitDecl that it is contained in. The general idea is that Decls can point to their own ASTContext so that it is no longer required to "manually" keep track and make sure that you pass the correct ASTContext to Decls' methods, e.g. methods like Decl::getAttrs should eventually not require a ASTContext parameter. llvm-svn: 74434 | |||||
* | Remove redundant leftover code. | Argyrios Kyrtzidis | 2009-06-29 | 1 | -1/+0 | |
| | | | | llvm-svn: 74433 | |||||
* | Fix the FloatingLiteral API to take the isexact flag by value instead of | Chris Lattner | 2009-06-29 | 3 | -6/+5 | |
| | | | | | | by pointer. llvm-svn: 74432 | |||||
* | Move FunctionDecl::TemplateSpecializationInfo out into its own class, | Douglas Gregor | 2009-06-29 | 4 | -29/+66 | |
| | | | | | | FunctionTemplateSpecializationInfo, in DeclTemplate.h. No functionality change. llvm-svn: 74431 | |||||
* | Remove ASTContext::getObjCQualifiedIdType(). | Steve Naroff | 2009-06-29 | 3 | -17/+4 | |
| | | | | | | Convert clients to use ASTContext::getObjCObjectPointerType(). llvm-svn: 74424 | |||||
* | Invalidate the alloca region by setting its default value to conjured symbol. | Zhongxing Xu | 2009-06-29 | 2 | -2/+23 | |
| | | | | llvm-svn: 74419 | |||||
* | The default answer for isBoundable() should be false. | Zhongxing Xu | 2009-06-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 74418 | |||||
* | Make the StackProtector bitfield use enums instead of obscure numbers. | Bill Wendling | 2009-06-28 | 5 | -16/+29 | |
| | | | | llvm-svn: 74414 | |||||
* | Move the check for vprintf* functions inside of SemaCheckStringLiteral. ↵ | Anders Carlsson | 2009-06-28 | 2 | -25/+33 | |
| | | | | | | Fixes PR4470. llvm-svn: 74413 | |||||
* | make these tests pass with the stack canary stuff even on targets where they ↵ | Chris Lattner | 2009-06-28 | 2 | -3/+3 | |
| | | | | | | default to on. llvm-svn: 74412 | |||||
* | Fix incorrect AST's being produced, noticed by Eli. | Nate Begeman | 2009-06-28 | 1 | -10/+4 | |
| | | | | | | The issue this was working around is no longer present in TOT clang. llvm-svn: 74411 | |||||
* | Now this test case passes. | Zhongxing Xu | 2009-06-28 | 1 | -2/+2 | |
| | | | | llvm-svn: 74410 | |||||
* | Adjust retrieve handler priority. If a field is of array type, it should be | Zhongxing Xu | 2009-06-28 | 1 | -6/+6 | |
| | | | | | | handled by RetrieveArray(). llvm-svn: 74409 | |||||
* | Invalidate a field of struct type by setting its default value to conjured | Zhongxing Xu | 2009-06-28 | 2 | -4/+26 | |
| | | | | | | symbol. llvm-svn: 74408 | |||||
* | Do not crash on binding concrete integer location. | Zhongxing Xu | 2009-06-28 | 2 | -0/+6 | |
| | | | | llvm-svn: 74407 | |||||
* | Simplify some code. As in region store, we always expect the location is a | Zhongxing Xu | 2009-06-28 | 1 | -41/+34 | |
| | | | | | | memregion. llvm-svn: 74406 | |||||
* | Add stack protector support to clang. This generates the 'ssp' and 'sspreq' | Bill Wendling | 2009-06-28 | 10 | -7/+99 | |
| | | | | | | | | 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 Begeman | 2009-06-28 | 2 | -29/+68 | |
| | | | | | | | | 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 conversions | Nate Begeman | 2009-06-27 | 1 | -13/+2 | |
| | | | | llvm-svn: 74397 | |||||
* | Improve support for overloaded operator templates. | Douglas Gregor | 2009-06-27 | 6 | -43/+72 | |
| | | | | llvm-svn: 74390 | |||||
* | Fix the parser error hanlding for __builtin_offsetof to actually print | Eli Friedman | 2009-06-27 | 2 | -6/+14 | |
| | | | | | | out an error for a malformed __builtin_offsetof. llvm-svn: 74388 | |||||
* | Add a Last Updated field to the C++ status page | Douglas Gregor | 2009-06-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 74387 | |||||
* | Renamed MarcDestructorReferenced -> MarkDestructorReferenced | Fariborz Jahanian | 2009-06-27 | 4 | -6/+6 | |
| | | | | llvm-svn: 74386 | |||||
* | Fix screwup with my previous patch which broke tests. (The patch is | Eli Friedman | 2009-06-27 | 1 | -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 Friedman | 2009-06-27 | 1 | -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 Friedman | 2009-06-27 | 2 | -2/+17 | |
| | | | | | | parameter has a dependent type. llvm-svn: 74380 | |||||
* | Implement support for the format_arg attribute. Fixes PR4442. | Anders Carlsson | 2009-06-27 | 2 | -0/+32 | |
| | | | | llvm-svn: 74369 | |||||
* | Make it possible for using decls to point to operators. Fixes PR4441. | Anders Carlsson | 2009-06-27 | 6 | -17/+50 | |
| | | | | llvm-svn: 74362 | |||||
* | Remove the last 'GetXXX' methods from GRStateManager. | Ted Kremenek | 2009-06-27 | 2 | -49/+33 | |
| | | | | llvm-svn: 74361 | |||||
* | Make a note of improvements to function templates | Douglas Gregor | 2009-06-27 | 1 | -16/+16 | |
| | | | | llvm-svn: 74360 | |||||
* | Patch to mark destructors when they are used. | Fariborz Jahanian | 2009-06-26 | 6 | -8/+85 | |
| | | | | llvm-svn: 74359 | |||||
* | Fix test. | Anders Carlsson | 2009-06-26 | 1 | -0/+7 | |
| | | | | llvm-svn: 74358 | |||||
* | Set the rest of the flags we need to perform template argument | Douglas Gregor | 2009-06-26 | 1 | -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, allow | Douglas Gregor | 2009-06-26 | 2 | -29/+79 | |
| | | | | | | | | 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 Carlsson | 2009-06-26 | 3 | -0/+58 | |
| | | | | llvm-svn: 74339 | |||||
* | Fix test. | Anders Carlsson | 2009-06-26 | 1 | -1/+1 | |
| | | | | llvm-svn: 74335 | |||||
* | A little template argument deduction test uncovered an "oops". As part | Douglas Gregor | 2009-06-26 | 2 | -87/+68 | |
| | | | | | | | | | | 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 swizzles | Nate Begeman | 2009-06-26 | 1 | -3/+4 | |
| | | | | llvm-svn: 74324 | |||||
* | Template argument deduction is no longer responsible for checking | Douglas Gregor | 2009-06-26 | 3 | -33/+142 | |
| | | | | | | | | | | | | | 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 Carlsson | 2009-06-26 | 3 | -0/+14 | |
| | | | | llvm-svn: 74314 | |||||
* | An auto variable can't appear in its own initializer. | Anders Carlsson | 2009-06-26 | 4 | -0/+15 | |
| | | | | llvm-svn: 74312 | |||||
* | Implement enough of the 'auto' keyword so we can claim to support N2546. | Anders Carlsson | 2009-06-26 | 11 | -2/+36 | |
| | | | | llvm-svn: 74307 |