OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Constexpr
(Results
1 - 4
of
4
) sorted by null
/external/clang/test/CXX/special/class.inhctor/
p2.cpp
9
// - absence or presence of
constexpr
12
constexpr
A(X<1>) {}
14
explicit
constexpr
A(X<3>) {} // expected-note 2{{here}}
19
constexpr
A a0c { X<0>{} }; // expected-error {{must be initialized by a constant expression}} expected-note {{non-
constexpr
}}
20
constexpr
A a0ic = { X<0>{} }; // expected-error {{must be initialized by a constant expression}} expected-note {{non-
constexpr
}}
24
constexpr
A a1c { X<1>{} };
25
constexpr
A a1ic = { X<1>{} };
29
constexpr
A a2c { X<2>{} }; // expected-error {{must be initialized by a constant expression}} expected-note (…)
[
all
...]
/external/clang/test/SemaTemplate/
constexpr-instantiate.cpp
5
template<typename T> static
constexpr
T get() { return T(); }
11
constexpr
int j = A::get<int>();
13
template<typename T>
constexpr
int consume(T);
17
template<typename T>
constexpr
int consume(T) { return 0; }
19
constexpr
int l = consume(0);
21
constexpr
int m = k; // expected-error {{constant expression}} expected-note {{initializer of 'k'}}
25
template<typename T>
constexpr
T f(T n) { return n; }
36
template<typename T>
constexpr
T f(T n) { return n; }
46
template<typename T>
constexpr
T f(T t) { return t; }
65
constexpr
int m = S<int>::k; // o
[
all
...]
/external/clang/test/SemaCXX/
cxx1y-deduced-return-type.cpp
262
namespace
Constexpr
{
263
constexpr
auto f1(int n) { return n; }
264
template<typename T> struct X {
constexpr
auto f() {} }; // PR18746
265
template<typename T> struct Y {
constexpr
T f() {} }; // expected-note {{control reached end of
constexpr
function}}
269
constexpr
int q = Y<int>().f(); // expected-error {{must be initialized by a constant expression}} expected-note {{in call to '&Y<int>()->f()'}}
272
constexpr
auto f2(int n) { return nl; } // expected-error {{return type '
Constexpr
::NonLiteral' is not a literal type}}
/external/clang/lib/Sema/
SemaDeclCXX.cpp
587
// C++11 [dcl.
constexpr
]p1: If any declaration of a function or function
588
// template has a
constexpr
specifier then all its declarations shall
589
// contain the
constexpr
specifier.
752
// the requirements of a
constexpr
function definition or a
constexpr
756
// This implements C++11 [dcl.
constexpr
]p3,4, as amended by DR1360.
760
// C++11 [dcl.
constexpr
]p4:
761
// The definition of a
constexpr
constructor shall satisfy the following
777
// C++11 [dcl.
constexpr
]p3:
778
// The definition of a
constexpr
function shall satisfy the followin
[
all
...]
Completed in 691 milliseconds