070780f48db2ae3bca0c7d747fa79c05fe3c4597
[platform/upstream/llvm.git] / clang-tools-extra / docs / clang-tidy / checks / fuchsia-overloaded-operator.rst
1 .. title:: clang-tidy - fuchsia-overloaded-operator
2
3 fuchsia-overloaded-operator
4 ===========================
5
6 Warns if an operator is overloaded, except for the assignment (copy and move) 
7 operators.
8
9 For 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
18 See the features disallowed in Fuchsia at https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md