Home
last modified time | relevance | path

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

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Downing-memory.cpp233 struct ArbitraryClass {}; struct
237 ClassWithOwner(ArbitraryClass &other) : owner_var(&other) {} in ClassWithOwner()
240 ClassWithOwner(gsl::owner<ArbitraryClass *> other) : owner_var(other) {} // Ok in ClassWithOwner()
242 ClassWithOwner(gsl::owner<ArbitraryClass *> data, int /* unused */) { // Ok in ClassWithOwner()
246 ClassWithOwner(ArbitraryClass *bad_data, int /* unused */, int /* unused */) { in ClassWithOwner()
260 gsl::owner<ArbitraryClass *> buggy_but_returns_owner() { return owner_var; } in buggy_but_returns_owner()
262 gsl::owner<ArbitraryClass *> owner_var;
279 ArbitraryClass A; in test_class_with_owner()
282 ClassWithOwner C3{gsl::owner<ArbitraryClass *>(new ArbitraryClass)}; // Ok in test_class_with_owner()
291 gsl::owner<ArbitraryClass *> Owner3 = C1.buggy_but_returns_owner(); // Ok, still an owner in test_class_with_owner()