HomeSort by relevance Sort by last modified time
    Searched refs:constexpr (Results 51 - 75 of 5263) sorted by null

1 23 4 5 6 7 8 91011>>

  /art/libdexfile/dex/
modifiers.h 24 static constexpr uint32_t kAccPublic = 0x0001; // class, field, method, ic
25 static constexpr uint32_t kAccPrivate = 0x0002; // field, method, ic
26 static constexpr uint32_t kAccProtected = 0x0004; // field, method, ic
27 static constexpr uint32_t kAccStatic = 0x0008; // field, method, ic
28 static constexpr uint32_t kAccFinal = 0x0010; // class, field, method, ic
29 static constexpr uint32_t kAccSynchronized = 0x0020; // method (only allowed on natives)
30 static constexpr uint32_t kAccSuper = 0x0020; // class (not used in dex)
31 static constexpr uint32_t kAccVolatile = 0x0040; // field
32 static constexpr uint32_t kAccBridge = 0x0040; // method (1.5)
33 static constexpr uint32_t kAccTransient = 0x0080; // fiel
    [all...]
  /external/clang/test/CXX/basic/basic.types/
p10.cpp 9 constexpr void f() {}
15 constexpr int f1(double) { return 0; }
19 constexpr int f2(S &) { return 0; }
24 static constexpr BeingDefined& t = beingdefined;
34 constexpr Incomplete incomplete = {}; // expected-error {{constexpr variable cannot have non-literal type 'const Incomplete'}} expected-note {{incomplete type 'const Incomplete' is not a literal type}}
35 constexpr Incomplete incomplete2[] = {}; // expected-error {{constexpr variable cannot have non-literal type 'Incomplete const[]'}} expected-note {{incomplete type 'Incomplete const[]' is not a literal type}}
36 constexpr ClassTemp<int> classtemplate = {};
37 constexpr ClassTemp<int> classtemplate2[] = {}
    [all...]
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p6.cpp 17 constexpr Literal() {}
27 constexpr int ImplicitlyVirtual() const { return 0; }
30 constexpr int a = ImplicitVirtualFromDependentBase<S>().ImplicitlyVirtual(); // expected-error {{constant expression}} expected-note {{cannot evaluate virtual function call}}
31 constexpr int b = ImplicitVirtualFromDependentBase<T>().ImplicitlyVirtual(); // ok
32 constexpr int c = ImplicitVirtualFromDependentBase<S>().ImplicitVirtualFromDependentBase<S>::ImplicitlyVirtual();
35 constexpr R F() const { return 0; }
37 constexpr int d = ConstexprMember<int>().F(); // ok
38 constexpr int e = ConstexprMember<NonLiteral>().F(); // expected-error {{constant expression}} expected-note {{non-literal type 'const NonLiteral' cannot be used in a constant expression}}
41 constexpr ConstexprCtor(P...) {}
43 constexpr ConstexprCtor<> f1() { return {}; } // o
    [all...]
p8.cpp 6 constexpr int f(); // expected-warning {{C++14}}
7 constexpr int g() const;
8 constexpr int h(); // expected-warning {{C++14}}
10 static constexpr int Sf();
11 /*static*/ constexpr void *operator new(size_t) noexcept;
12 template<typename T> constexpr T tm(); // expected-warning {{C++14}}
13 template<typename T> static constexpr T ts();
28 constexpr int S::f() const { return 0; }
29 constexpr int S::g() { return 1; } // expected-warning {{C++14}}
30 constexpr int S::h() { return 0; } // expected-warning {{C++14}
    [all...]
  /external/clang/test/CXX/stmt.stmt/stmt.select/stmt.if/
p2.cpp 10 if constexpr(sizeof...(rs) > 0)
19 if constexpr (true)
31 if constexpr (false)
43 if constexpr (5) {} // expected-error {{cannot be narrowed}}
46 if constexpr (N) {} // expected-error {{cannot be narrowed}}
56 if constexpr (sizeof(T) == 1 && sizeof(x) == 1)
63 if constexpr (sizeof(T) == 1)
64 if constexpr (sizeof(x) == 1)
80 case 4: if constexpr(sizeof(n) == 4) return;
81 if constexpr(sizeof(n) == 4
    [all...]
  /external/libcxx/test/std/utilities/utility/pairs/pairs.pair/
not_constexpr_cxx11.fail.cpp 14 // Test that only the default constructor is constexpr in C++11
20 constexpr explicit ExplicitT(int x) : value(x) {}
21 constexpr explicit ExplicitT(ExplicitT const& o) : value(o.value) {}
26 constexpr ImplicitT(int x) : value(x) {}
27 constexpr ImplicitT(ImplicitT const& o) : value(o.value) {}
35 constexpr int x = 42;
36 constexpr P default_p{};
37 constexpr P copy_p(default_p);
38 constexpr P const_U_V(x, x); // expected-error {{must be initialized by a constant expression}}
39 constexpr P U_V(42, 101); // expected-error {{must be initialized by a constant expression}
    [all...]
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/utility/pairs/pairs.pair/
not_constexpr_cxx11.fail.cpp 14 // Test that only the default constructor is constexpr in C++11
20 constexpr explicit ExplicitT(int x) : value(x) {}
21 constexpr explicit ExplicitT(ExplicitT const& o) : value(o.value) {}
26 constexpr ImplicitT(int x) : value(x) {}
27 constexpr ImplicitT(ImplicitT const& o) : value(o.value) {}
35 constexpr int x = 42;
36 constexpr P default_p{};
37 constexpr P copy_p(default_p);
38 constexpr P const_U_V(x, x); // expected-error {{must be initialized by a constant expression}}
39 constexpr P U_V(42, 101); // expected-error {{must be initialized by a constant expression}
    [all...]
  /tools/dexter/slicer/export/slicer/
dex_format.h 40 constexpr u4 kEndianConstant = 0x12345678;
41 constexpr u4 kNoIndex = 0xffffffff;
42 constexpr u4 kSHA1DigestLen = 20;
45 constexpr u1 kVisibilityBuild = 0x00;
46 constexpr u1 kVisibilityRuntime = 0x01;
47 constexpr u1 kVisibilitySystem = 0x02;
50 constexpr u1 kVisibilityEncoded = 0xff;
53 constexpr u1 kEncodedByte = 0x00;
54 constexpr u1 kEncodedShort = 0x02;
55 constexpr u1 kEncodedChar = 0x03
    [all...]
  /art/runtime/mirror/
class_flags.h 26 static constexpr uint32_t kClassFlagNormal = 0x00000000;
30 static constexpr uint32_t kClassFlagNoReferenceFields = 0x00000001;
33 static constexpr uint32_t kClassFlagString = 0x00000004;
36 static constexpr uint32_t kClassFlagObjectArray = 0x00000008;
39 static constexpr uint32_t kClassFlagClass = 0x00000010;
42 static constexpr uint32_t kClassFlagClassLoader = 0x00000020;
45 static constexpr uint32_t kClassFlagDexCache = 0x00000040;
48 static constexpr uint32_t kClassFlagSoftReference = 0x00000080;
51 static constexpr uint32_t kClassFlagWeakReference = 0x00000100;
54 static constexpr uint32_t kClassFlagFinalizerReference = 0x00000200
    [all...]
  /bootable/recovery/otautil/
cache_location.cpp 19 constexpr const char kDefaultCacheTempSource[] = "/cache/saved.file";
20 constexpr const char kDefaultLastCommandFile[] = "/cache/recovery/last_command";
21 constexpr const char kDefaultStashDirectoryBase[] = "/cache/recovery";
  /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/utilities/tuple/tuple.apply/
constexpr_types.pass.cpp 14 // template <class F, class T> constexpr decltype(auto) apply(F &&, T &&)
16 // Testing constexpr evaluation
22 constexpr int f_int_0() { return 1; }
23 constexpr int f_int_1(int x) { return x; }
24 constexpr int f_int_2(int x, int y) { return (x + y); }
28 constexpr A_int_0() {}
29 constexpr int operator()() const { return 1; }
34 constexpr A_int_1() {}
35 constexpr int operator()(int x) const { return x; }
40 constexpr A_int_2() {
    [all...]
  /art/runtime/base/
arena_allocator-inl.h 25 static constexpr bool kArenaAllocatorPreciseTracking = kArenaAllocatorCountAllocations;
27 static constexpr size_t kArenaDefaultSize = kArenaAllocatorPreciseTracking
  /art/runtime/
heap_poisoning.h 32 static constexpr bool kPoisonHeapReferences = true;
34 static constexpr bool kPoisonHeapReferences = false;
  /external/clang/test/CodeGenCXX/
cxx1z-constexpr-if.cpp 7 if constexpr (false)
12 if constexpr (true || ({ label: false; }))
  /external/clang/test/PCH/
cxx1z-init-statement.h 3 constexpr int test_if(int x) {
12 constexpr int test_switch(int x) {
  /external/clang/test/SemaCXX/
constexpr-factorial.cpp 3 constexpr unsigned oddfac(unsigned n) {
6 constexpr unsigned k = oddfac(123);
constexpr-value-init.cpp 4 constexpr A() : a(b + 1), b(a + 1) {} // expected-note {{outside its lifetime}}
12 constexpr A a; // ok, zero initialization precedes static initialization
14 constexpr A a; // expected-error {{constant expression}} expected-note {{in call to 'A()'}}
17 constexpr B b1; // ok
18 constexpr B b2 = B(); // ok
26 constexpr C c1; // expected-error {{without a user-provided default constructor}}
27 constexpr C c2 = C(); // ok
28 constexpr D d1; // expected-error {{without a user-provided default constructor}}
29 constexpr D d2 = D(); // ok with DR1452
35 constexpr Z() : V() {
    [all...]
  /system/chre/platform/linux/include/chre/target_platform/
platform_id_impl.h 25 constexpr uint64_t kVendorId = kVendorIdGoogle;
28 constexpr uint32_t kPlatformId = kGoogleLinuxPlatformId;
  /system/chre/platform/slpi/include/chre/target_platform/
platform_id_impl.h 25 constexpr uint64_t kVendorId = kVendorIdGoogle;
28 constexpr uint32_t kPlatformId = kGoogleSlpiPlatformId;
  /system/chre/util/include/chre/util/
id_from_string.h 28 constexpr uint64_t createIdFromString(const char str[5]);
38 constexpr uint64_t createPlatformIdFromVendorPlatform(uint64_t vendorId,
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
p2-1z.cpp 3 template<typename T, typename U> constexpr bool same = false;
4 template<typename T> constexpr bool same<T, T> = true;
7 if constexpr (false)
13 if constexpr (false)
21 if constexpr (true)
25 if constexpr (false)
32 if constexpr(k == 0)
34 if constexpr(k == 1)
36 else if constexpr (k == 2)
44 auto e = []{ if constexpr (false) return 0; }(); // expected-error {{variable has incomplete type 'void'}
    [all...]
  /external/clang/test/CXX/expr/expr.const/
p5-0x.cpp 9 constexpr A(int i) : val(i) { }
10 constexpr operator int() const { return val; }
11 constexpr operator long() const { return 43; }
16 constexpr A a = 42;
23 constexpr OK() {}
24 constexpr operator int() const { return 8; }
25 } constexpr ok;
28 constexpr Explicit() {}
29 constexpr explicit operator int() const { return 4; } // expected-note 4{{here}}
30 } constexpr expl
    [all...]
p2-0x.cpp 7 // expression, function invocation substitution (7.1.5 [dcl.constexpr])
8 // replaces each occurrence of this in a constexpr member function with a
20 // - an invocation of a function other than a constexpr constructor for a
21 // literal class or a constexpr function [ Note: Overload resolution (13.3)
25 int n : f(); // expected-error {{constant expression}} expected-note {{non-constexpr function 'f' cannot be used in a constant expression}}
28 constexpr NonConstexpr2(); // expected-note {{here}}
40 int n : NonConstexpr4().n; // expected-error {{constant expression}} expected-note {{non-constexpr constructor 'NonConstexpr4' cannot be used in a constant expression}}
43 // - an invocation of an undefined constexpr function or an undefined
44 // constexpr constructor;
46 constexpr UndefinedConstexpr()
    [all...]
  /external/clang/test/CXX/special/class.copy/
p13-0x.cpp 4 // constexpr constructor, the implicitly-defined constructor is constexpr.
6 constexpr Constexpr1() : n(0) {}
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) {}
19 constexpr Constexpr2 c2a = Constexpr2(Constexpr2()); // ok
20 constexpr Constexpr2 c2b = Constexpr2(Constexpr2(c2a)); // ok
24 // all special constructors are constexpr, move ctor calls ce2's copy cto
    [all...]
  /art/runtime/jdwp/
jdwp_priv.h 32 static constexpr size_t kJDWPHeaderSizeOffset = 0U;
33 static constexpr size_t kJDWPHeaderIdOffset = 4U;
34 static constexpr size_t kJDWPHeaderFlagsOffset = 8U;
35 static constexpr size_t kJDWPHeaderErrorCodeOffset = 9U;
36 static constexpr size_t kJDWPHeaderCmdSetOffset = 9U;
37 static constexpr size_t kJDWPHeaderCmdOffset = 10U;
38 static constexpr size_t kJDWPHeaderLen = 11U;
39 static constexpr uint8_t kJDWPFlagReply = 0x80;
41 static constexpr const char kMagicHandshake[] = "JDWP-Handshake";
42 static constexpr size_t kMagicHandshakeLen = sizeof(kMagicHandshake) - 1
    [all...]

Completed in 351 milliseconds

1 23 4 5 6 7 8 91011>>