Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Downing-memory.cpp234 struct ClassWithOwner { // Does not define destructor, necessary with owner struct
235 ClassWithOwner() : owner_var(nullptr) {} // Ok in ClassWithOwner() argument
237 ClassWithOwner(ArbitraryClass &other) : owner_var(&other) {} in ClassWithOwner() function
240 ClassWithOwner(gsl::owner<ArbitraryClass *> other) : owner_var(other) {} // Ok in ClassWithOwner() argument
242 ClassWithOwner(gsl::owner<ArbitraryClass *> data, int /* unused */) { // Ok in ClassWithOwner() function
246 ClassWithOwner(ArbitraryClass *bad_data, int /* unused */, int /* unused */) { in ClassWithOwner() argument
251 ClassWithOwner(ClassWithOwner &&other) : owner_var{other.owner_var} {} // Ok in ClassWithOwner() argument
253 ClassWithOwner &operator=(ClassWithOwner &&other) { in operator =() argument
280 ClassWithOwner C1; // Ok in test_class_with_owner()
281ClassWithOwner C2{A}; // Bad, since the owner would… in test_class_with_owner()
[all …]