summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Use true/false instead of 1/0.Daniel Dunbar2009-06-291-4/+4
| | | | llvm-svn: 74479
* Improvements to decltype. We now don't crash anymore when the expr is an ↵Anders Carlsson2009-06-295-3/+39
| | | | | | overloaded function decl. llvm-svn: 74472
* Don't define __KPRINTF_ATTRIBUTE__ unconditionally on OpenBSD.Daniel Dunbar2009-06-291-1/+0
| | | | llvm-svn: 74467
* Improve code generation for function template specializations:Douglas Gregor2009-06-297-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 Jahanian2009-06-294-0/+45
| | | | | | in the ctor-initializer list. More to come. llvm-svn: 74465
* Remove some dead codeAnders Carlsson2009-06-291-3/+0
| | | | llvm-svn: 74460
* Keep track of function template specializations, to eliminateDouglas Gregor2009-06-299-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 Dunbar2009-06-299-0/+296
| | | | | | - Patch by Jonathan Gray! llvm-svn: 74453
* -Keep a reference to the ASTContext inside the TranslationUnitDecl.Argyrios Kyrtzidis2009-06-294-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 Kyrtzidis2009-06-291-1/+0
| | | | llvm-svn: 74433
* Fix the FloatingLiteral API to take the isexact flag by value instead ofChris Lattner2009-06-293-6/+5
| | | | | | by pointer. llvm-svn: 74432
* Move FunctionDecl::TemplateSpecializationInfo out into its own class,Douglas Gregor2009-06-294-29/+66
| | | | | | FunctionTemplateSpecializationInfo, in DeclTemplate.h. No functionality change. llvm-svn: 74431
* Remove ASTContext::getObjCQualifiedIdType().Steve Naroff2009-06-293-17/+4
| | | | | | Convert clients to use ASTContext::getObjCObjectPointerType(). llvm-svn: 74424
* Invalidate the alloca region by setting its default value to conjured symbol.Zhongxing Xu2009-06-292-2/+23
| | | | llvm-svn: 74419
* The default answer for isBoundable() should be false.Zhongxing Xu2009-06-291-1/+1
| | | | llvm-svn: 74418
* Make the StackProtector bitfield use enums instead of obscure numbers.Bill Wendling2009-06-285-16/+29
| | | | llvm-svn: 74414
* Move the check for vprintf* functions inside of SemaCheckStringLiteral. ↵Anders Carlsson2009-06-282-25/+33
| | | | | | Fixes PR4470. llvm-svn: 74413
* make these tests pass with the stack canary stuff even on targets where they ↵Chris Lattner2009-06-282-3/+3
| | | | | | default to on. llvm-svn: 74412
* 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
* Now this test case passes.Zhongxing Xu2009-06-281-2/+2
| | | | llvm-svn: 74410
* 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-282-4/+26
| | | | | | 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-2810-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 Begeman2009-06-282-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 conversionsNate Begeman2009-06-271-13/+2
| | | | llvm-svn: 74397
* Improve support for overloaded operator templates.Douglas Gregor2009-06-276-43/+72
| | | | llvm-svn: 74390
* Fix the parser error hanlding for __builtin_offsetof to actually print Eli Friedman2009-06-272-6/+14
| | | | | | out an error for a malformed __builtin_offsetof. llvm-svn: 74388
* Add a Last Updated field to the C++ status pageDouglas Gregor2009-06-271-0/+1
| | | | llvm-svn: 74387
* 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-272-2/+17
| | | | | | parameter has a dependent type. llvm-svn: 74380
* Implement support for the format_arg attribute. Fixes PR4442.Anders Carlsson2009-06-272-0/+32
| | | | llvm-svn: 74369
* Make it possible for using decls to point to operators. Fixes PR4441.Anders Carlsson2009-06-276-17/+50
| | | | llvm-svn: 74362
* Remove the last 'GetXXX' methods from GRStateManager.Ted Kremenek2009-06-272-49/+33
| | | | llvm-svn: 74361
* Make a note of improvements to function templatesDouglas Gregor2009-06-271-16/+16
| | | | llvm-svn: 74360
* Patch to mark destructors when they are used.Fariborz Jahanian2009-06-266-8/+85
| | | | 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-262-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 Carlsson2009-06-263-0/+58
| | | | llvm-svn: 74339
* Fix test.Anders Carlsson2009-06-261-1/+1
| | | | llvm-svn: 74335
* A little template argument deduction test uncovered an "oops". As partDouglas Gregor2009-06-262-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 swizzlesNate Begeman2009-06-261-3/+4
| | | | llvm-svn: 74324
* Template argument deduction is no longer responsible for checkingDouglas Gregor2009-06-263-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 Carlsson2009-06-263-0/+14
| | | | llvm-svn: 74314
* An auto variable can't appear in its own initializer.Anders Carlsson2009-06-264-0/+15
| | | | llvm-svn: 74312
* Implement enough of the 'auto' keyword so we can claim to support N2546.Anders Carlsson2009-06-2611-2/+36
| | | | llvm-svn: 74307
OpenPOWER on IntegriCloud