mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix / Consistent Enforcement sections
This commit is contained in:
parent
7f20741f38
commit
c4f09f2d19
|
@ -7020,7 +7020,7 @@ If at all possible, reduce the conditions to a simple set of alternatives (e.g.,
|
||||||
case file: owned=true; return *new ifstream{argv[2]};
|
case file: owned=true; return *new ifstream{argv[2]};
|
||||||
}();
|
}();
|
||||||
|
|
||||||
**Enforcement:** Hard. At best a heuristic. Look for an unitialized variable followed by a loop assigning to it.
|
**Enforcement**: Hard. At best a heuristic. Look for an unitialized variable followed by a loop assigning to it.
|
||||||
|
|
||||||
|
|
||||||
<a name="Res-macros"></a>
|
<a name="Res-macros"></a>
|
||||||
|
@ -11517,7 +11517,7 @@ Comments are not updated as consistently as code.
|
||||||
if (i==j)
|
if (i==j)
|
||||||
return i;
|
return i;
|
||||||
|
|
||||||
Enforcement: Use a tool.
|
**Enforcement**: Use a tool.
|
||||||
|
|
||||||
|
|
||||||
<a name="Rl-name-type"></a>
|
<a name="Rl-name-type"></a>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user