From dc8e49314f6b965105ce693f33499e18c4cc4968 Mon Sep 17 00:00:00 2001 From: hsutter Date: Thu, 30 Jan 2020 11:21:00 -0800 Subject: [PATCH] Tweaked PR #1553 per editors call --- CppCoreGuidelines.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 68b3786..fd5ca90 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1346,7 +1346,7 @@ The rule is "avoid", not "don't use." Of course there will be (rare) exceptions, ##### Enforcement (Simple) Report all non-`const` variables declared at namespace scope and global pointers/references to non-const data. -(??? NM: Obviously we can warn about non-`const` statics ... do we want to?) + ### I.3: Avoid singletons @@ -9004,6 +9004,7 @@ Here, we ignore such cases. * [R.3: A raw pointer (a `T*`) is non-owning](#Rr-ptr) * [R.4: A raw reference (a `T&`) is non-owning](#Rr-ref) * [R.5: Prefer scoped objects, don't heap-allocate unnecessarily](#Rr-scoped) + * [R.6: Avoid non-`const` global variables](#Rr-global) * Allocation and deallocation rule summary: