summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/deleted-function.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Modify some deleted function methods to better reflect reality:Alexis Hunt2011-05-061-3/+2
| | | | | | | | | | | | | | | | | | | | - New isDefined() function checks for deletedness - isThisDeclarationADefinition checks for deletedness - New doesThisDeclarationHaveABody() does what isThisDeclarationADefinition() used to do - The IsDeleted bit is not propagated across redeclarations - isDeleted() now checks the canoncial declaration - New isDeletedAsWritten() does what it says on the tin. - isUserProvided() now correct (thanks Richard!) This fixes the bug that we weren't catching void foo() = delete; void foo() {} as being a redefinition. llvm-svn: 131013
* When pretty-printing tag types, only print the tag if we're in C (andJohn McCall2010-03-101-1/+1
| | | | | | | | | | therefore not creating ElaboratedTypes, which are still pretty-printed with the written tag). Most of these testcase changes were done by script, so don't feel too sorry for my fingers. llvm-svn: 98149
* Switch default-initialization of variables of class type (or array thereof) ↵Douglas Gregor2009-12-201-2/+2
| | | | | | over to InitializationSequence. I could swear that this fixes a PR somewhere, but I couldn't figure out which one llvm-svn: 91796
* Initialization improvements: addition of string initialization and a fewEli Friedman2009-12-191-2/+2
| | | | | | | | small bug fixes in SemaInit, switch over SemaDecl to use it more often, and change a bunch of diagnostics which are different with the new initialization code. llvm-svn: 91767
* 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
* Issue good diagnostics when initialization failes due toFariborz Jahanian2009-09-151-1/+1
| | | | | | ambiguity in type conversion function selection. llvm-svn: 81898
* Add deleted functions and rvalue references to C++ status.Sebastian Redl2009-04-121-0/+2
| | | | llvm-svn: 68903
* Parse deleted member functions. Parsing member declarations goes through a ↵Sebastian Redl2009-04-121-0/+12
| | | | | | | | | different code path that I forgot previously. Implement the rvalue reference overload dance for returning local objects. Returning a local object first tries to find a move constructor now. The error message when no move constructor is defined (or is not applicable) and the copy constructor is deleted is quite ugly, though. llvm-svn: 68902
* Parse deleted function definitions and hook them up to Doug's machinery.Sebastian Redl2009-03-241-0/+22
llvm-svn: 67653
OpenPOWER on IntegriCloud