1 // RUN: %clang_analyze_cc1 -analyzer-checker=webkit.NoUncountedMemberChecker -verify %s
3 #include "mock-types.h"
8 RefCountable
* a
= nullptr;
9 // expected-warning@-1{{Member variable 'a' in 'members::Foo' is a raw pointer to ref-countable type 'RefCountable'}}
12 RefPtr
<RefCountable
> b
;
15 RefCountable silenceWarningAboutInit
;
16 RefCountable
& c
= silenceWarningAboutInit
;
17 // expected-warning@-1{{Member variable 'c' in 'members::Foo' is a reference to ref-countable type 'RefCountable'}}
24 // expected-warning@-1{{Member variable 'a' in 'members::FooTmpl<RefCountable>' is a raw pointer to ref-countable type 'RefCountable'}}
27 void forceTmplToInstantiate(FooTmpl
<RefCountable
>) {}
30 namespace ignore_unions
{
33 RefPtr
<RefCountable
> b
;
42 void forceTmplToInstantiate(RefPtr
<RefCountable
>) {}