Home
last modified time | relevance | path

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

/llvm-project/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() function
253 ClassWithOwner &operator=(ClassWithOwner &&other) { in operator =() argument
263 … warning: member variable of type 'gsl::owner<>' requires the class 'ClassWithOwner' to implement … argument