summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/fuchsia-overloaded-operator.rst
blob: 070780f48db2ae3bca0c7d747fa79c05fe3c4597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.. title:: clang-tidy - fuchsia-overloaded-operator

fuchsia-overloaded-operator
===========================

Warns if an operator is overloaded, except for the assignment (copy and move) 
operators.

For example:

.. code-block:: c++

  int operator+(int);     // Warning

  B &operator=(const B &Other);  // No warning
  B &operator=(B &&Other) // No warning

See the features disallowed in Fuchsia at https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md
OpenPOWER on IntegriCloud