HomeSort by relevance Sort by last modified time
    Searched refs:noexcept (Results 1 - 25 of 500) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/
ser.h 1 // Serialization testing helper for noexcept, included by cg.cpp.
4 return noexcept(0);
7 return noexcept(throw 0);
cg.cpp 15 b = noexcept(0);
17 b = noexcept(throw 0);
23 D(), noexcept(E());
  /external/clang/test/CXX/except/except.spec/
p15.cpp 13 // Deallocation functions are implicitly noexcept.
19 static_assert(noexcept(operator delete(0)), "");
20 static_assert(noexcept(operator delete[](0)), "");
26 static_assert(noexcept(operator delete(0, 0.f)), "");
27 static_assert(noexcept(operator delete[](0, 0.f)), "");
31 static_assert(!noexcept(operator delete(0, 0.)), "");
32 void operator delete(void*, double) noexcept; // expected-error {{does not match}}
p9-noexcept.cpp 5 void target() noexcept
16 void reverse() noexcept(false) function
p2-places.cpp 46 void f() noexcept(false);
48 void (*fp)() noexcept(false);
50 void g(void pfa() noexcept(false));
52 typedef int (*pf)() noexcept(false); // expected-error {{specifications are not allowed in typedefs}} typedef in namespace:noex
54 void (*h())() noexcept(false);
56 void (*i() noexcept(false))(void (*)() noexcept(true)) noexcept(false);
58 void (**k)(void pfa() noexcept(false)); // no-error
60 void (**j)() noexcept(false); // expected-error {{not allowed beyond a single}
    [all...]
p1.cpp 25 // Simple parser tests, noexcept specification.
29 void f1() noexcept { }
30 void f2() noexcept (true) { } function in namespace:noex
31 void f3() noexcept (false) { } function in namespace:noex
32 void f4() noexcept (1 < 2) { }
35 void foo() noexcept { }
36 void bar() noexcept (true) { } function in class:noex::CA1
39 void (*fptr1)() noexcept; member in namespace:noex
40 void (*fptr2)() noexcept (true);
46 void f() throw(int) noexcept { } // expected-error {{cannot have both}
68 void g(T x) noexcept((sizeof(T) == sizeof(int)) || noexcept(f(x))) { } function in namespace:noexcept_unevaluated
    [all...]
p5-virtual.cpp 35 virtual void f7() noexcept; member in struct:Base
36 virtual void f8() noexcept; member in struct:Base
37 virtual void f9() noexcept(false);
38 virtual void f10() noexcept(false);
41 virtual void f12() noexcept; member in struct:Base
42 virtual void f13() noexcept(false);
54 virtual void g6() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base
55 virtual void g7() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base
57 virtual void g8() noexcept; // expected-note {{overridden virtual function is here}} member in struct:Base
71 virtual void f7() noexcept; member in struct:Derived
76 virtual void f11() noexcept; member in struct:Derived
81 virtual void f15() noexcept; member in struct:Derived
    [all...]
template.cpp 6 template <int N> void f2() noexcept(N > 1);
11 void (*t3)() noexcept = &f2<2>; // no-error
12 void (*t4)() noexcept = &f2<0>; // expected-error {{not superset}}
p3.cpp 44 // noexcept is compatible with itself
45 extern void (*r10)() noexcept;
46 extern void (*r10)() noexcept;
48 // noexcept(true) is compatible with noexcept
49 extern void (*r11)() noexcept;
50 extern void (*r11)() noexcept(true);
52 // noexcept(false) isn't
53 extern void (*r12)() noexcept; // expected-note {{previous declaration}}
54 extern void (*r12)() noexcept(false); // expected-error {{does not match}
    [all...]
p4.cpp 12 void S::a() noexcept {} // expected-error {{does not match previous}}
13 S::~S() noexcept {} // expected-warning {{function previously declared with an implicit exception specification redeclared with an explicit exception specification}}
14 void S::operator delete(void*) noexcept {} // expected-warning {{function previously declared with an implicit exception specification redeclared with an explicit exception specification}}
17 void a() noexcept; // expected-note {{here}} member in struct:T
18 ~T() noexcept; // expected-note {{here}} member in struct:T
19 void operator delete(void*) noexcept; // expected-note {{here}} member in struct:T
22 void T::a() {} // expected-warning {{missing exception specification 'noexcept'}}
35 template<typename T> U<T>::~U() noexcept(true) {} // expected-error {{exception specification in declaration does not match previous declaration}} function
36 template<typename T> void U<T>::operator delete(void*) noexcept(false) {} // expected-error {{exception specification in declaration does not match previous declaration}} function
p11.cpp 5 void f() noexcept {
p14.cpp 40 static_assert(noexcept(IC0()), "IC0() does not throw");
41 static_assert(!noexcept(IC1()), "IC1() throws");
46 NoThrowMove(NoThrowMove &&) noexcept; member in struct:PR13381::NoThrowMove
48 NoThrowMove &operator=(NoThrowMove &&) const noexcept; member in struct:PR13381::NoThrowMove
51 NoThrowMoveOnly(NoThrowMoveOnly &&) noexcept; member in struct:PR13381::NoThrowMoveOnly
52 NoThrowMoveOnly &operator=(NoThrowMoveOnly &&) noexcept; member in struct:PR13381::NoThrowMoveOnly
63 static_assert(!noexcept(X(X::val())), "");
64 static_assert(!noexcept(X::ref() = X::val()), "");
68 // Part of DR1351: the implicit exception-specification is noexcept(false) if
70 // "any". Hence it is compatible with noexcept(false)
    [all...]
canonical.cpp 9 template <class _Tp> _Tp&& declval() noexcept; member in namespace:std
14 static const bool value = noexcept(_Tp(declval<_Args>()...));
25 noexcept(_is_nothrow_constructible<allocator_type>::value);
33 noexcept(_is_nothrow_constructible<_Compare>::value);
48 basic_string<T, _Traits, _Allocator>::basic_string() noexcept(_is_nothrow_constructible<allocator_type>::value) {} function in namespace:std
52 noexcept(_is_nothrow_constructible<_Compare>::value) {} function in namespace:std
  /prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/
enable_special_members.h 89 { constexpr _Enable_default_constructor() noexcept = delete; }; member in struct:_Enable_default_constructor
93 { ~_Enable_destructor() noexcept = delete; }; member in struct:_Enable_destructor
98 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
99 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
100 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
102 operator=(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
104 operator=(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
110 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
111 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
112 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default member in struct:_Enable_copy_move
114 operator=(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
116 operator=(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
122 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
123 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
124 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
126 operator=(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
128 operator=(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
134 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
135 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
136 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
138 operator=(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
140 operator=(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
146 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
147 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
148 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
150 operator=(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
152 operator=(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
158 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
159 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
160 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
162 operator=(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
164 operator=(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
170 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
171 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
172 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
174 operator=(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
176 operator=(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
182 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
183 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
184 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
186 operator=(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
188 operator=(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
194 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
195 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
196 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
198 operator=(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
200 operator=(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
206 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
207 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
208 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
210 operator=(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
212 operator=(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
218 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
219 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
220 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; member in struct:_Enable_copy_move
222 operator=(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
224 operator=(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
230 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
231 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
232 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
234 operator=(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
236 operator=(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
242 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
243 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
244 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
246 operator=(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
248 operator=(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
254 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
255 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; member in struct:_Enable_copy_move
256 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
258 operator=(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
260 operator=(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
266 constexpr _Enable_copy_move() noexcept = default; member in struct:_Enable_copy_move
267 constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
268 constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
270 operator=(_Enable_copy_move const&) noexcept = delete; member in struct:_Enable_copy_move
272 operator=(_Enable_copy_move&&) noexcept = delete; member in struct:_Enable_copy_move
    [all...]
  /external/clang/test/SemaTemplate/
instantiation-depth-exception-spec.cpp 3 template<typename T> T go(T a) noexcept(noexcept(go(a))); // \
instantiation-depth.cpp 5 #ifndef NOEXCEPT
22 S() noexcept(noexcept(T()));
exception-spec-crash.cpp 18 noexcept(is_nothrow_move_constructible<allocator_type>::value);
22 Foo(Foo &&) noexcept = default; member in class:Foo
28 Foo &operator=(Foo &&) noexcept = default; member in class:Foo
  /external/clang/test/CXX/expr/expr.prim/expr.prim.general/
p3-0x.cpp 5 float &f(int*) const noexcept; member in struct:A
8 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f(this->ptr));
9 auto g2() const noexcept(noexcept(f((*this).ptr))) -> decltype(f(ptr));
15 static_assert(!noexcept(a.g1()), "exception-specification failure");
16 static_assert(noexcept(a.g2()), "exception-specification failure");
30 float &f(T*) const noexcept; member in struct:C
33 auto g1() noexcept(noexcept(f(ptr))) -> decltype(f(ptr))
76 iter_swap(I x, I y) noexcept; member in namespace:PR10036
144 void foo(Derived& d) noexcept(noexcept(d.bar(d))) {} \/\/ expected-error {{cannot bind to a value of unrelated type}} function in struct:PR12564::Derived
    [all...]
  /external/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/
p2.cpp 62 E1() noexcept = default; member in struct:E1
63 E1(const E1&) noexcept = default; member in struct:E1
64 E1(E1&&) noexcept = default; member in struct:E1
65 E1 &operator=(const E1&) noexcept = default; member in struct:E1
66 E1 &operator=(E1&&) noexcept = default; member in struct:E1
67 ~E1() noexcept = default; member in struct:E1
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}}
72 E2(E2&&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted move constructor does not match the calculated one}}
73 E2 &operator=(const E2&) noexcept(false) = default; // expected-error {{exception specification of explicitly defaulted copy assignm (…)
    [all...]
  /external/clang/test/CodeGenCXX/
noexcept.cpp 5 // std::terminate in a noexcept function.
14 void test() noexcept {
throw-expression-cleanup.cpp 8 Error(const X&) noexcept; member in struct:Error
  /external/clang/test/CXX/special/class.dtor/
p3.cpp 7 A::~A() noexcept {} // expected-warning {{previously declared with an implicit exception specification}}
9 struct B { ~B() noexcept; }; // expected-note {{here}} member in struct:DR1492::B
16 template<typename T> C<T>::~C() noexcept {} // expected-error {{does not match previous}}
  /external/clang/test/CXX/special/class.copy/
implicit-move.cpp 9 ThrowingCopy() noexcept; member in struct:ThrowingCopy
10 ThrowingCopy(ThrowingCopy &&) noexcept; member in struct:ThrowingCopy
11 ThrowingCopy(const ThrowingCopy &) noexcept(false);
12 ThrowingCopy & operator =(ThrowingCopy &&) noexcept; member in struct:ThrowingCopy
13 ThrowingCopy & operator =(const ThrowingCopy &) noexcept(false);
18 HasCopyConstructor() noexcept; member in struct:HasCopyConstructor
19 HasCopyConstructor(const HasCopyConstructor &) noexcept(false);
24 HasCopyAssignment() noexcept; member in struct:HasCopyAssignment
25 HasCopyAssignment & operator =(const HasCopyAssignment &) noexcept(false);
30 HasMoveConstructor() noexcept; member in struct:HasMoveConstructor
31 HasMoveConstructor(HasMoveConstructor &&) noexcept; \/\/ expected-note {{copy assignment operator is implicitly deleted because 'HasMoveConstructor' has a user-declared move constructor}} member in struct:HasMoveConstructor
36 HasMoveAssignment() noexcept; member in struct:HasMoveAssignment
37 HasMoveAssignment & operator =(HasMoveAssignment &&) noexcept; member in struct:HasMoveAssignment
42 HasDestructor() noexcept; member in struct:HasDestructor
43 ~HasDestructor() noexcept; member in struct:HasDestructor
69 PrivateMove() noexcept; member in struct:PrivateMove
73 PrivateMove(PrivateMove &&) noexcept; member in struct:PrivateMove
74 PrivateMove & operator =(PrivateMove &&) noexcept; member in struct:PrivateMove
83 PrivateDestructor() noexcept; member in struct:PrivateDestructor
85 PrivateDestructor(PrivateDestructor &&) noexcept; member in struct:PrivateDestructor
87 ~PrivateDestructor() noexcept; member in struct:PrivateDestructor
96 NonTrivialCopyOnly() noexcept; member in struct:NonTrivialCopyOnly
108 ContainsConst() noexcept; member in struct:ContainsConst
114 ContainsRef() noexcept; member in struct:ContainsRef
159 ContainsRValueRef() noexcept; member in struct:ContainsRValueRef
    [all...]
  /external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
p5.cpp 53 static_assert(!noexcept(tl1()), "lambda can throw");
54 static_assert(!noexcept(tl2()), "lambda can throw");
57 auto ntl2 = []() noexcept(true) {};
58 auto ntl3 = []() noexcept {};
59 static_assert(noexcept(ntl1()), "lambda cannot throw");
60 static_assert(noexcept(ntl2()), "lambda cannot throw");
61 static_assert(noexcept(ntl3()), "lambda cannot throw");
  /external/clang/test/SemaCXX/
implicit-exception-spec.cpp 11 // Noexcept::Noexcept() is implicitly declared as noexcept(false), because it
14 // If noexcept(Noexcept()) is false, then Noexcept() is a constant expression,
15 // so noexcept(Noexcept()) is true. But if noexcept(Noexcept()) is true, the
    [all...]

Completed in 557 milliseconds

1 2 3 4 5 6 7 8 91011>>