File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ This check implements detection of local variables which could be declared as
7
7
``const `` but are not. Declaring variables as ``const `` is required or recommended by many
8
8
coding guidelines, such as:
9
9
`ES.25 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es25-declare-an-object-const-or-constexpr-unless-you-want-to-modify-its-value-later-on >`_
10
- from the C++ Core Guidelines and `AUTOSAR C++14 Rule A7-1-1 (6.7.1 Specifiers)
11
- <https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf> `_.
10
+ from the C++ Core Guidelines.
12
11
13
12
Please note that this check's analysis is type-based only. Variables that are not modified
14
13
but used to create a non-const handle that might escape the scope are not diagnosed
Original file line number Diff line number Diff line change @@ -13,6 +13,3 @@ types and definitions with good return type but wrong ``return`` statements.
13
13
type (e.g. ``int ``).
14
14
* Private and deleted operators are ignored.
15
15
* The operator must always return ``*this ``.
16
-
17
- This check implements `AUTOSAR C++14 Rule A13-2-1
18
- <https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf> `_.
Original file line number Diff line number Diff line change @@ -16,6 +16,3 @@ Examples:
16
16
int NestInConditional = (condition1 ? true1 : false1) ? true2 : false2;
17
17
int NestInTrue = condition1 ? (condition2 ? true1 : false1) : false2;
18
18
int NestInFalse = condition1 ? true1 : condition2 ? true2 : false1;
19
-
20
- This check implements part of `AUTOSAR C++14 Rule A5-16-1
21
- <https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf> `_.
You can’t perform that action at this time.
0 commit comments