/external/llvm/include/llvm/Support/ |
SMLoc.h | 24 const char *Ptr; 26 SMLoc() : Ptr(0) {} 28 bool isValid() const { return Ptr != 0; } 30 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; } 31 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; } 33 const char *getPointer() const { return Ptr; } 35 static SMLoc getFromPointer(const char *Ptr) { 37 L.Ptr = Ptr [all...] |
ManagedStatic.h | 32 static void call(void * Ptr) { delete (T*)Ptr; } 35 static void call(void * Ptr) { delete[] (T*)Ptr; } 43 mutable void *Ptr; 50 bool isConstructed() const { return Ptr != 0; } 66 void* tmp = Ptr; 71 return *static_cast<C*>(Ptr); 74 void* tmp = Ptr; 79 return static_cast<C*>(Ptr); [all...] |
ArrayRecycler.h | 54 void push(unsigned Idx, T *Ptr) { 55 assert(Ptr && "Cannot recycle NULL pointer"); 58 FreeList *Entry = reinterpret_cast<FreeList*>(Ptr); 105 while (T *Ptr = pop(Bucket.size() - 1)) 106 Allocator.Deallocate(Ptr); 126 if (T *Ptr = pop(Cap.getBucket())) 127 return Ptr; 136 void deallocate(Capacity Cap, T *Ptr) { 137 push(Cap.getBucket(), Ptr);
|
/external/llvm/include/llvm/ADT/ |
OwningPtr.h | 1 //===- llvm/ADT/OwningPtr.h - Smart ptr that owns the pointee ---*- C++ -*-===// 31 T *Ptr; 33 explicit OwningPtr(T *P = 0) : Ptr(P) {} 36 OwningPtr(OwningPtr &&Other) : Ptr(Other.take()) {} 45 delete Ptr; 52 if (P == Ptr) return; 53 T *Tmp = Ptr; 54 Ptr = P; 61 T *Tmp = Ptr; 62 Ptr = 0 [all...] |
/external/clang/test/CodeGenCXX/ |
atomic.cpp | 4 template<typename _Tp> struct Ptr { 10 template<typename _Tp> inline void Ptr<_Tp>::f() { 16 void f(Ptr<int> *a) { a->f(); }
|
/external/clang/test/FixIt/ |
fixit-vexing-parse-cxx0x.cpp | 12 typedef int *Ptr; 14 Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
|
/external/llvm/lib/Support/ |
FormattedStream.cpp | 23 static void UpdatePosition(std::pair<unsigned, unsigned> &Position, const char *Ptr, size_t Size) { 29 for (const char *End = Ptr + Size; Ptr != End; ++Ptr) { 31 switch (*Ptr) { 47 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) { 51 if (Ptr <= Scanned && Scanned <= Ptr + Size) 54 UpdatePosition(Position, Scanned, Size - (Scanned - Ptr)); 56 UpdatePosition(Position, Ptr, Size) [all...] |
raw_os_ostream.cpp | 26 void raw_os_ostream::write_impl(const char *Ptr, size_t Size) { 27 OS.write(Ptr, Size);
|
Twine.cpp | 58 void Twine::printOneChild(raw_ostream &OS, Child Ptr, 64 Ptr.twine->print(OS); 67 OS << Ptr.cString; 70 OS << *Ptr.stdString; 73 OS << *Ptr.stringRef; 76 OS << Ptr.character; 79 OS << Ptr.decUI; 82 OS << Ptr.decI; 85 OS << *Ptr.decUL; 88 OS << *Ptr.decL [all...] |
ManagedStatic.cpp | 27 if (Ptr == 0) { 37 Ptr = tmp; 48 assert(Ptr == 0 && DeleterFn == 0 && Next == 0 && 50 Ptr = Creator ? Creator() : 0; 68 DeleterFn(Ptr); 71 Ptr = 0;
|
circular_raw_ostream.cpp | 18 void circular_raw_ostream::write_impl(const char *Ptr, size_t Size) { 20 TheStream->write(Ptr, Size); 28 memcpy(Cur, Ptr, Bytes);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/insert.iterators/insert.iter.ops/insert.iter.op=/ |
rv_value.pass.cpp | 59 typedef std::unique_ptr<int, do_nothing> Ptr; 60 typedef std::vector<Ptr> C; 64 c1.push_back(Ptr(x+i)); 67 c2.push_back(Ptr(x+i)); 68 insert3at(c2, c2.begin(), Ptr(x+3), Ptr(x+4), Ptr(x+5)); 69 test(std::move(c1), 0, Ptr(x+3), Ptr(x+4), Ptr(x+5), c2) [all...] |
/external/clang/include/clang/Sema/ |
IdentifierResolver.h | 76 /// Ptr - There are 3 forms that 'Ptr' represents: 77 /// 1) A single NamedDecl. (Ptr & 0x1 == 0) 79 /// same declaration context. (Ptr & 0x3 == 0x1) 81 /// declaration contexts too. (Ptr & 0x3 == 0x3) 82 uintptr_t Ptr; 85 /// A single NamedDecl. (Ptr & 0x1 == 0) 87 Ptr = reinterpret_cast<uintptr_t>(D); 88 assert((Ptr & 0x1) == 0 && "Invalid Ptr!"); [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/allocator.traits/allocator.traits.types/ |
pointer.pass.cpp | 23 struct Ptr {}; 29 typedef Ptr<T> pointer; 40 static_assert((std::is_same<std::allocator_traits<A<char> >::pointer, Ptr<char> >::value), "");
|
const_pointer.pass.cpp | 24 struct Ptr {}; 30 typedef Ptr<T> pointer; 52 static_assert((std::is_same<std::allocator_traits<A<char> >::const_pointer, Ptr<const char> >::value), "");
|
const_void_pointer.pass.cpp | 25 struct Ptr {}; 31 typedef Ptr<T> pointer; 52 static_assert((std::is_same<std::allocator_traits<A<char> >::const_void_pointer, Ptr<const void> >::value), "");
|
void_pointer.pass.cpp | 25 struct Ptr {}; 31 typedef Ptr<T> pointer; 52 static_assert((std::is_same<std::allocator_traits<A<char> >::void_pointer, Ptr<void> >::value), "");
|
/external/sfntly/cpp/src/sample/subtly/ |
subsetter.h | 21 // Cannot remove this header due to Ptr<T> instantiation issue 36 sfntly::Ptr<sfntly::Font> font_; 37 sfntly::Ptr<CharacterPredicate> predicate_;
|
font_assembler.h | 60 sfntly::Ptr<FontInfo> font_info_; 61 sfntly::Ptr<sfntly::FontFactory> font_factory_; 62 sfntly::Ptr<sfntly::Font::Builder> font_builder_;
|
subsetter.cc | 46 Ptr<FontSourcedInfoBuilder> info_builder = 49 Ptr<FontInfo> font_info; 60 Ptr<FontAssembler> font_assembler = new FontAssembler(font_info, 62 Ptr<Font> font_subset;
|
/external/clang/include/clang/AST/ |
DependentDiagnostic.h | 126 ddiag_iterator() : Ptr(0) {} 127 explicit ddiag_iterator(DependentDiagnostic *Ptr) : Ptr(Ptr) {} 135 reference operator*() const { return Ptr; } 138 assert(Ptr && "attempt to increment past end of diag list"); 139 Ptr = Ptr->NextDiagnostic; 150 return Ptr == Other.Ptr; [all...] |
DeclarationName.h | 64 /// upper bits of the Ptr field. This is only used internally. 76 /// Ptr - The lowest two bits are used to express what kind of name 78 /// on the kind of name this is, the upper bits of Ptr may have one 81 /// StoredIdentifier - The name is a normal identifier, and Ptr is 85 /// selector with zero arguments, and Ptr is an IdentifierInfo 89 /// with one argument, and Ptr is an IdentifierInfo pointer 92 /// StoredDeclarationNameExtra - Ptr is actually a pointer to a 96 uintptr_t Ptr; 99 /// Ptr. 101 return static_cast<StoredNameKind>(Ptr & PtrMask) [all...] |
DeclAccessPair.h | 31 NamedDecl *Ptr; // we'd use llvm::PointerUnion, but it isn't trivial 43 return (NamedDecl*) (~Mask & (uintptr_t) Ptr); 46 return AccessSpecifier(Mask & (uintptr_t) Ptr); 56 Ptr = reinterpret_cast<NamedDecl*>(uintptr_t(AS) |
|
/external/qemu/distrib/sdl-1.2.15/src/video/maccommon/ |
SDL_macwm.c | 88 static Ptr CopyGammaTable (GammaTblPtr pTableGammaIn) 100 BlockMove( (Ptr)pTableGammaIn, (Ptr)pTableGammaOut, tableSize); /* move everything */ 102 return (Ptr)pTableGammaOut; /* return whatever we allocated, could be NULL */ 116 *(Ptr *)cParam.csParam = (Ptr) &DeviceGammaRec; /* record for gamma */ 125 static Ptr GetDeviceGamma (GDHandle hGD) 135 return (Ptr) pTableGammaReturn; 138 static void DisposeGammaTable (Ptr pGamma) 141 DisposePtr((Ptr) pGamma); /* get rid of it * [all...] |
/external/llvm/lib/ExecutionEngine/ |
RTDyldMemoryManager.cpp | 102 void *Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(NameStr); 103 if (Ptr) return Ptr; 108 Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(NameStr+1); 109 if (Ptr) return Ptr;
|