Lines Matching refs:PtrTy
42 template <class PtrTy>
47 typedef llvm::PointerLikeTypeTraits<PtrTy> Traits;
52 static OpaquePtr make(PtrTy P) { OpaquePtr OP; OP.set(P); return OP; } in make()
62 PtrTy get() const { in get()
66 void set(PtrTy P) { in set()
221 template<class PtrTy,
222 bool CompressInvalid = IsResultPtrLowBitFree<PtrTy>::value>
224 PtrTy Val;
229 : Val(PtrTy()), Invalid(Invalid) {}
230 ActionResult(PtrTy val) : Val(val), Invalid(false) {}
231 ActionResult(const DiagnosticBuilder &) : Val(PtrTy()), Invalid(true) {}
240 PtrTy get() const { return Val; }
241 PtrTy release() const { return Val; }
242 PtrTy take() const { return Val; }
245 void set(PtrTy V) { Val = V; }
247 const ActionResult &operator=(PtrTy RHS) {
256 template<typename PtrTy>
257 class ActionResult<PtrTy, true> {
261 typedef llvm::PointerLikeTypeTraits<PtrTy> PtrTraits;
266 ActionResult(PtrTy V) {
280 PtrTy get() const {
284 PtrTy take() const { return get(); }
285 PtrTy release() const { return get(); }
288 void set(PtrTy V) {
294 const ActionResult &operator=(PtrTy RHS) {
304 template <typename PtrTy> class ASTMultiPtr;
306 template <class PtrTy>
308 PtrTy *Nodes;
315 ASTMultiPtr(Sema &, PtrTy *nodes, unsigned count)
318 ASTMultiPtr(PtrTy *nodes, unsigned count) : Nodes(nodes), Count(count) {}
321 PtrTy *get() const { return Nodes; }
326 PtrTy *release() {
370 template <class PtrTy, unsigned N = 8>
371 class ASTOwningVector : public llvm::SmallVector<PtrTy, N> {
379 PtrTy *take() {