From 04b2fabb9b360b6c532bcd5e58f750febedb9c9a Mon Sep 17 00:00:00 2001 From: jeffreyai Date: Thu, 12 Jul 2018 05:22:14 -0700 Subject: [PATCH] Change 'lifetime profile' to 'lifetime safety profile' and fix the bad/broken links (#1240) 'lifetime profile' is only used twice with bad/broken links. 'lifetime safety' and 'lifetime safety profile' are used more frequently, and make more sense. --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 6319138..54d5607 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -978,7 +978,7 @@ However, relying on abstractions that implicitly clean up can be as simple, and ##### Note -Enforcing [the lifetime profile](#SS-force) eliminates leaks. +Enforcing [the lifetime safety profile](#SS-lifetime) eliminates leaks. When combined with resource safety provided by [RAII](#Rr-raii), it eliminates the need for "garbage collection" (by generating no garbage). Combine this with enforcement of [the type and bounds profiles](#SS-force) and you get complete type- and resource-safety, guaranteed by tools. @@ -12026,7 +12026,7 @@ Remember that there are other ways of getting an invalid pointer. ##### Enforcement -This rule is part of the [lifetime profile](#Pro.lifetime) +This rule is part of the [lifetime safety profile](#SS-lifetime) * Flag a dereference of a pointer that points to an object that has gone out of scope * Flag a dereference of a pointer that may have been invalidated by assigning a `nullptr`