Lines Matching defs:RefCountable
10 RefCountable *bar;
14 void bar(RefCountable *) {}
19 RefCountable automatic;
20 RefCountable &bar = automatic;
27 RefCountable automatic;
28 RefCountable &bar = automatic;
31 void bar_ref(RefCountable &) {}
36 RefPtr<RefCountable> foo;
37 { RefCountable *bar = foo.get(); }
41 RefPtr<RefCountable> foo;
43 RefCountable *bar = foo.get();
50 RefPtr<RefCountable> foo;
52 { RefCountable *bar = foo.get(); }
58 RefPtr<RefCountable> foo;
59 { RefCountable *bar = foo.get(); }
64 RefPtr<RefCountable> foo;
70 RefPtr<RefCountable> foo;
78 RefCountable* obj { nullptr };
81 void foo7(RefCountable* obj) {
86 void foo8(RefCountable* obj) {
87 RefPtr<RefCountable> foo;
89 RefCountable *bar = foo.get();
94 RefPtr<RefCountable> baz;
96 RefCountable *bar = baz.get();
103 RefCountable *bar = foo.get();
109 RefCountable *bar = foo.get();
115 RefCountable *bar = foo.get();
121 RefCountable *bar = foo->trivial() ? foo.get() : nullptr;
128 void foo9(RefCountable& o) {
129 Ref<RefCountable> guardian(o);
131 RefCountable &bar = guardian.get();
137 RefCountable *bar = guardian.ptr();
139 Ref<RefCountable> other(*bar); // We don't detect other has the same value as guardian.
144 RefCountable *bar = guardian.ptr();
146 Ref<RefCountable> other(static_cast<Ref<RefCountable>&&>(guardian));
150 RefCountable *bar = guardian.ptr();
156 RefCountable *bar = guardian.ptr();
167 RefCountable *provide_ref_ctnbl();
170 RefCountable *bar = provide_ref_ctnbl();
180 RefCountable *bar = provide_ref_ctnbl();
190 RefPtr<RefCountable> foo;
192 RefCountable *bar = downcast<RefCountable>(foo.get());
199 RefPtr<RefCountable> foo;
201 RefCountable *bar =
202 static_cast<RefCountable *>(downcast<RefCountable>(foo.get()));
210 Ref<RefCountable> rc;
212 RefCountable &rr = rc;
220 RefCountable *provide_ref_ctnbl() { return nullptr; }
224 if (RefCountable *a = provide_ref_ctnbl())
226 for (RefCountable *b = provide_ref_ctnbl(); b != nullptr;)
228 RefCountable *array[1];
229 for (RefCountable *c : array)
231 while (RefCountable *d = provide_ref_ctnbl())
234 RefCountable *e = provide_ref_ctnbl();
241 if (RefCountable *a = provide_ref_ctnbl()) {
245 for (RefCountable *b = provide_ref_ctnbl(); b != nullptr;) {
249 RefCountable *array[1];
250 for (RefCountable *c : array) {
255 while (RefCountable *d = provide_ref_ctnbl()) {
260 RefCountable *e = provide_ref_ctnbl();
271 RefCountable *provide_ref_ctnbl();
274 localVar<RefCountable>(provide_ref_ctnbl);
280 RefCountable *provide_ref_ctnbl();
284 RefCountable *a = bar() ? nullptr : provide_ref_ctnbl();
286 RefPtr<RefCountable> b = provide_ref_ctnbl();
288 RefCountable* c = bar() ? nullptr : b.get();
290 RefCountable* d = bar() ? b.get() : nullptr;
299 RefCountable *provide_ref_cntbl();
301 void foo(RefCountable* a) {
302 RefCountable* b = a;
308 void bar(RefCountable* a) {
309 RefCountable* b;
317 RefCountable* b = a.get();
327 RefCountable *provide_ref_cntbl();
330 void foo(RefCountable* a) {
341 RefCountable *provide_ref_cntbl();
345 static RefCountable* a = nullptr;
356 RefCountable *provide_ref_cntbl();
359 RefCountable* g_a = nullptr;
461 RefCountable *singleton();
462 RefCountable *otherSingleton();
464 RefCountable* bar = singleton();
465 RefCountable* baz = otherSingleton();