xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/fuchsia/overloaded-operator.rst (revision 6b95787acc5b2628a3d544c70cb0727a1975150d)
1.. title:: clang-tidy - fuchsia-overloaded-operator
2
3fuchsia-overloaded-operator
4===========================
5
6Warns if an operator is overloaded, except for the assignment (copy and move)
7operators.
8
9For example:
10
11.. code-block:: c++
12
13  int operator+(int);     // Warning
14
15  B &operator=(const B &Other);  // No warning
16  B &operator=(B &&Other) // No warning
17
18See the features disallowed in Fuchsia at https://fuchsia.dev/fuchsia-src/development/languages/c-cpp/cxx?hl=en
19