OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Constexpr
(Results
1 - 3
of
3
) 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/lib/Sema/
SemaDeclCXX.cpp
552
// C++11 [dcl.
constexpr
]p1: If any declaration of a function or function
553
// template has a
constexpr
specifier then all its declarations shall
554
// contain the
constexpr
specifier.
712
// the requirements of a
constexpr
function definition or a
constexpr
716
// This implements C++11 [dcl.
constexpr
]p3,4, as amended by DR1360.
720
// C++11 [dcl.
constexpr
]p4:
721
// The definition of a
constexpr
constructor shall satisfy the following
738
// C++11 [dcl.
constexpr
]p3:
739
// The definition of a
constexpr
function shall satisfy the followin
[
all
...]
Completed in 54 milliseconds