HomeSort by relevance Sort by last modified time
    Searched refs:constexpr (Results 1 - 22 of 22) sorted by null

  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p9.cpp 3 // A constexpr specifier used in an object declaration declares the object as
5 constexpr int a = 0;
9 constexpr int *b = &i;
12 constexpr int &c = i;
15 constexpr int (*d)(int) = 0;
18 // A variable declaration which uses the constexpr specifier shall have an
20 constexpr int ni1; // expected-error {{declaration of constexpr variable 'ni1' requires an initializer}}
21 constexpr struct C { C(); } ni2; // expected-error {{declaration of constexpr variable 'ni2' requires an initializer}
    [all...]
p1.cpp 11 constexpr int i1 = 0;
12 constexpr int f1() { return 0; }
14 constexpr static int mi1 = 0;
17 constexpr int s1::mi2 = 0;
21 constexpr extern int i2; // expected-error {{constexpr variable declaration must be a definition}}
23 constexpr notlit nl1; // expected-error {{declaration of constexpr variable 'nl1' requires an initializer}}
25 void f2(constexpr int i) {} // expected-error {{function parameter cannot be constexpr}}
38 class C2 {} constexpr; \/\/ expected-error {{class cannot be marked constexpr}} variable in typeref:class:C2
39 struct S2 {} constexpr; \/\/ expected-error {{struct cannot be marked constexpr}} variable in typeref:struct:S2
40 union U2 {} constexpr; \/\/ expected-error {{union cannot be marked constexpr}} variable in typeref:union:U2
41 enum E2 {} constexpr; \/\/ expected-error {{enum cannot be marked constexpr}} variable in typeref:enum:E2
    [all...]
p3.cpp 11 struct NonLiteral { // expected-note 4{{no constexpr constructors}}
16 constexpr Literal() {}
27 // Note, the wording applies constraints to the definition of constexpr
31 // The definition of a constexpr function shall satisfy the following
34 constexpr T(); // expected-error {{non-literal type 'T' cannot have constexpr members}}
37 virtual constexpr int ExplicitlyVirtual(); // expected-error {{virtual function cannot be constexpr}}
39 constexpr int ImplicitlyVirtual(); // expected-error {{virtual function cannot be constexpr}}
    [all...]
p2.cpp 3 // constexpr functions and constexpr constructors are implicitly inline.
5 constexpr S(int n);
6 constexpr int g();
10 constexpr S::S(int n) : n(n) {}
12 constexpr S f(S s) {
16 constexpr int S::g() {
p4.cpp 11 struct NonLiteral { // expected-note 2{{no constexpr constructors}}
16 constexpr Literal() {}
20 // Note, the wording applies constraints to the definition of constexpr
24 // In the definition of a constexpr constructor, each of the parameter types
27 constexpr S(int, N::C);
28 constexpr S(int, NonLiteral, N::C); // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
29 constexpr S(int, NonLiteral = 42); // expected-error {{constexpr constructor's 2nd parameter type 'NonLiteral' is not a literal type}}
32 constexpr S() = default
    [all...]
p6.cpp 17 constexpr Literal() {}
27 constexpr int ImplicitlyVirtual() { return 0; }
32 constexpr int a = ImplicitVirtualFromDependentBase<S>().ImplicitlyVirtual(); // desired-error {{not a constant expression}}
33 constexpr int b = ImplicitVirtualFromDependentBase<T>().ImplicitlyVirtual(); // ok
37 constexpr R F() { return 0; }
41 constexpr int c = ConstexprMember<int>().F(); // ok
42 constexpr int d = ConstexprMember<NonLiteral>().F(); // desired-error {{not a constant expression}}
45 template<typename ...P> struct ConstexprCtor { // expected-note 2{{no constexpr constructors}}
46 constexpr ConstexprCtor(P...); // expected-note {{constructor template instantiation is not constexpr because 1st parameter type 'NonLiteral' is not a literal type}}
    [all...]
p8.cpp 4 constexpr void f();
5 constexpr void g() const;
15 class debug_flag { // expected-note {{not an aggregate and has no constexpr constructors}}
18 constexpr bool is_on(); // expected-error {{non-literal type 'std_example::debug_flag' cannot have constexpr members}}
23 constexpr int bar(int x, int y) // expected-note {{here}}
25 int bar(int x, int y) // expected-error {{non-constexpr declaration of 'bar' follows constexpr declaration}}
  /external/clang/test/CXX/class/class.static/class.static.data/
p3.cpp 8 static constexpr int a = 0;
9 static constexpr int b; // expected-error {{declaration of constexpr variable 'b' requires an initializer}}
11 static constexpr int c = 0;
15 static constexpr double e = 0.0; // ok
16 static const double f = 0.0; // expected-warning {{extension}} expected-note {{use 'constexpr' specifier}}
17 static char *const g = 0; // expected-error {{requires 'constexpr' specifier}}
21 constexpr int S::a;
22 constexpr int S::b = 0;
25 constexpr int S::d = 0
    [all...]
  /external/clang/test/FixIt/
fixit-cxx0x.cpp 21 namespace Constexpr {
22 extern constexpr int a; // expected-error {{must be a definition}}
25 extern constexpr int *b; // expected-error {{must be a definition}}
28 extern constexpr int &c; // expected-error {{must be a definition}}
31 extern constexpr const int d; // expected-error {{must be a definition}}
35 constexpr int a = 0;
36 constexpr int *b = &z;
37 constexpr int &c = z;
38 constexpr int d = a;
43 static constexpr int b; // xpected-error {{requires an initializer}
    [all...]
  /external/clang/test/SemaCXX/
cxx0x-constexpr-const.cpp 3 constexpr int x = 1;
4 constexpr int id(int x) { return x; }
cxx0x-class.cpp 23 static const float x = 5.0f; // expected-warning {{GNU extension}} expected-note {{use 'constexpr' specifier to silence this warning}}
24 static const float y = foo(); // expected-warning {{GNU extension}} expected-note {{use 'constexpr' specifier to silence this warning}} expected-error {{in-class initializer is not a constant expression}}
25 static constexpr float x2 = 5.0f;
26 static constexpr float y2 = foo(); // expected-error {{must be initialized by a constant expression}}
literal-type.cpp 24 // -- it is an aggregate type or has at least one constexpr constructor
49 // FIXME: Test constexpr constructors and non-static members with initializers
55 constexpr HasNonConstExprMemInit(int y) {}
62 constexpr HasConstExprCtor(int x) : x(x) {}
67 template <typename U> constexpr HasConstExprCtorTemplate(U y) : x(y) {}
cxx98-compat.cpp 98 constexpr int const_expr = 0; // expected-warning {{'constexpr' specifier is incompatible with C++98}}
  /external/clang/test/CXX/basic/basic.types/
p10.cpp 8 constexpr int f1(double);
12 constexpr int f2(S &);
18 constexpr UserProvDtor(); // expected-error {{non-literal type 'UserProvDtor' cannot have constexpr members}}
22 constexpr NonTrivDtor(); // expected-error {{non-literal type 'NonTrivDtor' cannot have constexpr members}}
30 constexpr DerivedFromNonTrivDtor();
32 constexpr int f(DerivedFromNonTrivDtor<NonTrivDtorBase>); // expected-error {{constexpr function's 1st parameter type 'DerivedFromNonTrivDtor<NonTrivDtorBase>' is not a literal type}}
34 constexpr TrivDtor()
    [all...]
  /external/clang/test/CXX/temp/temp.spec/temp.explicit/
p1-0x.cpp 12 constexpr int f() { return 0; }
15 template constexpr int Y<int>::f(); // expected-error{{explicit instantiation cannot be 'constexpr'}}
  /external/clang/test/Lexer/
cxx0x_keyword_as_cxx98.cpp 3 #define constexpr const macro
4 constexpr int x = 0;
5 #undef constexpr macro
14 int CONCAT(constexpr,ession);
31 int constexpr; // expected-warning {{'constexpr' is a keyword in C++11}} variable
  /external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/
p7-0x.cpp 76 constexpr long double e40 = 1E40L, e30 = 1E30L, e39 = 1E39L;
90 constexpr long double e315 = 1E315L, e305 = 1E305L, e314 = 1E314L;
  /external/clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/
p1.cpp 103 for (constexpr int a : A()) {} // expected-error {{loop variable 'a' may not be declared 'constexpr'}}
  /build/tools/droiddoc/templates-pdk/assets/
prettify.js 5 dc="(?:",ec=")",fc="gi",gc="PRE",hc='<!DOCTYPE foo PUBLIC "foo bar">\n<foo />',ic="\t",jc="\n",kc="[^<]+|<!--[\\s\\S]*?--\>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>|</?[a-zA-Z][^>]*>|<",lc="nocode",mc=' $1="$2$3$4"',S="pln",nc="string",T="lang-",oc="src",U="str",pc="'\"",qc="'\"`",rc="\"'",V="com",sc="lang-regex",tc="(/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/)",uc="kwd",vc="^(?:",wc=")\\b",xc=" \r\n\t\u00a0",yc="lit",zc="typ",Ac="0123456789",Y="pun",Bc="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try debugger eval export function get null set undefined var with Infinity NaN caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END break continue do else for if return while case done elif esac eval fi function in local set then until ",
6 Cc="</span>",Dc='<span class="',Ec='">',Fc="$1&nbsp;",Gc="&nbsp;<br />",Hc="<br />",Ic="console",Jc="cannot override language handler %s",Kc="default-markup",Lc="default-code",Mc="dec",Z="lang-js",$="lang-css",Nc="lang-in.tag",Oc="htm",Pc="html",Qc="mxml",Rc="xhtml",Sc="xml",Tc="xsl",Uc=" \t\r\n",Vc="atv",Wc="tag",Xc="atn",Yc="lang-uq.val",Zc="in.tag",$c="uq.val",ad="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ",
  /build/tools/droiddoc/templates-sdk/assets/
prettify.js 5 dc="(?:",ec=")",fc="gi",gc="PRE",hc='<!DOCTYPE foo PUBLIC "foo bar">\n<foo />',ic="\t",jc="\n",kc="[^<]+|<!--[\\s\\S]*?--\>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>|</?[a-zA-Z][^>]*>|<",lc="nocode",mc=' $1="$2$3$4"',S="pln",nc="string",T="lang-",oc="src",U="str",pc="'\"",qc="'\"`",rc="\"'",V="com",sc="lang-regex",tc="(/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/)",uc="kwd",vc="^(?:",wc=")\\b",xc=" \r\n\t\u00a0",yc="lit",zc="typ",Ac="0123456789",Y="pun",Bc="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try debugger eval export function get null set undefined var with Infinity NaN caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END break continue do else for if return while case done elif esac eval fi function in local set then until ",
6 Cc="</span>",Dc='<span class="',Ec='">',Fc="$1&nbsp;",Gc="&nbsp;<br />",Hc="<br />",Ic="console",Jc="cannot override language handler %s",Kc="default-markup",Lc="default-code",Mc="dec",Z="lang-js",$="lang-css",Nc="lang-in.tag",Oc="htm",Pc="html",Qc="mxml",Rc="xhtml",Sc="xml",Tc="xsl",Uc=" \t\r\n",Vc="atv",Wc="tag",Xc="atn",Yc="lang-uq.val",Zc="in.tag",$c="uq.val",ad="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ",
  /external/doclava/res/assets/templates/assets/
prettify.js 5 dc="(?:",ec=")",fc="gi",gc="PRE",hc='<!DOCTYPE foo PUBLIC "foo bar">\n<foo />',ic="\t",jc="\n",kc="[^<]+|<!--[\\s\\S]*?--\>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>|</?[a-zA-Z][^>]*>|<",lc="nocode",mc=' $1="$2$3$4"',S="pln",nc="string",T="lang-",oc="src",U="str",pc="'\"",qc="'\"`",rc="\"'",V="com",sc="lang-regex",tc="(/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/)",uc="kwd",vc="^(?:",wc=")\\b",xc=" \r\n\t\u00a0",yc="lit",zc="typ",Ac="0123456789",Y="pun",Bc="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try debugger eval export function get null set undefined var with Infinity NaN caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END break continue do else for if return while and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None break continue do else for if return while alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END break continue do else for if return while case done elif esac eval fi function in local set then until ",
6 Cc="</span>",Dc='<span class="',Ec='">',Fc="$1&nbsp;",Gc="&nbsp;<br />",Hc="<br />",Ic="console",Jc="cannot override language handler %s",Kc="default-markup",Lc="default-code",Mc="dec",Z="lang-js",$="lang-css",Nc="lang-in.tag",Oc="htm",Pc="html",Qc="mxml",Rc="xhtml",Sc="xml",Tc="xsl",Uc=" \t\r\n",Vc="atv",Wc="tag",Xc="atn",Yc="lang-uq.val",Zc="in.tag",$c="uq.val",ad="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ",
  /dalvik/docs/
prettify.js 115 "concept concept_map const_cast constexpr decltype " +
    [all...]

Completed in 1572 milliseconds