Home
last modified time | relevance | path

Searched defs:LazyOffsetPtr (Results 1 – 2 of 2) sorted by relevance

/external/clang/include/clang/AST/
DExternalASTSource.h321 struct LazyOffsetPtr { struct
330 LazyOffsetPtr() : Ptr(0) { } in LazyOffsetPtr() argument
332 explicit LazyOffsetPtr(T *Ptr) : Ptr(reinterpret_cast<uint64_t>(Ptr)) { } in LazyOffsetPtr() argument
333 explicit LazyOffsetPtr(uint64_t Offset) : Ptr((Offset << 1) | 0x01) { in LazyOffsetPtr() function
362 bool isValid() const { return Ptr != 0; } in isValid()
365 bool isOffset() const { return Ptr & 0x01; } in isOffset()
372 T* get(ExternalASTSource *Source) const { in get()
/external/llvm-project/clang/include/clang/AST/
DExternalASTSource.h325 struct LazyOffsetPtr { struct
334 LazyOffsetPtr() = default; argument
335 explicit LazyOffsetPtr(T *Ptr) : Ptr(reinterpret_cast<uint64_t>(Ptr)) {} in LazyOffsetPtr() argument
337 explicit LazyOffsetPtr(uint64_t Offset) : Ptr((Offset << 1) | 0x01) { in LazyOffsetPtr() function
366 bool isValid() const { return Ptr != 0; } in isValid()
369 bool isOffset() const { return Ptr & 0x01; } in isOffset()
376 T* get(ExternalASTSource *Source) const { in get()