Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. | Daniel Dunbar | 2009-12-15 | 1 | -1/+1 | |
| | | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446 | |||||
* | More improvements to checking allocation and deallocation functions. | Anders Carlsson | 2009-12-13 | 1 | -5/+5 | |
| | | | | llvm-svn: 91244 | |||||
* | Look through using declarations when searching for allocation overloads. | Anders Carlsson | 2009-12-09 | 1 | -0/+14 | |
| | | | | llvm-svn: 90961 | |||||
* | When we're trying to define an implicit virtual destructor, make sure that ↵ | Anders Carlsson | 2009-11-30 | 1 | -0/+12 | |
| | | | | | | we have a valid delete operator. llvm-svn: 90156 | |||||
* | Fix test on Linux. | Eli Friedman | 2009-11-16 | 1 | -2/+2 | |
| | | | | llvm-svn: 88889 | |||||
* | If we find a deallocation function in the class scope, but it is a placement ↵ | Anders Carlsson | 2009-11-15 | 1 | -1/+9 | |
| | | | | | | function we should not look for a deallocation function in the global scope. llvm-svn: 88851 | |||||
* | Diagnose ambiguity of operator delete and operator delete[]. Sebastian, ↵ | Anders Carlsson | 2009-11-14 | 1 | -0/+17 | |
| | | | | | | please review. llvm-svn: 88747 | |||||
* | Make test more platform independent (per Sebastian's comment). | Fariborz Jahanian | 2009-11-11 | 1 | -2/+2 | |
| | | | | llvm-svn: 86888 | |||||
* | Diagnose illegally typed operator new/new[]. | Fariborz Jahanian | 2009-11-10 | 1 | -0/+28 | |
| | | | | llvm-svn: 86755 | |||||
* | Remove the Skip parameter from GetTypeForDeclarator and dependents. Take the ↵ | Sebastian Redl | 2009-10-25 | 1 | -0/+1 | |
| | | | | | | opportunity to improve an error message and fix PR4498. llvm-svn: 85068 | |||||
* | Find operators new/delete in base classes. FIXME -= 2; | Douglas Gregor | 2009-09-30 | 1 | -3/+2 | |
| | | | | llvm-svn: 83119 | |||||
* | The C++ delete expression strips cv-qualifiers from the pointed-to type. My ↵ | Douglas Gregor | 2009-09-29 | 1 | -0/+5 | |
| | | | | | | previous fix eliminated this behavior, so bring it back again. llvm-svn: 83113 | |||||
* | Handle C++ delete expressions when the overloaded delete operator is a | Douglas Gregor | 2009-09-29 | 1 | -0/+17 | |
| | | | | | | | | | | | "usual deallocation function" with two arguments. CodeGen will have to handle this case specifically, since the value for the second argument (the size of the allocated object) may have to be computed at run time. Fixes the Sema part of PR4782. llvm-svn: 83080 | |||||
* | Cast the array size expr to a size_t | Anders Carlsson | 2009-09-23 | 1 | -0/+2 | |
| | | | | llvm-svn: 82594 | |||||
* | Perform overload resolution when selecting a pointer conversion | Fariborz Jahanian | 2009-09-15 | 1 | -4/+4 | |
| | | | | | | | function for delete of a class expression and issue good diagnostic when result is ambiguous. llvm-svn: 81870 | |||||
* | For a C++ delete expression where the operand is of class type that | Douglas Gregor | 2009-09-09 | 1 | -0/+18 | |
| | | | | | | | has a single conversion to pointer-to-object type, implicitly convert to that pointer-to-object type (C++ [expr.delete]p1). llvm-svn: 81401 | |||||
* | Fix an off by one error when trying to perform copy initialization of ↵ | Anders Carlsson | 2009-05-31 | 1 | -0/+3 | |
| | | | | | | operator new and operator delete arguments. Sebastian, please review. llvm-svn: 72670 | |||||
* | When there are any member new operators, global versions aren't looked up at ↵ | Sebastian Redl | 2009-05-14 | 1 | -2/+4 | |
| | | | | | | all. llvm-svn: 71780 | |||||
* | Make sure to use RequireCompleteType rather than testing for | Douglas Gregor | 2009-03-24 | 1 | -1/+4 | |
| | | | | | | | incomplete types. RequireCompleteType is needed when the type may be completed by instantiating a template. llvm-svn: 67643 | |||||
* | Rename clang to clang-cc. | Daniel Dunbar | 2009-03-24 | 1 | -1/+1 | |
| | | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602 | |||||
* | Update new expression to make use of Declarator::getSourceRange(). | Sebastian Redl | 2009-02-09 | 1 | -0/+3 | |
| | | | | | | References are not objects; implement this in Type::isObjectType(). llvm-svn: 64152 | |||||
* | Make one expected-diag directive match exactly one actual diagnostic. | Sebastian Redl | 2009-02-07 | 1 | -5/+5 | |
| | | | | | | This uncovers some bugs, so several test cases now fail. llvm-svn: 64025 | |||||
* | Centralize error reporting of improper uses of incomplete types in the | Douglas Gregor | 2009-01-19 | 1 | -1/+1 | |
| | | | | | | | | | | new DiagnoseIncompleteType. It provides additional information about struct/class/union/enum types when possible, either by pointing to the forward declaration of that type or by pointing to the definition (if we're in the process of defining that type). Fixes <rdar://problem/6500531>. llvm-svn: 62521 | |||||
* | Code cleanup in new handling. | Sebastian Redl | 2008-12-04 | 1 | -1/+6 | |
| | | | | llvm-svn: 60557 | |||||
* | Fix some diagnostics and enhance test cases. Now tests member new and ↵ | Sebastian Redl | 2008-12-04 | 1 | -0/+9 | |
| | | | | | | ambiguous overloads. llvm-svn: 60542 | |||||
* | Overload resolution for the operator new function. Member version is still ↵ | Sebastian Redl | 2008-12-03 | 1 | -0/+7 | |
| | | | | | | untested. llvm-svn: 60503 | |||||
* | Make the parser handle ::new and ::delete correctly. | Sebastian Redl | 2008-12-02 | 1 | -0/+4 | |
| | | | | llvm-svn: 60421 | |||||
* | Handle new by passing the Declaration to the Action, not a processed type. | Sebastian Redl | 2008-12-02 | 1 | -2/+5 | |
| | | | | llvm-svn: 60413 | |||||
* | Test another error message, make sure to verify C++ new and delete tests | Douglas Gregor | 2008-11-25 | 1 | -3/+5 | |
| | | | | llvm-svn: 60007 | |||||
* | make the 'to match this' diagnostic a note. | Chris Lattner | 2008-11-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 59921 | |||||
* | Implementation of new and delete parsing and sema. | Sebastian Redl | 2008-11-21 | 1 | -0/+56 | |
This version uses VLAs to represent arrays. I'll try an alternative way next, but I want this safe first. llvm-svn: 59835 |