From 398d3a74005de524e89e6501b68ba8d084683b61 Mon Sep 17 00:00:00 2001 From: hsutter Date: Wed, 15 Mar 2017 11:05:22 -0700 Subject: [PATCH] Added Bounds.* section index --- CppCoreGuidelines.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 28cb53a..a3782ae 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -17666,6 +17666,14 @@ The following are under consideration but not yet in the rules below, and may be An implementation of this profile shall recognize the following patterns in source code as non-conforming and issue a diagnostic. +Bounds safety profile summary: + +* [Bounds.1: Don't use pointer arithmetic. Use `span` instead](#Pro-bounds-arithmetic) +* [Bounds.2: Only index into arrays using constant expressions](#Pro-bounds-arrayindex) +* [Bounds.3: No array-to-pointer decay](#Pro-bounds-decay) +* [Bounds.4: Don't use standard library functions and types that are not bounds-checked](#Pro-bounds-stdlib) + + ### Bounds.1: Don't use pointer arithmetic. Use `span` instead. ##### Reason