Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/
H A Downing-memory.rst166 gsl::owner<int*> Owner2 = new int(42);
168 Owner2 = Owner1; // Conceptual Leak of initial resource of Owner2!
173 resource ``Owner2`` must have been released before the assignment.
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Downing-memory.cpp286 auto Owner2 = C2.buggy_but_returns_owner(); // Ok, deduces Owner2 to owner<ArbitraryClass *> in test_class_with_owner() local
288 Owner2 = &A; // BAD, since type deduction resulted in owner<ArbitraryClass *> in test_class_with_owner()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTStructuralEquivalence.cpp1249 const auto *Owner2 = cast<Decl>(Field2->getDeclContext()); in IsStructurallyEquivalent() local
1267 Owner2->getLocation(), in IsStructurallyEquivalent()
1282 Owner2->getLocation(), in IsStructurallyEquivalent()
1303 const auto *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent() local
1305 Context.ToCtx.getTypeDeclType(Owner2)); in IsStructurallyEquivalent()