Home
last modified time | relevance | path

Searched refs:RefPtr (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/clang/test/Analysis/Checkers/WebKit/
H A Dmock-types.h14 template <typename T> struct RefPtr { struct
17 RefPtr() : t(new T) {} in RefPtr() argument
18 RefPtr(T *t) : t(t) {} in RefPtr() argument
22 RefPtr &operator=(T *) { return *this; } argument
25 template <typename T> bool operator==(const RefPtr<T> &, const RefPtr<T> &) {
29 template <typename T> bool operator==(const RefPtr<T> &, T *) { return false; }
31 template <typename T> bool operator==(const RefPtr<T> &, T &) { return false; }
33 template <typename T> bool operator!=(const RefPtr<T> &, const RefPtr<T> &) {
37 template <typename T> bool operator!=(const RefPtr<T> &, T *) { return false; }
39 template <typename T> bool operator!=(const RefPtr<T> &, T &) { return false; }
H A Duncounted-local-vars.cpp26 RefPtr<RefCountable> foo; in foo1()
31 RefPtr<RefCountable> foo; in foo2()
38 RefPtr<RefCountable> foo; in foo3()
46 RefPtr<RefCountable> foo; in foo4()
69 RefPtr<RefCountable> foo; in foo1()
74 RefPtr<RefCountable> foo; in foo2()
H A Duncounted-members.cpp12 RefPtr<RefCountable> b;
33 RefPtr<RefCountable> b;
38 union RefPtr { union
42 void forceTmplToInstantiate(RefPtr<RefCountable>) {} in forceTmplToInstantiate()
H A Dcall-args.cpp274 RefPtr<RefCountable> a(provide()); in foo()
286 RefPtr<RefCountable> bar; in foo()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dinstantiate-default-assignment-operator.cpp3 template<typename T> struct RefPtr { struct
4RefPtr& operator=(const RefPtr&) { int a[sizeof(T) ? -1 : -1];} // expected-error 2 {{array with a… in operator =() argument
5 RefPtr& operator=(const PassRefPtr<T>&);
8 struct A { RefPtr<int> a; }; // expected-note {{instantiation of member function 'RefPtr<int>::ope…
9 struct B : RefPtr<float> { }; // expected-note {{in instantiation of member function 'RefPtr<float>…
H A Dvirtual-member-functions.cpp179 struct RefPtr { struct
181 ~RefPtr() { m_ptr->deref(); } in ~RefPtr() argument
189 RefPtr<DeclaredOnly> m_insertionStyle;
202 struct RefPtr { struct
204 …~RefPtr() { m_ptr->deref(); } // expected-error {{member access into incomplete type 'vtable_uses… in ~RefPtr()
212 RefPtr<DeclaredOnly> m_insertionStyle;
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dvtable-available-externally.cpp91 template <class T> struct RefPtr { struct
93 ~RefPtr() { in ~RefPtr() argument
106 RefPtr<Node> m;
110 RefPtr<B> b; in f()
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/
H A Dp12.cpp17 template<typename> struct RefPtr { }; struct
21 template<typename T> struct PtrHash<RefPtr<T> > : PtrHash<T*> {
/llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/
H A Dp5.cpp47 struct RefPtr { struct
/llvm-project-15.0.7/clang/docs/analyzer/
H A Dcheckers.rst1424 - *Ref-counted type* is either ``Ref<T>`` or ``RefPtr<T>``.
1425 …- *Ref-countable type* is any type that implements ``ref()`` and ``deref()`` methods as ``RefPtr<>…
2845 RefPtr<RefCountable> member;
2864 RefPtr<RefCountable> rc = makeRef(provide_uncounted());
2912 RefPtr<RefCountable> counted;
2919 void foo2(RefPtr<RefCountable> counted_param) {
2941 RefPtr<RefCountable> counted;