From 83566ba7d175f6acece4ab4f7147dc6f80098a9c Mon Sep 17 00:00:00 2001 From: Sergey Zubkov Date: Fri, 31 Mar 2017 21:01:48 -0400 Subject: [PATCH] travis fixes --- CppCoreGuidelines.md | 12 ++++++++---- scripts/hunspell/isocpp.dic | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4d300ce..68429d0 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1868,9 +1868,13 @@ Having many arguments opens opportunities for confusion. Passing lots of argumen The two most common reasons why functions have too many parameters are: - 1. *Missing an abstraction.* There is an abstraction missing, so that a compound value is being passed as individual elements instead of as a single object that enforces an invariant. This not only expands the parameter list, but it leads to errors because the component values are no longer protected by an enforced invariant. + 1. *Missing an abstraction.* There is an abstraction missing, so that a compound value is being + passed as individual elements instead of as a single object that enforces an invariant. + This not only expands the parameter list, but it leads to errors because the component values + are no longer protected by an enforced invariant. - 2. *Violating "one function, one responsibility."* The function is trying to do more than one job and should probably be refactored. + 2. *Violating "one function, one responsibility."* The function is trying to do more than one + job and should probably be refactored. ##### Example @@ -17755,7 +17759,7 @@ Pointers should only refer to single objects, and pointer arithmetic is fragile int n = a[0]; // OK - span q = a.subspan(1); // OK + span q = a.subspan(1); // OK if (a.length() < 6) return; @@ -17836,7 +17840,7 @@ Dynamic accesses into arrays are difficult for both tools and humans to validate void f1a() { int arr[COUNT]; - span av = arr; + span av = arr; int i = 0; for (auto& e : av) e = i++; diff --git a/scripts/hunspell/isocpp.dic b/scripts/hunspell/isocpp.dic index 429ba9d..5a4b039 100644 --- a/scripts/hunspell/isocpp.dic +++ b/scripts/hunspell/isocpp.dic @@ -508,6 +508,7 @@ UB unaliased uncompromised undetached +unencapsulated unenforceable uninit uniqueptrparam