mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
fixes to pass travis checks
This commit is contained in:
@@ -399,7 +399,8 @@ If you don't understand a rule or disagree with it, please visit its **Discussio
|
|||||||
If you feel that a discussion is missing or incomplete, enter an [Issue](https://github.com/isocpp/CppCoreGuidelines/issues)
|
If you feel that a discussion is missing or incomplete, enter an [Issue](https://github.com/isocpp/CppCoreGuidelines/issues)
|
||||||
explaining your concerns and possibly a corresponding PR.
|
explaining your concerns and possibly a corresponding PR.
|
||||||
|
|
||||||
Examples are written to illustate rules.
|
Examples are written to illustrate rules.
|
||||||
|
|
||||||
* Examples are not intended to be production quality or to cover all tutorial dimensions.
|
* Examples are not intended to be production quality or to cover all tutorial dimensions.
|
||||||
For example, many examples are language-technical and use names like `f`, `base`, and `x`.
|
For example, many examples are language-technical and use names like `f`, `base`, and `x`.
|
||||||
* We try to ensure that "good" examples follow the Core Guidelines.
|
* We try to ensure that "good" examples follow the Core Guidelines.
|
||||||
@@ -6589,8 +6590,7 @@ This is also type-unsafe and overwrites the vtable.
|
|||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
- Flag passing a non-trivially-copyable type to `memset` or `memcpy`.
|
* Flag passing a non-trivially-copyable type to `memset` or `memcpy`.
|
||||||
|
|
||||||
|
|
||||||
## <a name="SS-containers"></a>C.con: Containers and other resource handles
|
## <a name="SS-containers"></a>C.con: Containers and other resource handles
|
||||||
|
|
||||||
@@ -10607,7 +10607,7 @@ However, such examples do tend to leave uninitialized variables accessible, so t
|
|||||||
int buf[max] = {}; // zero all elements; better in some situations
|
int buf[max] = {}; // zero all elements; better in some situations
|
||||||
f.read(buf, max);
|
f.read(buf, max);
|
||||||
|
|
||||||
Because of the restrictive initialization rules for arrays and `std::array`, they offer the most commoncompelling examples of the need for this exception.
|
Because of the restrictive initialization rules for arrays and `std::array`, they offer the most compelling examples of the need for this exception.
|
||||||
|
|
||||||
When feasible use a library function that is known not to overflow. For example:
|
When feasible use a library function that is known not to overflow. For example:
|
||||||
|
|
||||||
@@ -20129,7 +20129,7 @@ If you are in a hard-real-time system where you must guarantee completion of a t
|
|||||||
you need tools to back up such guarantees.
|
you need tools to back up such guarantees.
|
||||||
As far as we know such tools are not available (at least not to most programmers).
|
As far as we know such tools are not available (at least not to most programmers).
|
||||||
* the exception-handling run-time support takes up too much space
|
* the exception-handling run-time support takes up too much space
|
||||||
This can be the case in small (usually embedded systesm).
|
This can be the case in small (usually embedded systems).
|
||||||
However, before abandoning exceptions consider what space consistent error-handling using error-codes would require
|
However, before abandoning exceptions consider what space consistent error-handling using error-codes would require
|
||||||
and what failure to catch an error would cost.
|
and what failure to catch an error would cost.
|
||||||
|
|
||||||
|
|||||||
@@ -616,7 +616,9 @@ virtuality
|
|||||||
virtuals
|
virtuals
|
||||||
VLAs
|
VLAs
|
||||||
volatile2
|
volatile2
|
||||||
|
vptr
|
||||||
vr
|
vr
|
||||||
|
vtable
|
||||||
vtbls
|
vtbls
|
||||||
vv
|
vv
|
||||||
w0
|
w0
|
||||||
|
|||||||
Reference in New Issue
Block a user