summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/implicit-member-functions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add context note to diagnostics that occur while declaring an implicit ↵Richard Smith2017-02-231-1/+2
| | | | | | special member function. llvm-svn: 296020
* Use the appropriate SourceLocation for the template backtrace when doingNick Lewycky2014-01-111-1/+1
| | | | | | template argument deduction. llvm-svn: 198995
* The declaration of a special member can require overload resolution to beRichard Smith2012-11-291-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
* Re-do R131114 without breaking code.Alexis Hunt2011-05-101-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
* When looking for an entity's Scope, don't consider scopes that can't contain ↵Sebastian Redl2010-07-081-0/+11
| | | | | | declarations. Fixes PR7594. llvm-svn: 107927
* Allow classes to befriend implicitly-declared members. Fixes PR6207 forJohn McCall2010-04-131-4/+4
| | | | | | members of non-templated classes. llvm-svn: 101122
* When creating the implicitly-declared special member functions, beDouglas Gregor2010-04-121-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
* 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
* Diagnose declarations of implicit member functions.Anders Carlsson2009-12-041-0/+14
llvm-svn: 90605
OpenPOWER on IntegriCloud