Home
last modified time | relevance | path

Searched refs:RefCountable (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang/test/Analysis/Checkers/WebKit/
H A Dcall-args.cpp24 Ref<RefCountable> provide_ref_counted() { return Ref<RefCountable>{}; } in provide_ref_counted()
70 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
136 Ref<RefCountable> bar; in foo()
169 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
209 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
253 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
283 RefCountable* downcast(RefCountable*) { return nullptr; } in downcast() argument
286 RefPtr<RefCountable> bar; in foo()
297 RefCountable rc;
315 RefCountable* global;
[all …]
H A Duncounted-local-vars.cpp7 RefCountable *bar; in foo()
11 void bar(RefCountable *) {} in bar() argument
16 RefCountable automatic; in foo_ref()
26 RefPtr<RefCountable> foo; in foo1()
31 RefPtr<RefCountable> foo; in foo2()
38 RefPtr<RefCountable> foo; in foo3()
70 { RefCountable *bar = downcast<RefCountable>(foo.get()); } in foo1()
76 RefCountable *bar = in foo2()
77 static_cast<RefCountable *>(downcast<RefCountable>(foo.get())); in foo2()
84 Ref<RefCountable> rc; in foo()
[all …]
H A Duncounted-members.cpp8 RefCountable* a = nullptr;
12 RefPtr<RefCountable> b;
15 RefCountable silenceWarningAboutInit;
16 RefCountable& c = silenceWarningAboutInit;
18 Ref<RefCountable> d;
27 void forceTmplToInstantiate(FooTmpl<RefCountable>) {} in forceTmplToInstantiate() argument
32 RefCountable* a;
33 RefPtr<RefCountable> b;
34 Ref<RefCountable> c;
42 void forceTmplToInstantiate(RefPtr<RefCountable>) {} in forceTmplToInstantiate() argument
H A Duncounted-lambda-captures.cpp5 RefCountable* ref_countable = nullptr; in raw_ptr()
21 RefCountable automatic; in references()
22 RefCountable& ref_countable_ref = automatic; in references()
37 RefCountable automatic; in quiet()
38 RefCountable &ref_countable_ref = automatic; in quiet()
43 RefCountable *ref_countable = nullptr; in quiet()
H A Dmock-types.h41 struct RefCountable { struct
/llvm-project-15.0.7/clang/docs/analyzer/
H A Dcheckers.rst2824 RefCountable* provide_uncounted();
2825 void consume(RefCountable*);
2845 RefPtr<RefCountable> member;
2860 RefCountable* provide_uncounted();
2861 void consume(RefCountable*);
2873 void foo(RefCountable& a) {
2912 RefPtr<RefCountable> counted;
2924 RefCountable* uncounted = this; // ok
2932 RefCountable* uncounted = new RefCountable; // warn
2935 RefCountable* global_uncounted;
[all …]