/external/clang/test/CXX/expr/expr.const/ |
D | p2-0x.cpp | 28 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 85 …constexpr T t2(0); // expected-error {{must be initialized by a constant expression}} expected-not… [all …]
|
/external/libcxx/test/support/ |
D | propagate_const_helpers.h | 6 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/clang/test/SemaCXX/ |
D | constant-expression-cxx11.cpp | 13 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 …]
|
D | constant-expression-cxx1y.cpp | 5 constexpr S(int); 11 constexpr int &get(int n) { return arr[n]; } in get() 12 constexpr const int &get(int n) const { return arr[n]; } in get() 20 constexpr int e() {{{{}} return 5; }} in e() 24 constexpr int f() { in f() 28 constexpr S(E e) : e(e) {} in f() 29 constexpr int get() { return e; } in f() 38 constexpr int g(int k) { in g() 45 constexpr int h(int n) { in h() 49 constexpr int i(int n) { in i() [all …]
|
D | constexpr-printing.cpp | 4 constexpr int extract(const S &s); 7 constexpr S() : n(extract(*this)), m(0) {} // expected-note {{in call to 'extract(s1)'}} in S() 8 constexpr S(int k) : n(k), m(extract(*this)) {} in S() 12 constexpr int extract(const S &s) { return s.n; } // expected-note {{read of object outside its lif… in extract() 14 constexpr S s1; // ok 16 constexpr S s1; // expected-error {{constant expression}} expected-note {{in call to 'S()'}} in f() 17 constexpr S s2(10); in f() 23 constexpr T() : arr() {} in T() 27 constexpr U(const int *p) : T(), another(), p(p) {} in U() 28 constexpr U(const U &u) : T(), another(), p(u.p) {} in U() [all …]
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
D | p1.cpp | 13 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() 30 …constexpr 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 …]
|
D | p3.cpp | 17 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() 37 …constexpr 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… 42 …constexpr 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 …]
|
D | p4.cpp | 17 constexpr Literal() {} in Literal() 25 constexpr S(int, N::C) {} in S() 26 …constexpr S(int, NonLiteral, N::C) {} // expected-error {{constexpr constructor's 2nd parameter ty… in S() 27 …constexpr S(int, NonLiteral = 42) {} // expected-error {{constexpr constructor's 2nd parameter typ… in S() 30 constexpr S() = default; 31 constexpr S(Literal) = delete; 38 …constexpr T() {} // expected-error {{constexpr constructor not allowed in struct with virtual base… in T() 45 …constexpr 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 …]
|
D | p5.cpp | 7 constexpr int f(void *) { return 0; } in f() 8 constexpr int f(...) { return 1; } in f() 9 constexpr int g1() { return f(0); } in g1() 10 constexpr int g2(int n) { return f(n); } in g2() 11 constexpr int g3(int n) { return f(n*0); } in g3() 14 constexpr int c = 5; 15 constexpr int h() { return c; } in h() 17 constexpr int c = 0; 18 constexpr int g4() { return N::h(); } in g4() 31 constexpr int f(bool b) in f() [all …]
|
/external/v8/src/ |
D | frame-constants.h | 53 static constexpr int kCallerFPOffset = 0 * kPointerSize; 54 static constexpr int kCallerPCOffset = kCallerFPOffset + 1 * kFPOnStackSize; 55 static constexpr int kCallerSPOffset = kCallerPCOffset + 1 * kPCOnStackSize; 61 static constexpr int kFixedFrameSizeAboveFp = kPCOnStackSize + kFPOnStackSize; 62 static constexpr int kFixedSlotCountAboveFp = 64 static constexpr int kCPSlotSize = 66 static constexpr int kCPSlotCount = kCPSlotSize / kPointerSize; 67 static constexpr int kConstantPoolOffset = 69 static constexpr int kContextOrFrameTypeSize = kPointerSize; 70 static constexpr int kContextOrFrameTypeOffset = [all …]
|
D | globals.h | 75 constexpr int kStackSpaceRequiredForCompilation = 40; 109 constexpr int KB = 1024; 110 constexpr int MB = KB * KB; 111 constexpr int GB = KB * KB * KB; 112 constexpr int kMaxInt = 0x7FFFFFFF; 113 constexpr int kMinInt = -kMaxInt - 1; 114 constexpr int kMaxInt8 = (1 << 7) - 1; 115 constexpr int kMinInt8 = -(1 << 7); 116 constexpr int kMaxUInt8 = (1 << 8) - 1; 117 constexpr int kMinUInt8 = 0; [all …]
|
/external/clang/test/CXX/basic/basic.types/ |
D | p10.cpp | 9 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/CodeGenCXX/ |
D | const-init-cxx11.cpp | 9 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 …]
|
/external/v8/src/wasm/baseline/ |
D | liftoff-assembler-defs.h | 17 constexpr RegList kLiftoffAssemblerGpCacheRegs = 21 constexpr RegList kLiftoffAssemblerFpCacheRegs = 24 constexpr Register kNoParamRegister = edi; 28 constexpr RegList kLiftoffAssemblerGpCacheRegs = 31 constexpr RegList kLiftoffAssemblerFpCacheRegs = 34 constexpr Register kNoParamRegister = r8; 38 constexpr RegList kLiftoffAssemblerGpCacheRegs = 41 constexpr RegList kLiftoffAssemblerFpCacheRegs = 45 constexpr Register kNoParamRegister = t0; 49 constexpr RegList kLiftoffAssemblerGpCacheRegs = [all …]
|
/external/grpc-grpc/src/cpp/server/load_reporter/ |
D | constants.h | 29 constexpr uint32_t kVersion = 15853; 34 constexpr uint32_t kFeedbackSampleWindowSeconds = 10; 35 constexpr uint32_t kFetchAndSampleIntervalSeconds = 1; 37 constexpr size_t kLbIdLength = 8; 38 constexpr size_t kIpv4AddressLength = 8; 39 constexpr size_t kIpv6AddressLength = 32; 41 constexpr char kInvalidLbId[] = "<INVALID_LBID_238dsb234890rb>"; 45 constexpr char kCallStatusOk[] = "OK"; 46 constexpr char kCallStatusServerError[] = "5XX"; 47 constexpr char kCallStatusClientError[] = "4XX"; [all …]
|
/external/clang/test/CXX/special/class.copy/ |
D | p13-0x.cpp | 6 constexpr Constexpr1() : n(0) {} in Constexpr1() 9 constexpr Constexpr1 c1a = Constexpr1(Constexpr1()); // ok 10 constexpr Constexpr1 c1b = Constexpr1(Constexpr1(c1a)); // ok 14 constexpr Constexpr2() = default; 15 constexpr Constexpr2(const Constexpr2 &o) : ce1(o.ce1) {} in Constexpr2() 19 constexpr Constexpr2 c2a = Constexpr2(Constexpr2()); // ok 20 constexpr Constexpr2 c2b = Constexpr2(Constexpr2(c2a)); // ok 27 constexpr Constexpr3 c3a = Constexpr3(Constexpr3()); // ok 28 constexpr Constexpr3 c3b = Constexpr3(Constexpr3(c3a)); // ok 31 constexpr NonConstexprCopy() = default; [all …]
|
/external/clang/test/CXX/special/class.inhctor/ |
D | p2.cpp | 15 constexpr A(X<1>) {} in A() 17 explicit constexpr A(X<3>) {} // expected-note 4{{here}} in A() 22 constexpr A a0c { X<0>{} }; // expected-error {{must be initialized by a constant expression}} expe… 23 constexpr A a0ic = { X<0>{} }; // expected-error {{must be initialized by a constant expression}} e… 27 constexpr A a1c { X<1>{} }; 28 constexpr A a1ic = { X<1>{} }; 32 constexpr A a2c { X<2>{} }; // expected-error {{must be initialized by a constant expression}} expe… 33 constexpr A a2ic = { X<2>{} }; // expected-error {{constructor is explicit}} 37 constexpr A a3c { X<3>{} }; 38 constexpr A a3ic = { X<3>{} }; // expected-error {{constructor is explicit}} [all …]
|
/external/libcxx/include/ |
D | compare | 26 constexpr bool is_eq (weak_equality cmp) noexcept { return cmp == 0; } 27 constexpr bool is_neq (weak_equality cmp) noexcept { return cmp != 0; } 28 constexpr bool is_lt (partial_ordering cmp) noexcept { return cmp < 0; } 29 constexpr bool is_lteq(partial_ordering cmp) noexcept { return cmp <= 0; } 30 constexpr bool is_gt (partial_ordering cmp) noexcept { return cmp > 0; } 31 constexpr bool is_gteq(partial_ordering cmp) noexcept { return cmp >= 0; } 42 template<class T> constexpr strong_ordering strong_order(const T& a, const T& b); 43 template<class T> constexpr weak_ordering weak_order(const T& a, const T& b); 44 template<class T> constexpr partial_ordering partial_order(const T& a, const T& b); 45 template<class T> constexpr strong_equality strong_equal(const T& a, const T& b); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | AMDGPUMetadata.h | 33 constexpr uint32_t VersionMajor = 1; 35 constexpr uint32_t VersionMinor = 0; 38 constexpr char AssemblerDirectiveBegin[] = ".amd_amdgpu_hsa_metadata"; 40 constexpr char AssemblerDirectiveEnd[] = ".end_amd_amdgpu_hsa_metadata"; 110 constexpr char ReqdWorkGroupSize[] = "ReqdWorkGroupSize"; 112 constexpr char WorkGroupSizeHint[] = "WorkGroupSizeHint"; 114 constexpr char VecTypeHint[] = "VecTypeHint"; 116 constexpr char RuntimeHandle[] = "RuntimeHandle"; 155 constexpr char Name[] = "Name"; 157 constexpr char TypeName[] = "TypeName"; [all …]
|
/external/v8/src/wasm/ |
D | wasm-limits.h | 18 constexpr size_t kSpecMaxWasmMemoryPages = 65536; 22 constexpr size_t kV8MaxWasmTypes = 1000000; 23 constexpr size_t kV8MaxWasmFunctions = 1000000; 24 constexpr size_t kV8MaxWasmImports = 100000; 25 constexpr size_t kV8MaxWasmExports = 100000; 26 constexpr size_t kV8MaxWasmGlobals = 1000000; 27 constexpr size_t kV8MaxWasmExceptions = 1000000; 28 constexpr size_t kV8MaxWasmExceptionTypes = 1000000; 29 constexpr size_t kV8MaxWasmDataSegments = 100000; 31 constexpr size_t kV8MaxWasmMemoryPages = 32767; // = ~ 2 GiB [all …]
|
D | wasm-linkage.h | 21 constexpr Register kGpParamRegisters[] = {esi, eax, edx, ecx, ebx}; 22 constexpr Register kGpReturnRegisters[] = {eax, edx}; 23 constexpr DoubleRegister kFpParamRegisters[] = {xmm1, xmm2, xmm3, 25 constexpr DoubleRegister kFpReturnRegisters[] = {xmm1, xmm2}; 31 constexpr Register kGpParamRegisters[] = {rsi, rax, rdx, rcx, rbx, rdi}; 32 constexpr Register kGpReturnRegisters[] = {rax, rdx}; 33 constexpr DoubleRegister kFpParamRegisters[] = {xmm1, xmm2, xmm3, 35 constexpr DoubleRegister kFpReturnRegisters[] = {xmm1, xmm2}; 41 constexpr Register kGpParamRegisters[] = {r3, r0, r1, r2}; 42 constexpr Register kGpReturnRegisters[] = {r0, r1}; [all …]
|
/external/skia/src/core/ |
D | SkICCPriv.h | 17 static constexpr size_t kICCHeaderSize = 132; 20 static constexpr size_t kICCTagTableEntrySize = 12; 22 static constexpr uint32_t kRGB_ColorSpace = SkSetFourByteTag('R', 'G', 'B', ' '); 23 static constexpr uint32_t kCMYK_ColorSpace = SkSetFourByteTag('C', 'M', 'Y', 'K'); 24 static constexpr uint32_t kGray_ColorSpace = SkSetFourByteTag('G', 'R', 'A', 'Y'); 25 static constexpr uint32_t kDisplay_Profile = SkSetFourByteTag('m', 'n', 't', 'r'); 26 static constexpr uint32_t kInput_Profile = SkSetFourByteTag('s', 'c', 'n', 'r'); 27 static constexpr uint32_t kOutput_Profile = SkSetFourByteTag('p', 'r', 't', 'r'); 28 static constexpr uint32_t kColorSpace_Profile = SkSetFourByteTag('s', 'p', 'a', 'c'); 29 static constexpr uint32_t kXYZ_PCSSpace = SkSetFourByteTag('X', 'Y', 'Z', ' '); [all …]
|
/external/skqp/src/core/ |
D | SkICCPriv.h | 17 static constexpr size_t kICCHeaderSize = 132; 20 static constexpr size_t kICCTagTableEntrySize = 12; 22 static constexpr uint32_t kRGB_ColorSpace = SkSetFourByteTag('R', 'G', 'B', ' '); 23 static constexpr uint32_t kCMYK_ColorSpace = SkSetFourByteTag('C', 'M', 'Y', 'K'); 24 static constexpr uint32_t kGray_ColorSpace = SkSetFourByteTag('G', 'R', 'A', 'Y'); 25 static constexpr uint32_t kDisplay_Profile = SkSetFourByteTag('m', 'n', 't', 'r'); 26 static constexpr uint32_t kInput_Profile = SkSetFourByteTag('s', 'c', 'n', 'r'); 27 static constexpr uint32_t kOutput_Profile = SkSetFourByteTag('p', 'r', 't', 'r'); 28 static constexpr uint32_t kColorSpace_Profile = SkSetFourByteTag('s', 'p', 'a', 'c'); 29 static constexpr uint32_t kXYZ_PCSSpace = SkSetFourByteTag('X', 'Y', 'Z', ' '); [all …]
|
/external/bcc/src/cc/vendor/ |
D | optional.hpp | 81 # define OPTIONAL_CONSTEXPR_INIT_LIST constexpr 97 # define OPTIONAL_MUTABLE_CONSTEXPR constexpr 134 constexpr static bool value = std::is_nothrow_constructible<T, T&&>::value; 142 constexpr static bool has_assign(...) { return false; } 146 constexpr static bool has_assign(bool) { return true; } 148 constexpr static bool value = has_assign<T, U>(true); 157 constexpr static bool value = false; 162 constexpr static bool value = noexcept( std::declval<X&>() = std::declval<X&&>() ); 165 constexpr static bool value = has_nothrow_move_assign<T, is_assignable<T&, T&&>::value>::value; 182 template <class T> inline constexpr T&& constexpr_forward(typename std::remove_reference<T>::type& … in constexpr_forward() [all …]
|
/external/v8/src/ia32/ |
D | frame-constants-ia32.h | 16 static constexpr int kCallerFPOffset = -6 * kPointerSize; 18 static constexpr int kNewTargetArgOffset = +2 * kPointerSize; 19 static constexpr int kFunctionArgOffset = +3 * kPointerSize; 20 static constexpr int kReceiverArgOffset = +4 * kPointerSize; 21 static constexpr int kArgcOffset = +5 * kPointerSize; 22 static constexpr int kArgvOffset = +6 * kPointerSize; 27 static constexpr int kSPOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0); 28 static constexpr int kCodeOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1); 31 static constexpr int kCallerFPOffset = 0 * kPointerSize; 32 static constexpr int kCallerPCOffset = +1 * kPointerSize; [all …]
|