/external/clang/test/Parser/ |
opencl-keywords.cl | 7 int constexpr;
|
/external/llvm/test/Assembler/ |
2003-05-21-MalformedShiftCrash.ll | 3 ; RUN: grep "constexpr requires integer operands" %t
|
/system/extras/simpleperf/runtest/ |
two_functions.cpp | 0 constexpr int LOOP_COUNT = 100000000;
|
/system/tpm/tpm_manager/common/ |
tpm_ownership_dbus_interface.h | 22 constexpr char kTpmOwnershipInterface[] = "org.chromium.TpmOwnership"; 25 constexpr char kGetTpmStatus[] = "GetTpmStatus"; 26 constexpr char kTakeOwnership[] = "TakeOwnership"; 27 constexpr char kRemoveOwnerDependency[] = "RemoveOwnerDependency";
|
/external/clang/test/CXX/drs/ |
dr9xx.cpp | 52 constexpr A(int v) : v(v) { } 53 constexpr operator int() const { return v; } 58 constexpr int id(int x) 64 if (constexpr int i = id(101)) { } 65 switch (constexpr int i = id(2)) { default: break; case 2: break; } 66 for (; constexpr int i = id(0); ) { } 67 while (constexpr int i = id(0)) { } 69 if (constexpr A i = 101) { } 70 switch (constexpr A i = 2) { default: break; case 2: break; } 71 for (; constexpr A i = 0; ) { [all...] |
/external/clang/test/CodeCompletion/ |
constexpr.cpp | 3 // PR14381: need constexpr function bodies always, even if code-completing. 8 constexpr int f() {
|
/external/clang/test/SemaCXX/ |
cxx0x-constexpr-const.cpp | 3 constexpr int x = 1; // expected-note {{variable 'x' declared const here}} 4 constexpr int id(int x) { return x; }
|
/external/libcxx/test/std/experimental/optional/optional.comp_with_t/ |
greater.pass.cpp | 12 // template <class T> constexpr bool operator>(const optional<T>& x, const T& v); 13 // template <class T> constexpr bool operator>(const T& v, const optional<T>& x); 25 constexpr X(int i) : i_(i) {} 28 constexpr bool operator < ( const X &lhs, const X &rhs ) 41 constexpr T val(2); 42 constexpr O o1; // disengaged 43 constexpr O o2{1}; // engaged 44 constexpr O o3{val}; // engaged
|
less_than.pass.cpp | 12 // template <class T> constexpr bool operator<(const optional<T>& x, const T& v); 13 // template <class T> constexpr bool operator<(const T& v, const optional<T>& x); 25 constexpr X(int i) : i_(i) {} 28 constexpr bool operator < ( const X &lhs, const X &rhs ) 41 constexpr T val(2); 42 constexpr O o1; // disengaged 43 constexpr O o2{1}; // engaged 44 constexpr O o3{val}; // engaged
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.comp_with_t/ |
less_than.pass.cpp | 12 // template <class T> constexpr bool operator<(const optional<T>& x, const T& v); 13 // template <class T> constexpr bool operator<(const T& v, const optional<T>& x); 25 constexpr X(int i) : i_(i) {} 28 constexpr bool operator < ( const X &lhs, const X &rhs ) 41 constexpr T val(2); 42 constexpr O o1; // disengaged 43 constexpr O o2{1}; // engaged 44 constexpr O o3{val}; // engaged
|
/art/runtime/ |
dex_instruction_utils.h | 54 constexpr bool IsInstructionDirectConst(Instruction::Code opcode) { 58 constexpr bool IsInstructionConstWide(Instruction::Code opcode) { 62 constexpr bool IsInstructionReturn(Instruction::Code opcode) { 66 constexpr bool IsInstructionInvoke(Instruction::Code opcode) { 71 constexpr bool IsInstructionQuickInvoke(Instruction::Code opcode) { 76 constexpr bool IsInstructionInvokeStatic(Instruction::Code opcode) { 80 constexpr bool IsInstructionGoto(Instruction::Code opcode) { 84 constexpr bool IsInstructionIfCc(Instruction::Code opcode) { 88 constexpr bool IsInstructionIfCcZ(Instruction::Code opcode) { 92 constexpr bool IsInstructionIGet(Instruction::Code code) [all...] |
/external/clang/unittests/AST/ |
DeclTest.cpp | 33 "struct X { int a; }; constexpr X x = { 42 };" 34 "union Y { constexpr Y(int a) : a(a) {} int a; }; constexpr Y y = { 42 };" 35 "constexpr int z[2] = { 42, 43 };" 36 "constexpr int __attribute__((vector_size(16))) v1 = {};" 38 "constexpr __uint128_t large_int = 0xffffffffffffffff;" 39 "constexpr __uint128_t small_int = 1;" 41 "constexpr double d1 = 42.42;" 42 "constexpr long double d2 = 42.42;" 43 "constexpr _Complex long double c1 = 42.0i; [all...] |
/system/core/include/utils/ |
Timers.h | 38 static CONSTEXPR inline nsecs_t seconds_to_nanoseconds(nsecs_t secs) 43 static CONSTEXPR inline nsecs_t milliseconds_to_nanoseconds(nsecs_t secs) 48 static CONSTEXPR inline nsecs_t microseconds_to_nanoseconds(nsecs_t secs) 53 static CONSTEXPR inline nsecs_t nanoseconds_to_seconds(nsecs_t secs) 58 static CONSTEXPR inline nsecs_t nanoseconds_to_milliseconds(nsecs_t secs) 63 static CONSTEXPR inline nsecs_t nanoseconds_to_microseconds(nsecs_t secs) 68 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} 69 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} 70 static CONSTEXPR inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} 71 static CONSTEXPR inline nsecs_t ns2s(nsecs_t v) {return nanoseconds_to_seconds(v); [all...] |
/external/clang/test/CodeGenCXX/ |
const-init-cxx11.cpp | 9 constexpr U(int x) : x(x) {} 10 constexpr U(const char *y) : y(y) {} 15 constexpr A(int n, double d, int x) : n(n), d(d), u(x) {} 16 constexpr A(int n, double d, const char *y) : n(n), d(d), u(y) {} 20 extern constexpr A a(1, 2.0, 3); 23 extern constexpr A b(4, 5, "hello"); 38 constexpr C() : c(0) {} 46 constexpr D() : d(5) {} 73 struct Test : Ts... { constexpr Test() : Ts()..., n(5) {} int n; }; 77 extern constexpr Test1 t1 = Test1() [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/experimental/ |
optional | 31 constexpr optional() noexcept; 32 constexpr optional(nullopt_t) noexcept; 35 constexpr optional(const T&); 36 constexpr optional(T&&); 37 template <class... Args> constexpr explicit optional(in_place_t, Args&&...); 39 constexpr explicit optional(in_place_t, initializer_list<U>, Args&&...); 60 constexpr T const* operator->() const; 62 constexpr T const& operator*() const; 64 constexpr explicit operator bool() const noexcept; 65 constexpr T const& value() const [all...] |
/prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libcxx/include/experimental/ |
optional | 31 constexpr optional() noexcept; 32 constexpr optional(nullopt_t) noexcept; 35 constexpr optional(const T&); 36 constexpr optional(T&&); 37 template <class... Args> constexpr explicit optional(in_place_t, Args&&...); 39 constexpr explicit optional(in_place_t, initializer_list<U>, Args&&...); 60 constexpr T const* operator->() const; 62 constexpr T const& operator*() const; 64 constexpr explicit operator bool() const noexcept; 65 constexpr T const& value() const [all...] |
/external/clang/test/SemaTemplate/ |
instantiate-self.cpp | 20 friend constexpr int operator+(int, C) { return 4; } 50 // FIXME: PR12298: Recursive constexpr function template instantiation leads to 55 constexpr T f(T k) { return g(k); } 56 constexpr T g(T k) { 61 constexpr int x = A<int>().f(5); 65 template<typename T> constexpr T f(T); 66 template<typename T> constexpr T g(T t) { 70 template<typename T> constexpr T f(T t) { 79 template<typename T> constexpr T g(T t) { 82 template<typename T> constexpr T f(T t) [all...] |
/external/skia/include/private/ |
SkUniquePtr.h | 18 /*constexpr*/ default_delete() /*noexcept*/ = default; 29 /*constexpr*/ default_delete() /*noexcept*/ = default; 53 /*constexpr*/ compressed_base() : B() {} 54 /*constexpr*/ compressed_base(const B& b) : B(b) {} 55 /*constexpr*/ compressed_base(B&& b) : B(std::move(b)) {} 56 /*constexpr*/ B& get() /*noexcept*/ { return *this; } 57 /*constexpr*/ B const& get() const /*noexcept*/ { return *this; } 63 /*constexpr*/ compressed_base() : B() {} 64 /*constexpr*/ compressed_base(const B& b) : fb(b) {} 65 /*constexpr*/ compressed_base(B&& b) : fb(std::move(b)) { [all...] |
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
Boid.h | 27 static const constexpr float MAX_SPEED = 2.0f;// Upper limit of boid velocity. 28 static const constexpr float MAX_FORCE = 0.05f;// Upper limit of the force used to push a boid. 29 static const constexpr float NEIGHBOUR_RADIUS = 70.0f;// Radius used to find neighbours, was 50. 30 static const constexpr float DESIRED_BOID_DIST = 35.0f;// Distance boids want to be from others, was 25. 32 static const constexpr float SEPARATION_WEIGHT = 2.0f; 33 static const constexpr float ALIGNMENT_WEIGHT = 1.0f; 34 static const constexpr float COHESION_WEIGHT = 1.0f;
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ |
cmath | 560 constexpr int 565 constexpr int 570 constexpr int 576 constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 581 constexpr bool 585 constexpr bool 589 constexpr bool 594 constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 599 constexpr bool 603 constexpr boo [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ |
cmath | 560 constexpr int 565 constexpr int 570 constexpr int 576 constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 581 constexpr bool 585 constexpr bool 589 constexpr bool 594 constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 599 constexpr bool 603 constexpr boo [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ |
cmath | 560 constexpr int 565 constexpr int 570 constexpr int 576 constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 581 constexpr bool 585 constexpr bool 589 constexpr bool 594 constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 599 constexpr bool 603 constexpr boo [all...] |
/prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/4.9/include/ |
cmath | 560 constexpr int 565 constexpr int 570 constexpr int 576 constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 581 constexpr bool 585 constexpr bool 589 constexpr bool 594 constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 599 constexpr bool 603 constexpr boo [all...] |
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/ |
in_place_t.pass.cpp | 13 // constexpr explicit optional(in_place_t, Args&&... args); 45 constexpr Y() : i_(0) {} 46 constexpr Y(int i) : i_(i) {} 47 constexpr Y(int i, int j) : i_(i), j_(j) {} 49 friend constexpr bool operator==(const Y& x, const Y& y) 67 constexpr optional<int> opt(in_place, 5); 74 constexpr test_constexpr_ctor(in_place_t, int i) 95 constexpr optional<Y> opt(in_place); 102 constexpr test_constexpr_ctor(in_place_t) 108 constexpr optional<Y> opt(in_place, 5) [all...] |
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/ |
op_-.pass.cpp | 15 // constexpr 50 constexpr std::chrono::seconds s1(3); 51 constexpr std::chrono::seconds s2(5); 52 constexpr std::chrono::seconds r = s1 - s2; 56 constexpr std::chrono::seconds s1(3); 57 constexpr std::chrono::microseconds s2(5); 58 constexpr std::chrono::microseconds r = s1 - s2; 62 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(3); 63 constexpr std::chrono::duration<int, std::ratio<3, 5> > s2(5); 64 constexpr std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2 [all...] |