[NFC] Trim trailing whitespace in *.rst
[platform/upstream/llvm.git] / clang-tools-extra / docs / clang-tidy / checks / hicpp-explicit-conversions.rst
1 .. title:: clang-tidy - hicpp-explicit-conversions
2 .. meta::
3    :http-equiv=refresh: 5;URL=google-explicit-constructor.html
4
5 hicpp-explicit-conversions
6 ==========================
7
8 This check is an alias for `google-explicit-constructor <google-explicit-constructor.html>`_.
9 Used to enforce parts of `rule 5.4.1 <http://www.codingstandard.com/rule/5-4-1-only-use-casting-forms-static_cast-excl-void-dynamic_cast-or-explicit-constructor-call/>`_.
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:
13
14 - `cppcoreguidelines-pro-type-static-cast-downcast <cppcoreguidelines-pro-type-static-cast-downcast.html>`_
15 - `cppcoreguidelines-pro-type-reinterpret-cast <cppcoreguidelines-pro-type-reinterpret-cast.html>`_
16 - `cppcoreguidelines-pro-type-const-cast <cppcoreguidelines-pro-type-const-cast.html>`_
17 - `cppcoreguidelines-pro-type-cstyle-cast <cppcoreguidelines-pro-type-cstyle-cast.html>`_