Lines Matching refs:PNull
232 std::unique_ptr<A> PNull; in derefOnSwappedNullPtr() local
233 P.swap(PNull); in derefOnSwappedNullPtr()
234 PNull->foo(); // No warning. in derefOnSwappedNullPtr()
240 std::unique_ptr<A> PNull; in derefOnFirstStdSwappedNullPtr() local
241 std::swap(P, PNull); in derefOnFirstStdSwappedNullPtr()
247 std::unique_ptr<A> PNull; in derefOnSecondStdSwappedNullPtr() local
248 std::swap(P, PNull); in derefOnSecondStdSwappedNullPtr()
249 …PNull->foo(); // expected-warning {{Dereference of null smart pointer 'PNull' [alpha.cplusplus.Sma… in derefOnSecondStdSwappedNullPtr()
401 std::unique_ptr<A> PNull; in derefConditionOnValidPtr() local
403 …PNull->foo(); // expected-warning {{Dereference of null smart pointer 'PNull' [alpha.cplusplus.Sma… in derefConditionOnValidPtr()
408 std::unique_ptr<A> PNull; in derefConditionOnNotValidPtr() local
410 PNull->foo(); // No warning. in derefConditionOnNotValidPtr()