Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dcppcoreguidelines-owning-memory.cpp238 struct ClassWithOwner { // Does not define destructor, necessary with owner struct
239 ClassWithOwner() : owner_var(nullptr) {} // Ok in ClassWithOwner() argument
241 ClassWithOwner(ArbitraryClass &other) : owner_var(&other) {} in ClassWithOwner() argument
244 ClassWithOwner(gsl::owner<ArbitraryClass *> other) : owner_var(other) {} // Ok in ClassWithOwner() argument
246 ClassWithOwner(gsl::owner<ArbitraryClass *> data, int /* unused */) { // Ok in ClassWithOwner() function
250 ClassWithOwner(ArbitraryClass *bad_data, int /* unused */, int /* unused */) { in ClassWithOwner() function
255 ClassWithOwner(ClassWithOwner &&other) : owner_var{other.owner_var} {} // Ok in ClassWithOwner() argument
257 ClassWithOwner &operator=(ClassWithOwner &&other) { in operator =() argument
267 … warning: member variable of type 'gsl::owner<>' requires the class 'ClassWithOwner' to implement … argument