mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
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.
This commit is contained in:
parent
cb08aa24a4
commit
04b2fabb9b
|
@ -978,7 +978,7 @@ However, relying on abstractions that implicitly clean up can be as simple, and
|
||||||
|
|
||||||
##### Note
|
##### 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).
|
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.
|
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
|
##### 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 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`
|
* Flag a dereference of a pointer that may have been invalidated by assigning a `nullptr`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user