Home
last modified time | relevance | path

Searched refs:UPtr (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/
H A Dget_deleter.pass.cpp40 typedef std::unique_ptr<VT, const Deleter&> UPtr; in test_basic() typedef
42 UPtr p(nullptr, d); in test_basic()
43 const UPtr& cp = p; in test_basic()
50 typedef std::unique_ptr<VT, Deleter&> UPtr; in test_basic() typedef
52 UPtr p(nullptr, d); in test_basic()
53 const UPtr& cp = p; in test_basic()
H A Dexplicit_bool.pass.cpp21 template <class UPtr>
22 void doTest(UPtr& p, bool ExpectTrue) { in doTest()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/
H A Dhash_unique_ptr.pass.cpp33 using UPtr = std::unique_ptr<ValueT, Del>; in test_enabled_with_deleter() typedef
34 using pointer = typename UPtr::pointer; in test_enabled_with_deleter()
37 UPtr p(nullptr, std::forward<Del>(d)); in test_enabled_with_deleter()
38 test_hash_enabled_for_type<UPtr>(p); in test_enabled_with_deleter()
44 using UPtr = std::unique_ptr<ValueT, Del>; in test_disabled_with_deleter() typedef
45 using pointer = typename UPtr::pointer; in test_disabled_with_deleter()
46 test_hash_disabled_for_type<UPtr>(); in test_disabled_with_deleter()
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp281 uintptr_t UPtr = reinterpret_cast<uintptr_t>(Ptr); in deallocate() local
282 size_t Slot = State.getNearestSlot(UPtr); in deallocate()
284 AllocationMetadata *Meta = addrToMetadata(UPtr); in deallocate()
285 if (Meta->Addr != UPtr) { in deallocate()
288 trapOnAddress(UPtr, Error::INVALID_FREE); in deallocate()
296 trapOnAddress(UPtr, Error::DOUBLE_FREE); in deallocate()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dunused-return-value.cpp101 std::unique_ptr<Foo> UPtr; in warning() local
102 UPtr.release(); in warning()
/llvm-project-15.0.7/llvm/lib/Bitstream/Reader/
H A DBitstreamReader.cpp354 auto *UPtr = reinterpret_cast<const unsigned char *>(Ptr); in readRecord() local
355 Vals.append(UPtr, UPtr + NumElts); in readRecord()
/llvm-project-15.0.7/clang/tools/libclang/
H A DIndexing.cpp562 auto *UPtr = Unit.get(); in clang_indexSourceFile_Impl() local
621 IndexAction.get(), UPtr, Persistent, CXXIdx->getClangResourcesPath(), in clang_indexSourceFile_Impl()
625 printDiagsToStderr(UPtr); in clang_indexSourceFile_Impl()
627 if (isASTReadError(UPtr)) in clang_indexSourceFile_Impl()
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dsysinfo.cc328 using UPtr = std::unique_ptr<PInfo, decltype(&std::free)>; in GetCacheSizesWindows() typedef
330 UPtr buff((PInfo*)malloc(buffer_size), &std::free); in GetCacheSizesWindows()
/llvm-project-15.0.7/clang/test/Analysis/Inputs/
H A Dsystem-header-simulator-cxx.h196 template <typename UT, typename UPtr, typename URef>
232 template <typename UT, typename UPtr, typename URef>
/llvm-project-15.0.7/clang/lib/AST/
H A DTypePrinter.cpp1646 case attr::UPtr: OS << " __uptr"; break; in printAttributedBefore()
1752 case attr::UPtr: in printAttributedAfter()
H A DType.cpp3611 case attr::UPtr: in isMSTypeSpec()
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1192 for (Use *UPtr : Uses) in createParallel()
1193 UPtr->set(ReplacementValue); in createParallel()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaType.cpp7188 } else if (Attrs[attr::SPtr] && Attrs[attr::UPtr]) { in handleMSPointerTypeQualifierAttr()
7216 else if (Attrs[attr::UPtr]) in handleMSPointerTypeQualifierAttr()
7219 if (Attrs[attr::UPtr]) in handleMSPointerTypeQualifierAttr()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttr.td3578 def UPtr : TypeAttr {