HomeSort by relevance Sort by last modified time
    Searched full:defaulted (Results 1 - 25 of 272) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/
p1.cpp 3 // A function that is explicitly defaulted shall
8 DefArg(int n = 5) = default; // expected-error {{an explicitly-defaulted constructor cannot have default arguments}}
9 DefArg(const DefArg &DA = make()) = default; // expected-error {{an explicitly-defaulted constructor cannot have default arguments}}
10 DefArg(const DefArg &DA, int k = 3) = default; // expected-error {{an explicitly-defaulted copy constructor cannot have default arguments}}
11 DefArg(DefArg &&DA = make()) = default; // expected-error {{an explicitly-defaulted constructor cannot have default arguments}}
12 DefArg(DefArg &&DA, int k = 3) = default; // expected-error {{an explicitly-defaulted move constructor cannot have default arguments}}
p2.cpp 7 Const(const Const&&) = default; // expected-error {{the parameter for an explicitly-defaulted move constructor may not be const}}
8 Const& operator=(const Const&&) = default; // expected-error {{the parameter for an explicitly-defaulted move assignment operator may not be const}}
12 Volatile(volatile Volatile&&) = default; // expected-error {{the parameter for an explicitly-defaulted move constructor may not be volatile}}
13 Volatile& operator=(volatile Volatile&&) = default; // expected-error {{the parameter for an explicitly-defaulted move assignment operator may not be volatile}}
17 AssignmentRet1&& operator=(AssignmentRet1&&) = default; // expected-error {{explicitly-defaulted move assignment operator must return 'move::AssignmentRet1 &'}}
21 const AssignmentRet2& operator=(AssignmentRet2&&) = default; // expected-error {{explicitly-defaulted move assignment operator must return 'move::AssignmentRet2 &'}}
25 ConstAssignment& operator=(ConstAssignment&&) const = default; // expected-error {{an explicitly-defaulted move assignment operator may not have 'const', 'constexpr' or 'volatile' qualifiers}}
31 Volatile(const volatile Volatile&) = default; // expected-error {{the parameter for an explicitly-defaulted copy constructor may not be volatile}}
32 Volatile& operator=(const volatile Volatile&) = default; // expected-error {{the parameter for an explicitly-defaulted copy assignment operator may not be volatile}}
65 AssignmentRet1&& operator=(const AssignmentRet1&) = default; // expected-error {{explicitly-defaulted copy assignment operator must return 'copy::AssignmentRet1 &'}
    [all...]
  /external/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/
p2.cpp 3 // An explicitly-defaulted function may be declared constexpr only if it would
6 constexpr S1() = default; // expected-error {{defaulted definition of default constructor is not constexpr}}
9 constexpr S1 &operator=(const S1&) const = default; // expected-error {{explicitly-defaulted copy assignment operator may not have}}
10 constexpr S1 &operator=(S1&&) const = default; // expected-error {{explicitly-defaulted move assignment operator may not have}}
21 constexpr S2(const S2&) = default; // expected-error {{defaulted definition of copy constructor is not constexpr}}
22 constexpr S2(S2&&) = default; // expected-error {{defaulted definition of move constructor is not constexpr}}
26 // If a function is explicitly defaulted on its first declaration
59 // An explicitly-defaulted function may have an exception specification only if
70 E2() noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted default constructor does not match the calculated one}}
71 E2(const E2&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted copy constructor does not match the calculated one}
    [all...]
p1.cpp 3 // A function that is explicitly defaulted shall
6 A(int) = default; // expected-error {{only special member functions may be defaulted}}
  /external/clang/test/SemaCXX/
cxx11-unused.cpp 4 // defaulted functions
microsoft-dtor-lookup-cxx11.cpp 10 virtual ~T() = default; // expected-note {{explicitly defaulted function was implicitly deleted here}}
implicit-exception-spec.cpp 6 // The exception specification of a defaulted default constructor depends on
20 bool b = noexcept(ConstExpr()) && ThrowSomething(); // expected-error {{cannot use defaulted default constructor of 'ConstExpr' within the class outside of member functions}}
27 int n = ExceptionIf<noexcept(TemplateArg())>::f(); // expected-error {{cannot use defaulted default constructor of 'TemplateArg' within the class outside of member functions}}
34 // expected-error@+1 {{cannot use defaulted default constructor of 'Inner' within 'Nested' outside of member functions}}
43 // expected-error@+1 {{cannot use defaulted default constructor of 'Inner' within 'Nested2' outside of member functions}}
cxx0x-defaulted-functions.cpp 145 Y::Y() = default; // expected-error {{definition of explicitly defaulted}}
146 Y::Y(const Y&) = default; // expected-error {{definition of explicitly defaulted}}
147 Y::Y(Y&&) = default; // expected-error {{definition of explicitly defaulted}}
148 Y &Y::operator=(const Y&) = default; // expected-error {{definition of explicitly defaulted}}
149 Y &Y::operator=(Y&&) = default; // expected-error {{definition of explicitly defaulted}}
150 Y::~Y() = default; // expected-error {{definition of explicitly defaulted}}
171 Outer<T>::Inner2<T>::~Inner2() = default; // expected-error {{nested name specifier 'Outer<T>::Inner2<T>::' for declaration does not refer into a class, class template or class template partial specialization}} expected-error {{only special member functions may be defaulted}}
member-init.cpp 17 int &n = // expected-error {{cannot use defaulted default constructor of 'Recurse' within the class outside of member functions because 'n' has an initializer}}
54 CheckExcSpecFail() noexcept(true) = default; // expected-error {{exception specification of explicitly defaulted default constructor does not match the calculated one}}
132 int m1 = 0; // expected-error {{cannot use defaulted default constructor of 'B' within 'A' outside of member functions because 'm1' has an initializer}}
142 int m1 = 0; // expected-error {{cannot use defaulted default constructor of 'B' within 'A' outside of member functions because 'm1' has an initializer}}
154 int m1 = 0; // expected-error {{cannot use defaulted default constructor of 'C' within 'A' outside of member functions because 'm1' has an initializer}}
158 int m1 = 0; // expected-error {{cannot use defaulted default constructor of 'D' within 'A' outside of member functions because 'm1' has an initializer}}
  /external/clang/test/CXX/special/class.copy/
p28-cxx11.cpp 5 // called by a defaulted assignment operator, and the selected operator might
p11.0x.move.cpp 8 // A defaulted move constructor for a class X is defined as deleted if X has:
62 // constructor, because it was defaulted and deleted).
183 // ok, A's explicitly-defaulted move operations copy m_.
  /external/clang/test/CodeGen/
cxx-default-arg.cpp 4 // that makes all of the defaulted arguments explicit. The resulting
  /external/libxml2/python/tests/
attribs.py 23 print("Failed to find defaulted attribute abc:attr")
  /libcore/luni/src/test/java/libcore/java/io/
OldObjectInputStreamGetFieldTest.java 80 Support_GetPutFieldsDefaulted defaulted = local
88 defaulted.equals(newDefaulted));
103 fields.defaulted("noField");
107 assertFalse("The field longValue should not be defaulted.",
108 fields.defaulted("longValue"));
110 // Now the same with defaulted fields.
116 assertTrue("The field longValue should be defaulted.",
117 fields.defaulted("longValue"));
  /external/bison/src/
graphviz.c 175 bool defaulted = false; local
187 defaulted = true;
198 if (! defaulted)
207 conclude_red (&eout, source, ruleno, true, firste && !defaulted, fout);
  /external/clang/test/PCH/
cxx0x-default-delete.cpp 30 foo::foo() { } // expected-error{{definition of explicitly defaulted default constructor}}
  /hardware/bsp/intel/peripheral/libmraa/cmake/modules/
FindNodejs.cmake 54 message ("defaulted to node 0.10.30")
  /hardware/bsp/intel/peripheral/libupm/cmake/modules/
FindNode.cmake 56 message ("defaulted to node 0.10.30")
  /external/clang/test/CXX/special/class.dtor/
p5-0x.cpp 13 // A defaulted destructor for a class X is defined as deleted if:
98 virtual ~D3() = default; // expected-note {{explicitly defaulted function was implicitly deleted here}}
  /external/clang/test/Parser/
cxx0x-decl.cpp 21 // Due to a peculiarity in the C++11 grammar, a deleted or defaulted function
40 typedef void d() = default; // expected-error {{function definition declared 'typedef'}} expected-error {{only special member functions may be defaulted}}
  /external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/docs/
INSTALL.MAC 11 to 10.5. In previous versions of Mac OS X, this defaulted to 10.1.
  /external/libpng/scripts/
symbols.c 35 * defaulted to 'off' in scripts/pnglibconf.dfa
  /frameworks/native/include/ui/
FrameStats.h 37 * the application). They are either explicitly set or defaulted to the time when
  /hardware/ti/omap3/dspbridge/inc/
dbc.h 30 * Requires that the GT->ERROR function has been defaulted to a valid
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p3.cpp 61 // destructor can be defaulted. Destructors can't be constexpr since they
62 // don't have a literal return type. Defaulted assignment operators can't be
66 // expected-error@-2 {{an explicitly-defaulted copy assignment operator may not have 'const', 'constexpr' or 'volatile' qualifiers}}
69 // expected-error@-5 {{defaulted definition of copy assignment operator is not constexpr}}
81 // expected-error@-1 {{an explicitly-defaulted copy assignment operator may not have 'const' or 'volatile' qualifiers}}

Completed in 6238 milliseconds

1 2 3 4 5 6 7 8 91011