File tree Expand file tree Collapse file tree 37 files changed +174
-128
lines changed Expand file tree Collapse file tree 37 files changed +174
-128
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ hicpp-braces-around-statements
66==============================
77
88The `hicpp-braces-around-statements ` check is an alias, please see
9- :doc: `readability-braces-around-statements <../readability/braces-around-statements >`
9+ :doc: `readability-braces-around-statements
10+ <../readability/braces-around-statements>`
1011for more information.
1112It enforces the `rule 6.1.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements >`_.
Original file line number Diff line number Diff line change @@ -7,11 +7,16 @@ hicpp-explicit-conversions
77
88This check is an alias for :doc: `google-explicit-constructor <../google/explicit-constructor >`.
99Used to enforce parts of `rule 5.4.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard-expressions >`_.
10- This check will enforce that constructors and conversion operators are marked `explicit `.
11- Other forms of casting checks are implemented in other places.
12- The following checks can be used to check for more forms of casting:
10+ This check will enforce that constructors and conversion operators are
11+ marked `explicit `. Other forms of casting checks are implemented in
12+ other places. The following checks can be used to check for more forms
13+ of casting:
1314
14- - :doc: `cppcoreguidelines-pro-type-static-cast-downcast <../cppcoreguidelines/pro-type-static-cast-downcast >`
15- - :doc: `cppcoreguidelines-pro-type-reinterpret-cast <../cppcoreguidelines/pro-type-reinterpret-cast >`
16- - :doc: `cppcoreguidelines-pro-type-const-cast <../cppcoreguidelines/pro-type-const-cast >`
17- - :doc: `cppcoreguidelines-pro-type-cstyle-cast <../cppcoreguidelines/pro-type-cstyle-cast >`
15+ - :doc: `cppcoreguidelines-pro-type-static-cast-downcast
16+ <../cppcoreguidelines/pro-type-static-cast-downcast>`
17+ - :doc: `cppcoreguidelines-pro-type-reinterpret-cast
18+ <../cppcoreguidelines/pro-type-reinterpret-cast>`
19+ - :doc: `cppcoreguidelines-pro-type-const-cast
20+ <../cppcoreguidelines/pro-type-const-cast>`
21+ - :doc: `cppcoreguidelines-pro-type-cstyle-cast
22+ <../cppcoreguidelines/pro-type-cstyle-cast>`
Original file line number Diff line number Diff line change 55hicpp-function-size
66===================
77
8- This check is an alias for :doc: `readability-function-size <../readability/function-size >`.
8+ This check is an alias for
9+ :doc: `readability-function-size <../readability/function-size >`.
910Useful to enforce multiple sections on function complexity.
1011
1112- `rule 8.2.2 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/definitions >`_
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ operating over. On completion, they return an iterator to the last valid
1313element. In the majority of cases the correct behavior is to use this result as
1414the first operand in a call to ``std::erase ``.
1515
16- This check is a subset of :doc: `bugprone-unused-return-value <../bugprone/unused-return-value >`
16+ This check is a subset of :doc: `bugprone-unused-return-value
17+ <../bugprone/unused-return-value>`
1718and depending on used options it can be superfluous to enable both checks.
1819
1920Options
Original file line number Diff line number Diff line change 55hicpp-invalid-access-moved
66==========================
77
8- This check is an alias for :doc: `bugprone-use-after-move <../bugprone/use-after-move >`.
8+ This check is an alias for
9+ :doc: `bugprone-use-after-move <../bugprone/use-after-move >`.
910
1011Implements parts of the `rule 8.4.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/definitions >`_ to check if moved-from objects are accessed.
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ hicpp-move-const-arg
66====================
77
88The `hicpp-move-const-arg ` check is an alias, please see
9- :doc: `performance-move-const-arg <../performance/move-const-arg >` for more information.
9+ :doc: `performance-move-const-arg <../performance/move-const-arg >`
10+ for more information.
1011It enforces the `rule 17.3.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/standard-library >`_.
Original file line number Diff line number Diff line change @@ -4,15 +4,16 @@ hicpp-multiway-paths-covered
44============================
55
66This check discovers situations where code paths are not fully-covered.
7- It furthermore suggests using ``if `` instead of ``switch `` if the code will be more clear.
7+ It furthermore suggests using ``if `` instead of ``switch `` if the code
8+ will be more clear.
89The `rule 6.1.2 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements >`_
910and `rule 6.1.4 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements >`_
1011of the High Integrity C++ Coding Standard are enforced.
1112
12- ``if-else if `` chains that miss a final ``else `` branch might lead to unexpected
13- program execution and be the result of a logical error.
14- If the missing ``else `` branch is intended you can leave it empty with a clarifying
15- comment.
13+ ``if-else if `` chains that miss a final ``else `` branch might lead to
14+ unexpected program execution and be the result of a logical error.
15+ If the missing ``else `` branch is intended you can leave it empty with
16+ a clarifying comment.
1617This warning can be noisy on some code bases, so it is disabled by default.
1718
1819.. code-block :: c++
@@ -28,7 +29,8 @@ This warning can be noisy on some code bases, so it is disabled by default.
2829 // ...
2930 }
3031
31- Similar arguments hold for ``switch `` statements which do not cover all possible code paths.
32+ Similar arguments hold for ``switch `` statements which do not cover all
33+ possible code paths.
3234
3335.. code-block :: c++
3436
Original file line number Diff line number Diff line change 55hicpp-named-parameter
66=====================
77
8- This check is an alias for :doc: `readability-named-parameter <../readability/named-parameter >`.
8+ This check is an alias for :doc: `readability-named-parameter
9+ <../readability/named-parameter>`.
910
1011Implements `rule 8.2.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/definitions >`_.
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ hicpp-no-array-decay
66====================
77
88The `hicpp-no-array-decay ` check is an alias, please see
9- :doc: `cppcoreguidelines-pro-bounds-array-to-pointer-decay <../cppcoreguidelines/pro-bounds-array-to-pointer-decay >`
9+ :doc: `cppcoreguidelines-pro-bounds-array-to-pointer-decay
10+ <../cppcoreguidelines/pro-bounds-array-to-pointer-decay>`
1011for more information.
1112It enforces the `rule 4.1.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/standard-conversions >`_.
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ hicpp-uppercase-literal-suffix
66==============================
77
88The hicpp-uppercase-literal-suffix check is an alias, please see
9- :doc: `readability-uppercase-literal-suffix <../readability/uppercase-literal-suffix >` for more information.
9+ :doc: `readability-uppercase-literal-suffix
10+ <../readability/uppercase-literal-suffix>` for more information.
1011
1112Partially implements `rule 4.2.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/standard-conversions >`_
1213to ensure that the ``U `` suffix is writeln properly.
You can’t perform that action at this time.
0 commit comments