Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:noexcept

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, then
16 // Noexcept::Noexcept is not declared constexpr, therefore noexcept(Noexcept())
18 bool ThrowSomething() noexcept(false);
20 bool b = noexcept(ConstExpr()) && ThrowSomething(); // expected-error {{cannot be used by non-static data member initializer}}
23 bool w = noexcept(ConstExpr());
26 // knowing whether it produces a noexcept expression.
28 int n = ExceptionIf<noexcept(TemplateArg())>::f(); // expected-error {{cannot be used by non-static data member initializer}}
30 bool x = noexcept(TemplateArg());
35 int n = ExceptionIf<noexcept(Nested())>::f(); // expected-note {{implicit default constructor for 'InClassInitializers::Nested' first required here}}
43 int n = ExceptionIf<noexcept(Nested2())>::f();
54 T() noexcept(!noexcept(Nested())); // expected-error{{incomplete type}}
62 T(int = ExceptionIf<noexcept(Default())::f()); // expected-error {{call to implicitly-deleted default constructor}}