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
263
namespace
Constexpr
{
264
constexpr
auto f1(int n) { return n; }
266
constexpr
auto f2(int n) { return nl; } // expected-error {{return type '
Constexpr
::NonLiteral' is not a literal type}}
/external/clang/lib/Sema/
SemaDeclCXX.cpp
583
// C++11 [dcl.
constexpr
]p1: If any declaration of a function or function
584
// template has a
constexpr
specifier then all its declarations shall
585
// contain the
constexpr
specifier.
740
// the requirements of a
constexpr
function definition or a
constexpr
744
// This implements C++11 [dcl.
constexpr
]p3,4, as amended by DR1360.
748
// C++11 [dcl.
constexpr
]p4:
749
// The definition of a
constexpr
constructor shall satisfy the following
766
// C++11 [dcl.
constexpr
]p3:
767
// The definition of a
constexpr
function shall satisfy the followin
[
all
...]
Completed in 1155 milliseconds