Home
last modified time | relevance | path

Searched refs:decltype (Results 1 – 25 of 40) sorted by relevance

12

/art/runtime/
Dexperimental_flags.h33 constexpr ExperimentalFlags(decltype(kNone) t) // NOLINT [runtime/explicit] in ExperimentalFlags()
36 constexpr operator decltype(kNone)() const { in decltype() function
37 return static_cast<decltype(kNone)>(value_); in decltype()
44 constexpr ExperimentalFlags operator|(const decltype(kNone)& b) const {
45 return static_cast<decltype(kNone)>(value_ | static_cast<uint32_t>(b));
48 return static_cast<decltype(kNone)>(value_ | b.value_);
52 return static_cast<decltype(kNone)>(value_ & b.value_);
54 constexpr ExperimentalFlags operator&(const decltype(kNone)& b) const { in decltype() function
55 return static_cast<decltype(kNone)>(value_ & static_cast<uint32_t>(b)); in decltype()
78 inline std::ostream& operator<<(std::ostream& stream, const decltype(ExperimentalFlags::kNone)& e) {
Druntime_callbacks.cc37 ([this]() -> decltype(this->T) { \
39 return std::vector<decltype(this->T)::value_type>(this->T); \
Doat.cc83 static_assert(decltype(magic_)().size() == kOatMagic.size(), in OatHeader()
85 static_assert(decltype(version_)().size() == kOatVersion.size(), in OatHeader()
Dclass_loader_utils.h177 VisitClassLoaderDexFiles<decltype(helper), void*>(soa, in VisitClassLoaderDexFiles()
/art/libdexfile/dex/
Ddex_file_types.h34 constexpr DexIndex() : index_(std::numeric_limits<decltype(index_)>::max()) {} in DexIndex()
38 return index_ != std::numeric_limits<decltype(index_)>::max(); in IsValid()
41 return DexIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid()
66 explicit constexpr ProtoIndex(uint16_t index) : DexIndex<decltype(index_)>(index) {} in ProtoIndex()
68 return ProtoIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid()
76 explicit constexpr StringIndex(uint32_t index) : DexIndex<decltype(index_)>(index) {} in StringIndex()
78 return StringIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid()
88 return TypeIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid()
100 return hash<decltype(index.index_)>()(index.index_);
106 return hash<decltype(index.index_)>()(index.index_);
[all …]
/art/libartbase/base/
Dtransform_array_ref_test.cc45 using TarefIter = decltype(taref)::iterator; in TEST()
46 using ConstTarefIter = decltype(taref)::const_iterator; in TEST()
47 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST()
48 static_assert(std::is_same<TarefIter, decltype(taref)::pointer>::value, "pointer"); in TEST()
49 static_assert(std::is_same<int, decltype(taref)::reference>::value, "reference"); in TEST()
50 static_assert(std::is_same<ConstTarefIter, decltype(taref)::const_pointer>::value, in TEST()
52 static_assert(std::is_same<int, decltype(taref)::const_reference>::value, "const_reference"); in TEST()
86 using TarefIter = decltype(taref)::iterator; in TEST()
87 static_assert(std::is_same<void, decltype(taref)::const_iterator>::value, "const_iterator"); in TEST()
88 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST()
[all …]
Dtransform_iterator_test.cc47 using vector_titer = decltype(MakeTransformIterator(input.begin(), add1)); in TEST()
54 using vector_ctiter = decltype(MakeTransformIterator(input.cbegin(), add1)); in TEST()
61 using vector_rtiter = decltype(MakeTransformIterator(input.rbegin(), add1)); in TEST()
68 using vector_crtiter = decltype(MakeTransformIterator(input.crbegin(), add1)); in TEST()
136 decltype(MakeTransformIterator(input.cbegin(), add1)) cit = it; in TEST()
137 static_assert(!std::is_same<decltype(it), decltype(cit)>::value, "Types must be different"); in TEST()
140 decltype(MakeTransformIterator(input.crbegin(), add1)) crit(rit); in TEST()
141 static_assert(!std::is_same<decltype(rit), decltype(crit)>::value, "Types must be different"); in TEST()
150 using list_titer = decltype(MakeTransformIterator(input.begin(), sub1)); in TEST()
157 using list_ctiter = decltype(MakeTransformIterator(input.cbegin(), sub1)); in TEST()
[all …]
Dbit_struct_detail.h126 static constexpr auto Test(void*) -> decltype(std::declval<C>()._, TrueT{});
132 static constexpr bool value = decltype(Test<T>(nullptr))::value;
148 static_assert(std::is_same<decltype(GetMemberType(&T::_)), in ValidateBitStructSize()
Dsafe_copy_test.cc34 DCHECK_EQ(kPageSize, static_cast<decltype(kPageSize)>(PAGE_SIZE)); in TEST()
82 DCHECK_EQ(kPageSize, static_cast<decltype(kPageSize)>(PAGE_SIZE)); in TEST()
Diteration_range.h64 typedef typename std::reverse_iterator<decltype(c.begin())> riter; in ReverseRange()
Dlogging.cc138 buf_size = strlen(file) + 1 /* ':' */ + std::numeric_limits<decltype(line)>::max_digits10 + in LogLineLowStack()
Dtransform_array_ref.h44 using ConstIter = decltype(ConstIterHelper<Function>(*reinterpret_cast<int*>(0)));
/art/libdexfile/external/include/art_api/
Ddex_file_support.h91 static decltype(ExtDexFileMakeString)* g_ExtDexFileMakeString;
92 static decltype(ExtDexFileGetString)* g_ExtDexFileGetString;
93 static decltype(ExtDexFileFreeString)* g_ExtDexFileFreeString; in decltype() function
229 static decltype(ExtDexFileOpenFromMemory)* g_ExtDexFileOpenFromMemory;
230 static decltype(ExtDexFileOpenFromFd)* g_ExtDexFileOpenFromFd;
231 static decltype(ExtDexFileGetMethodInfoForOffset)* g_ExtDexFileGetMethodInfoForOffset;
232 static decltype(ExtDexFileGetAllMethodInfos)* g_ExtDexFileGetAllMethodInfos;
233 static decltype(ExtDexFileFree)* g_ExtDexFileFree;
/art/libdexfile/external/
Ddex_file_supp.cc42 #define DEFINE_DLFUNC_PTR(CLASS, DLFUNC) decltype(DLFUNC)* CLASS::g_##DLFUNC = DLFUNC;
44 #define DEFINE_DLFUNC_PTR(CLASS, DLFUNC) decltype(DLFUNC)* CLASS::g_##DLFUNC = nullptr;
79 decltype(DLFUNC)* DLFUNC##_ptr = reinterpret_cast<decltype(DLFUNC)*>(dlsym(handle, #DLFUNC)); \ in FOR_ALL_DLFUNCS()
/art/cmdline/detail/
Dcmdline_parser_detail.h38 … std::remove_reference<decltype(os << value)>* = 0); // NOLINT [whitespace/operators] [3]
45 decltype(InsertionOperatorTest(FakeReference<TStream2>(), std::declval<T2>()))::value;
56 … std::remove_reference<decltype(left == right)>* = 0); // NOLINT [whitespace/operators] [3]
63 decltype(EqualityOperatorTest(std::declval<TLeft>(), std::declval<TRight>()))::value;
Dcmdline_parse_argument_detail.h362 : argument_info_(std::forward<decltype(argument_info)>(argument_info)), in CmdlineParseArgument()
363 save_argument_(std::forward<decltype(save_argument)>(save_argument)), in CmdlineParseArgument()
364 load_argument_(std::forward<decltype(load_argument)>(load_argument)) { in CmdlineParseArgument()
/art/compiler/optimizing/
Dnodes_shared.h83 auto Compute(T x, U y) const -> decltype(x & ~y) {
84 static_assert(std::is_same<decltype(x & ~y), decltype(x | ~y)>::value &&
85 std::is_same<decltype(x & ~y), decltype(x ^ ~y)>::value,
Dnodes_x86.h179 auto Compute(T x) const -> decltype(x & (x-1)) {
180 static_assert(std::is_same<decltype(x & (x-1)), decltype(x ^(x-1))>::value,
/art/sigchainlib/
Dsigchain.cc93 static decltype(&sigaction) linked_sigaction;
94 static decltype(&sigprocmask) linked_sigprocmask;
97 static decltype(&sigaction64) linked_sigaction64;
98 static decltype(&sigprocmask64) linked_sigprocmask64;
218 if constexpr (std::is_same_v<decltype(action_), SigactionType>) { in GetAction()
235 if constexpr (std::is_same_v<decltype(action_), SigactionType>) { in SetAction()
/art/test/912-classes/
Dclasses_art.cc40 decltype(jvmtiEventCallbacks().ClassLoad) class_load,
41 decltype(jvmtiEventCallbacks().ClassPrepare) class_prepare) {
/art/libnativeloader/
Dnative_loader_lazy.cpp43 #define GET_FUNC_PTR(name) GetFuncPtr<decltype(&(name))>(#name)
/art/tools/jvmti-agents/dump-jvmti-state/
Ddump-jvmti.cc70 GetInternalData = reinterpret_cast<decltype(GetInternalData)>(cur_info->func); in SetupJvmtiEnv()
/art/libnativebridge/
Dnative_bridge_lazy.cc43 #define GET_FUNC_PTR(name) GetFuncPtr<decltype(&(name))>(#name)
/art/openjdkjvmti/
Djvmti_weak_table-inl.h76 UpdateTableWith<decltype(WithReadBarrierUpdater), kIgnoreNull>(WithReadBarrierUpdater); in UpdateTableWithReadBarrier()
206 UpdateTableWith<decltype(IsMarkedUpdater), in SweepImpl()
/art/test/ti-agent/
Dredefinition_helper.cc121 decltype(jvmti->functions->RedefineClasses) entrypoint = nullptr; in CallRedefineEntrypoint()
125 entrypoint = GetExtensionFunction<decltype(entrypoint)>( in CallRedefineEntrypoint()

12