summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/new-delete.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-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 Carlsson2009-12-131-5/+5
| | | | llvm-svn: 91244
* Look through using declarations when searching for allocation overloads.Anders Carlsson2009-12-091-0/+14
| | | | llvm-svn: 90961
* When we're trying to define an implicit virtual destructor, make sure that ↵Anders Carlsson2009-11-301-0/+12
| | | | | | we have a valid delete operator. llvm-svn: 90156
* Fix test on Linux.Eli Friedman2009-11-161-2/+2
| | | | llvm-svn: 88889
* If we find a deallocation function in the class scope, but it is a placement ↵Anders Carlsson2009-11-151-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 Carlsson2009-11-141-0/+17
| | | | | | please review. llvm-svn: 88747
* Make test more platform independent (per Sebastian's comment).Fariborz Jahanian2009-11-111-2/+2
| | | | llvm-svn: 86888
* Diagnose illegally typed operator new/new[].Fariborz Jahanian2009-11-101-0/+28
| | | | llvm-svn: 86755
* Remove the Skip parameter from GetTypeForDeclarator and dependents. Take the ↵Sebastian Redl2009-10-251-0/+1
| | | | | | opportunity to improve an error message and fix PR4498. llvm-svn: 85068
* Find operators new/delete in base classes. FIXME -= 2;Douglas Gregor2009-09-301-3/+2
| | | | llvm-svn: 83119
* The C++ delete expression strips cv-qualifiers from the pointed-to type. My ↵Douglas Gregor2009-09-291-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 aDouglas Gregor2009-09-291-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_tAnders Carlsson2009-09-231-0/+2
| | | | llvm-svn: 82594
* Perform overload resolution when selecting a pointer conversionFariborz Jahanian2009-09-151-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 thatDouglas Gregor2009-09-091-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 Carlsson2009-05-311-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 Redl2009-05-141-2/+4
| | | | | | all. llvm-svn: 71780
* Make sure to use RequireCompleteType rather than testing forDouglas Gregor2009-03-241-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 Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Update new expression to make use of Declarator::getSourceRange().Sebastian Redl2009-02-091-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 Redl2009-02-071-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 theDouglas Gregor2009-01-191-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 Redl2008-12-041-1/+6
| | | | llvm-svn: 60557
* Fix some diagnostics and enhance test cases. Now tests member new and ↵Sebastian Redl2008-12-041-0/+9
| | | | | | ambiguous overloads. llvm-svn: 60542
* Overload resolution for the operator new function. Member version is still ↵Sebastian Redl2008-12-031-0/+7
| | | | | | untested. llvm-svn: 60503
* Make the parser handle ::new and ::delete correctly.Sebastian Redl2008-12-021-0/+4
| | | | llvm-svn: 60421
* Handle new by passing the Declaration to the Action, not a processed type.Sebastian Redl2008-12-021-2/+5
| | | | llvm-svn: 60413
* Test another error message, make sure to verify C++ new and delete testsDouglas Gregor2008-11-251-3/+5
| | | | llvm-svn: 60007
* make the 'to match this' diagnostic a note.Chris Lattner2008-11-231-1/+1
| | | | llvm-svn: 59921
* Implementation of new and delete parsing and sema.Sebastian Redl2008-11-211-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
OpenPOWER on IntegriCloud