aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/implicit-member-functions.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-02-23Add context note to diagnostics that occur while declaring an implicit ↵Richard Smith1-1/+2
special member function. llvm-svn: 296020
2014-01-11Use the appropriate SourceLocation for the template backtrace when doingNick Lewycky1-1/+1
template argument deduction. llvm-svn: 198995
2012-11-29The declaration of a special member can require overload resolution to beRichard Smith1-1/+68
performed, to determine whether that special member is deleted or constexpr. That overload resolution process can in turn trigger the instantiation of a template, which can do anything, including triggering the declaration of that very same special member function. When this happens, do not try to recursively declare the special member -- that's impossible. Instead, only try to realise the truth. There is no special member. llvm-svn: 168847
2011-05-10Re-do R131114 without breaking code.Alexis Hunt1-1/+1
I've edited one diagnostic which would print "copy constructor" for copy constructors and "constructor" for any other constructor. If anyone is extremely enamored with this, it can be reinstated with a simple boolean flag rather than calling getSpecialMember, which is inappropriate. llvm-svn: 131143
2010-07-08When looking for an entity's Scope, don't consider scopes that can't contain ↵Sebastian Redl1-0/+11
declarations. Fixes PR7594. llvm-svn: 107927
2010-04-13Allow classes to befriend implicitly-declared members. Fixes PR6207 forJohn McCall1-4/+4
members of non-templated classes. llvm-svn: 101122
2010-04-12When creating the implicitly-declared special member functions, beDouglas Gregor1-0/+27
sure to introduce them into the current Scope (when we have one) in addition to the DeclContext for the class, so that they can be found by name lookup for inline members of the class. Fixes PR6570. llvm-svn: 101047
2009-12-15Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar1-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
2009-12-04Diagnose declarations of implicit member functions.Anders Carlsson1-0/+14
llvm-svn: 90605