Author: Richard Smith Date: 2021-03-22T15:06:20-07:00 New Revision: 3c67653ef4e3f5278b4f278cb2b181a1fe3c4f27
URL: https://github.com/llvm/llvm-project/commit/3c67653ef4e3f5278b4f278cb2b181a1fe3c4f27 DIFF: https://github.com/llvm/llvm-project/commit/3c67653ef4e3f5278b4f278cb2b181a1fe3c4f27.diff LOG: [docs] Clarify which part of the "refers to" rule for lifetimebound is recursive. Added: Modified: clang/include/clang/Basic/AttrDocs.td Removed: ################################################################################ diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td index 4e4d419bd03b..ed3d75b14f5e 100644 --- a/clang/include/clang/Basic/AttrDocs.td +++ b/clang/include/clang/Basic/AttrDocs.td @@ -3036,7 +3036,7 @@ By default, a reference is considered to refer to its referenced object, a pointer is considered to refer to its pointee, a ``std::initializer_list<T>`` is considered to refer to its underlying array, and aggregates (arrays and simple ``struct``s) are considered to refer to all objects that their -subobjects refer to, recursively. +transitive subobjects refer to. Clang warns if it is able to detect that an object or reference refers to another object with a shorter lifetime. For example, Clang will warn if a _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits