Lines Matching refs:RefCountable

5 RefCountable* provide() { return nullptr; }  in provide()
6 void consume_refcntbl(RefCountable*) {} in consume_refcntbl() argument
16 void consume_refcntbl(int, RefCountable* foo, bool) {} in consume_refcntbl()
24 Ref<RefCountable> provide_ref_counted() { return Ref<RefCountable>{}; } in provide_ref_counted()
25 void consume_ref_counted(Ref<RefCountable>) {} in consume_ref_counted() argument
35 void consume_ptr(RefCountable* ptr) {} in consume_ptr()
36 void consume_ref(const RefCountable& ref) {} in consume_ref()
50 void consume(RefCountable*) { } in foo2()
60 void consume(RefCountable*) { } in foo3()
70 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
76 consume_refcntbl(static_cast<RefCountable*>(provide())); in foo()
79 consume_refcntbl(dynamic_cast<RefCountable*>(provide())); in foo()
82 consume_refcntbl(const_cast<RefCountable*>(provide())); in foo()
85 consume_refcntbl(reinterpret_cast<RefCountable*>(provide())); in foo()
92 static_cast<RefCountable*>( in foo()
94 static_cast<RefCountable*>( in foo()
113 RefCountable* get() { return nullptr; } in get()
133 void consume_ref(RefCountable&) {} in consume_ref() argument
136 Ref<RefCountable> bar; in foo()
142 void consume_ref_countable_ref(RefCountable&) {} in consume_ref_countable_ref() argument
143 void consume_ref_countable_ptr(RefCountable*) {} in consume_ref_countable_ptr() argument
146 void foo(RefCountable* param) { in foo()
152 void foo(RefCountable& param) { in foo()
158 void foo_ref(RefCountable& param) { in foo_ref()
162 void foo_ptr(RefCountable* param) { in foo_ptr()
169 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
174 void foo(RefCountable* param) { in foo()
182 auto consume_ref_countable_ref = [](RefCountable&) {}; in __anon8eba47080102() argument
183 auto consume_ref_countable_ptr = [](RefCountable*) {}; in __anon8eba47080202() argument
186 void foo(RefCountable* param) { in foo()
192 void foo(RefCountable& param) { in foo()
198 void foo_ref(RefCountable& param) { in foo_ref()
202 void foo_ptr(RefCountable* param) { in foo_ptr()
209 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
214 void foo(RefCountable* param) { in foo()
223 void consume_ref_countable_ref(RefCountable&) {}; in consume_ref_countable_ref()
224 static void consume_ref_countable_ptr(RefCountable*) {}; in consume_ref_countable_ptr()
228 void foo(RefCountable* param) { in foo()
234 void foo(RefCountable& param) { in foo()
241 void foo_ref(RefCountable& param) { in foo_ref()
245 void foo_ptr(RefCountable* param) { in foo_ptr()
253 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
258 void foo(RefCountable* param) { in foo()
266 void makeRef(RefCountable*) {} in makeRef() argument
267 void makeRefPtr(RefCountable*) {} in makeRefPtr() argument
268 void makeWeakPtr(RefCountable*) {} in makeWeakPtr() argument
269 void makeWeakPtr(RefCountable&) {} in makeWeakPtr() argument
274 RefPtr<RefCountable> a(provide()); in foo()
275 Ref<RefCountable> b(provide()); in foo()
282 void consume_ref_countable(RefCountable*) {} in consume_ref_countable() argument
283 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
286 RefPtr<RefCountable> bar; in foo()
293 RefCountable* impl() { return nullptr; } in impl()
297 RefCountable rc;
298 RefCountable& impl() { return rc; } in impl()
301 void consume_ptr(RefCountable*) {} in consume_ptr() argument
302 void consume_ref(RefCountable&) {} in consume_ref() argument
315 RefCountable* global;
317 void function_with_default_arg(RefCountable* param = global) {} in function_with_default_arg()
328 Foo& operator+(RefCountable* bad) { return *this; } in operator +()
329 friend Foo& operator-(Foo& lhs, RefCountable* bad) { return lhs; } in operator -()
330 void operator()(RefCountable* bad) { } in operator ()()
333 RefCountable* global;