Home
last modified time | relevance | path

Searched refs:constexpr (Results 1 – 25 of 8201) sorted by relevance

12345678910>>...329

/external/angle/src/compiler/translator/tree_util/
DBuiltIn_complete_autogen.h25 static constexpr const TSymbolUniqueId radians_Float1 = TSymbolUniqueId(0);
26 static constexpr const TSymbolUniqueId pt00B = TSymbolUniqueId(1);
27 static constexpr const TSymbolUniqueId radians_Float2 = TSymbolUniqueId(2);
28 static constexpr const TSymbolUniqueId pt10B = TSymbolUniqueId(3);
29 static constexpr const TSymbolUniqueId radians_Float3 = TSymbolUniqueId(4);
30 static constexpr const TSymbolUniqueId pt20B = TSymbolUniqueId(5);
31 static constexpr const TSymbolUniqueId radians_Float4 = TSymbolUniqueId(6);
32 static constexpr const TSymbolUniqueId pt30B = TSymbolUniqueId(7);
33 static constexpr const TSymbolUniqueId degrees_Float1 = TSymbolUniqueId(8);
34 static constexpr const TSymbolUniqueId degrees_Float2 = TSymbolUniqueId(9);
[all …]
DBuiltIn_ESSL_autogen.h25 static constexpr const TSymbolUniqueId radians_Float1 = TSymbolUniqueId(3064);
26 static constexpr const TSymbolUniqueId pt00B = TSymbolUniqueId(3065);
27 static constexpr const TSymbolUniqueId radians_Float2 = TSymbolUniqueId(3066);
28 static constexpr const TSymbolUniqueId pt10B = TSymbolUniqueId(3067);
29 static constexpr const TSymbolUniqueId radians_Float3 = TSymbolUniqueId(3068);
30 static constexpr const TSymbolUniqueId pt20B = TSymbolUniqueId(3069);
31 static constexpr const TSymbolUniqueId radians_Float4 = TSymbolUniqueId(3070);
32 static constexpr const TSymbolUniqueId pt30B = TSymbolUniqueId(3071);
33 static constexpr const TSymbolUniqueId degrees_Float1 = TSymbolUniqueId(3072);
34 static constexpr const TSymbolUniqueId degrees_Float2 = TSymbolUniqueId(3073);
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dconstexpr-vectors.cpp25 constexpr auto MathShiftOps##Type(Type a, Type b) { \
56 constexpr auto MathShiftopsInts##Type(Type a, Type b) { \
93 constexpr auto CmpMul(T t, U u) { in CmpMul()
98 constexpr auto CmpDiv(T t, U u) { in CmpDiv()
103 constexpr auto CmpRem(T t, U u) { in CmpRem()
109 constexpr auto CmpAdd(T t, U u) { in CmpAdd()
115 constexpr auto CmpSub(T t, U u) { in CmpSub()
121 constexpr auto CmpLSH(T t, U u) { in CmpLSH()
127 constexpr auto CmpRSH(T t, U u) { in CmpRSH()
133 constexpr auto CmpBinAnd(T t, U u) { in CmpBinAnd()
[all …]
Dconstant-expression-cxx11.cpp13 template<typename T> constexpr T id(const T &t) { return t; } in id()
14 template<typename T> constexpr T min(const T &a, const T &b) { in min()
17 template<typename T> constexpr T max(const T &a, const T &b) { in max()
20 template<typename T, size_t N> constexpr T *begin(T (&xs)[N]) { return xs; } in begin()
21 template<typename T, size_t N> constexpr T *end(T (&xs)[N]) { return xs + N; } in end()
24 constexpr int zero() const { return 0; } in zero()
38 constexpr B *p = &d;
39 constexpr C *q = &d;
45 constexpr B &pp = d;
46 constexpr C &qq = d;
[all …]
/external/llvm-project/flang/lib/Parser/
Dtype-parsers.h25 constexpr Parser() {} in Parser()
26 constexpr Parser(const Parser &) = default;
42 constexpr Parser<Program> program; // R501 - the "top level" production
43 constexpr Parser<SpecificationPart> specificationPart; // R504
44 constexpr Parser<ImplicitPart> implicitPart; // R505
45 constexpr Parser<DeclarationConstruct> declarationConstruct; // R507
46 constexpr Parser<SpecificationConstruct> specificationConstruct; // R508
47 constexpr Parser<ExecutionPart> executionPart; // R509
48 constexpr Parser<ExecutionPartConstruct> executionPartConstruct; // R510
49 constexpr Parser<InternalSubprogramPart> internalSubprogramPart; // R511
[all …]
/external/llvm-project/clang/test/CXX/expr/expr.const/
Dp2-0x.cpp29 constexpr NonConstexpr2(); // expected-note {{here}}
47 constexpr UndefinedConstexpr();
48 static constexpr int undefinedConstexpr1(); // expected-note {{here}}
56 static constexpr const int &id_ref(const int &n) { in id_ref()
62 constexpr const int *address_of(const int &a) { in address_of()
65 constexpr const int *return_param(int n) { in return_param()
79 constexpr T(const int &r) : in T()
84 constexpr int n = 0;
85 constexpr T t1(n); // ok
86constexpr T t2(0); // expected-error {{must be initialized by a constant expression}} expected-not…
[all …]
/external/clang/test/CXX/expr/expr.const/
Dp2-0x.cpp28 constexpr NonConstexpr2(); // expected-note {{here}}
46 constexpr UndefinedConstexpr();
47 static constexpr int undefinedConstexpr1(); // expected-note {{here}}
55 static constexpr const int &id_ref(const int &n) { in id_ref()
61 constexpr const int *address_of(const int &a) { in address_of()
64 constexpr const int *return_param(int n) { // expected-note {{declared here}} in return_param()
78 constexpr T(const int &r) : in T()
83 constexpr int n = 0;
84 constexpr T t1(n); // ok
85constexpr T t2(0); // expected-error {{must be initialized by a constant expression}} expected-not…
[all …]
/external/llvm-project/libcxx/test/support/
Dpropagate_const_helpers.h6 constexpr const int &operator*() const { return i_; }
7 constexpr int &operator*() { return i_; }
8 constexpr const int *get() const { return &i_; } in get()
9 constexpr int *get() { return &i_; } in get()
10 constexpr const int *operator->() const { return &i_; }
11 constexpr int *operator->() { return &i_; }
13 constexpr X(int i) : i_(i) {} in X()
20 constexpr const int &operator*() const { return i_; }
21 constexpr int &operator*() { return i_; }
22 constexpr const int *get() const { return &i_; } in get()
[all …]
/external/libcxx/test/support/
Dpropagate_const_helpers.h6 constexpr const int &operator*() const { return i_; }
7 constexpr int &operator*() { return i_; }
8 constexpr const int *get() const { return &i_; } in get()
9 constexpr int *get() { return &i_; } in get()
10 constexpr const int *operator->() const { return &i_; }
11 constexpr int *operator->() { return &i_; }
13 constexpr X(int i) : i_(i) {} in X()
20 constexpr const int &operator*() const { return i_; }
21 constexpr int &operator*() { return i_; }
22 constexpr const int *get() const { return &i_; } in get()
[all …]
/external/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp1.cpp18 constexpr int i1 = 0;
19 constexpr int f1() { return 0; } in f1()
21 constexpr static int mi1 = 0;
24 constexpr int s1::mi2 = 0;
28 constexpr extern int i2; // expected-error {{constexpr variable declaration must be a definition}}
30 constexpr notlit nl1; // expected-error {{constexpr variable cannot have non-literal type 'const no…
32 void f2(constexpr int i) {} // expected-error {{function parameter cannot be constexpr}} in f2()
35constexpr int mi1; // expected-error {{non-static data member cannot be constexpr; did you intend …
36 static constexpr int mi2;
42 …mutable constexpr int mi3 = 3; // expected-error-re {{non-static data member cannot be constexpr{{…
[all …]
Dp3.cpp18 constexpr Literal() {} in Literal()
35 constexpr T();
36 constexpr int f() const;
39 virtual constexpr int ExplicitlyVirtual() const { return 0; } in ExplicitlyVirtual()
44 constexpr int ImplicitlyVirtual() const { return 0; } in ImplicitlyVirtual()
49 virtual constexpr int OutOfLineVirtual() const;
55constexpr NonLiteral NonLiteralReturn() const { return {}; } // expected-error {{constexpr functio… in NonLiteralReturn()
56 constexpr void VoidReturn() const { return; } in VoidReturn()
60 constexpr ~T();
65 constexpr F NonLiteralReturn2; // ok until definition
[all …]
Dp4.cpp18 constexpr Literal() {} in Literal()
26 constexpr S(int, N::C) {} in S()
27constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter ty… in S()
28constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter typ… in S()
31 constexpr S() = default;
32 constexpr S(Literal) = delete;
39constexpr T() {} // expected-error {{constexpr constructor not allowed in struct with virtual base… in T()
46constexpr C() {} // expected-error {{constexpr constructor not allowed in class with virtual base … in C()
52 constexpr U() in U()
69 constexpr V() { in V()
[all …]
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp1.cpp13 constexpr int i1 = 0;
14 constexpr int f1() { return 0; } in f1()
16 constexpr static int mi1 = 0;
19 constexpr int s1::mi2 = 0;
23 constexpr extern int i2; // expected-error {{constexpr variable declaration must be a definition}}
25 constexpr notlit nl1; // expected-error {{constexpr variable cannot have non-literal type 'const no…
27 void f2(constexpr int i) {} // expected-error {{function parameter cannot be constexpr}} in f2()
30constexpr int mi1; // expected-error {{non-static data member cannot be constexpr; did you intend …
31 static constexpr int mi2;
37 …mutable constexpr int mi3 = 3; // expected-error-re {{non-static data member cannot be constexpr{{…
[all …]
Dp3.cpp17 constexpr Literal() {} in Literal()
31 constexpr T();
32 constexpr int f() const;
35 …virtual constexpr int ExplicitlyVirtual() const { return 0; } // expected-error {{virtual function… in ExplicitlyVirtual()
37constexpr int ImplicitlyVirtual() const { return 0; } // expected-error {{virtual function cannot … in ImplicitlyVirtual()
39 …virtual constexpr int OutOfLineVirtual() const; // expected-error {{virtual function cannot be con…
42constexpr NonLiteral NonLiteralReturn() const { return {}; } // expected-error {{constexpr functio… in NonLiteralReturn()
43 constexpr void VoidReturn() const { return; } in VoidReturn()
47 constexpr ~T(); // expected-error {{destructor cannot be marked constexpr}}
49 constexpr F NonLiteralReturn2; // ok until definition
[all …]
Dp4.cpp17 constexpr Literal() {} in Literal()
25 constexpr S(int, N::C) {} in S()
26constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter ty… in S()
27constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter typ… in S()
30 constexpr S() = default;
31 constexpr S(Literal) = delete;
38constexpr T() {} // expected-error {{constexpr constructor not allowed in struct with virtual base… in T()
45constexpr C() {} // expected-error {{constexpr constructor not allowed in class with virtual base … in C()
51 constexpr U() in U()
62 constexpr V() { in V()
[all …]
/external/openscreen/cast/common/channel/
Dmessage_util.h17 static constexpr char kCastInternalNamespacePrefix[] =
19 static constexpr char kTransportNamespacePrefix[] =
21 static constexpr char kAuthNamespace[] =
23 static constexpr char kHeartbeatNamespace[] =
25 static constexpr char kConnectionNamespace[] =
27 static constexpr char kReceiverNamespace[] =
29 static constexpr char kBroadcastNamespace[] =
31 static constexpr char kMediaNamespace[] = "urn:x-cast:com.google.cast.media";
34 static constexpr char kPlatformSenderId[] = "sender-0";
35 static constexpr char kPlatformReceiverId[] = "receiver-0";
[all …]
/external/clang/test/SemaCXX/
Dconstant-expression-cxx11.cpp13 template<typename T> constexpr T id(const T &t) { return t; } in id()
14 template<typename T> constexpr T min(const T &a, const T &b) { in min()
17 template<typename T> constexpr T max(const T &a, const T &b) { in max()
20 template<typename T, size_t N> constexpr T *begin(T (&xs)[N]) { return xs; } in begin()
21 template<typename T, size_t N> constexpr T *end(T (&xs)[N]) { return xs + N; } in end()
24 constexpr int zero() const { return 0; } in zero()
38 constexpr B *p = &d;
39 constexpr C *q = &d;
45 constexpr B &pp = d;
46 constexpr C &qq = d;
[all …]
/external/llvm-project/clang/test/CXX/basic/basic.types/
Dp10.cpp9 constexpr void f() {} in f()
15 constexpr int f1(double) { return 0; } in f1()
19 constexpr int f2(S &) { return 0; } in f2()
24 static constexpr BeingDefined& t = beingdefined;
34 constexpr Incomplete incomplete = {}; // expected-error {{constexpr variable cannot have non-litera…
35 constexpr Incomplete incomplete2[] = {}; // expected-error {{constexpr variable cannot have non-lit…
36 constexpr ClassTemp<int> classtemplate = {};
37 constexpr ClassTemp<int> classtemplate2[] = {};
43 constexpr int f(UserProvDtor) { return 0; } // expected-error {{'UserProvDtor' is not a literal typ… in f()
45 constexpr NonTrivDtor();
[all …]
/external/clang/test/CXX/basic/basic.types/
Dp10.cpp9 constexpr void f() {} in f()
15 constexpr int f1(double) { return 0; } in f1()
19 constexpr int f2(S &) { return 0; } in f2()
24 static constexpr BeingDefined& t = beingdefined;
34 constexpr Incomplete incomplete = {}; // expected-error {{constexpr variable cannot have non-litera…
35 constexpr Incomplete incomplete2[] = {}; // expected-error {{constexpr variable cannot have non-lit…
36 constexpr ClassTemp<int> classtemplate = {};
37 constexpr ClassTemp<int> classtemplate2[] = {};
43 constexpr int f(UserProvDtor) { return 0; } // expected-error {{'UserProvDtor' is not a literal typ… in f()
45 constexpr NonTrivDtor();
[all …]
/external/libtextclassifier/native/utils/utf8/
Dunilib-common.cc31 constexpr char32 kOpeningBrackets[] = {
39 constexpr int kNumOpeningBrackets = ARRAYSIZE(kOpeningBrackets);
43 constexpr char32 kClosingBrackets[] = {
51 constexpr int kNumClosingBrackets = ARRAYSIZE(kClosingBrackets);
54 constexpr char32 kWhitespaces[] = {
62 constexpr int kNumWhitespaces = ARRAYSIZE(kWhitespaces);
65 constexpr char32 kBidirectional[] = {0x061C, 0x200E, 0x200F, 0x202A,
68 constexpr int kNumBidirectional = ARRAYSIZE(kBidirectional);
73 constexpr char32 kDecimalDigitRangesEnd[] = {
81 constexpr int kNumDecimalDigitRangesEnd = ARRAYSIZE(kDecimalDigitRangesEnd);
[all …]
/external/openscreen/discovery/mdns/public/
Dmdns_constants.h41 constexpr uint16_t kDefaultMulticastPort = 5353;
46 constexpr IPAddress kDefaultMulticastGroupIPv4{224, 0, 0, 251};
51 constexpr IPAddress kDefaultMulticastGroupIPv6{
57 constexpr IPEndpoint kMulticastSendIPv4Endpoint{kDefaultMulticastGroupIPv4,
59 constexpr IPEndpoint kMulticastSendIPv6Endpoint{kDefaultMulticastGroupIPv6,
78 constexpr IPAddress kDefaultSiteLocalGroupIPv4{239, 255, 255, 250};
79 constexpr IPEndpoint kDefaultSiteLocalGroupIPv4Endpoint{
88 constexpr IPAddress kDefaultSiteLocalGroupIPv6{
91 constexpr IPEndpoint kDefaultSiteLocalGroupIPv6Endpoint{
104 constexpr size_t kMaxMulticastMessageSize = 1500 - 20 - 8;
[all …]
/external/llvm-project/llvm/lib/Support/
DX86TargetParser.cpp27 static constexpr unsigned NUM_FEATURE_WORDS =
34 constexpr FeatureBitset() = default;
35 constexpr FeatureBitset(std::initializer_list<unsigned> Init) { in FeatureBitset()
44 constexpr FeatureBitset &set(unsigned I) { in set()
51 constexpr bool operator[](unsigned I) const { in operator []()
56 constexpr FeatureBitset &operator&=(const FeatureBitset &RHS) { in operator &=()
65 constexpr FeatureBitset &operator|=(const FeatureBitset &RHS) { in operator |=()
75 constexpr FeatureBitset operator&(const FeatureBitset &RHS) const { in operator &()
83 constexpr FeatureBitset operator|(const FeatureBitset &RHS) const { in operator |()
90 constexpr FeatureBitset operator~() const { in operator ~()
[all …]
/external/libgav1/libgav1/src/gav1/
Ddecoder_buffer.h167 constexpr ChromaSamplePosition kChromaSamplePositionUnknown =
169 constexpr ChromaSamplePosition kChromaSamplePositionVertical =
171 constexpr ChromaSamplePosition kChromaSamplePositionColocated =
173 constexpr ChromaSamplePosition kChromaSamplePositionReserved =
177 constexpr ImageFormat kImageFormatYuv420 = kLibgav1ImageFormatYuv420;
178 constexpr ImageFormat kImageFormatYuv422 = kLibgav1ImageFormatYuv422;
179 constexpr ImageFormat kImageFormatYuv444 = kLibgav1ImageFormatYuv444;
180 constexpr ImageFormat kImageFormatMonochrome400 =
184 constexpr ColorPrimary kColorPrimaryBt709 = kLibgav1ColorPrimaryBt709;
185 constexpr ColorPrimary kColorPrimaryUnspecified =
[all …]
/external/llvm-project/clang/test/CXX/class/class.compare/class.compare.default/
Dp3.cpp8 constexpr operator int() const { return n; } in operator int()
11 constexpr strong_ordering strong_ordering::less = {-1};
12 constexpr strong_ordering strong_ordering::equal = {0};
13 constexpr strong_ordering strong_ordering::greater = {1};
27 friend constexpr bool operator==(const A&, const A&) noexcept;
28 friend constexpr bool operator!=(const A&, const A&) noexcept;
30 friend constexpr std::strong_ordering operator<=>(const A&, const A&) noexcept;
31 friend constexpr bool operator<(const A&, const A&);
32 friend constexpr bool operator<=(const A&, const A&);
33 friend constexpr bool operator>(const A&, const A&);
[all …]
/external/clang/test/CodeGenCXX/
Dconst-init-cxx11.cpp9 constexpr U(int x) : x(x) {} in U()
10 constexpr U(const char *y) : y(y) {} in U()
15 constexpr A(int n, double d, int x) : n(n), d(d), u(x) {} in A()
16 constexpr A(int n, double d, const char *y) : n(n), d(d), u(y) {} in A()
20 extern constexpr A a(1, 2.0, 3);
23 extern constexpr A b(4, 5, "hello");
38 constexpr C() : c(0) {} in C()
46 constexpr D() : d(5) {} in D()
73 struct Test : Ts... { constexpr Test() : Ts()..., n(5) {} int n; }; in Test()
77 extern constexpr Test1 t1 = Test1();
[all …]

12345678910>>...329