bolt/deps/llvm-18.1.8/clang-tools-extra/docs/clang-tidy/checks/fuchsia/overloaded-operator.rst
2025-02-14 19:21:04 +01:00

18 lines
473 B
ReStructuredText

.. 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.dev/fuchsia-src/development/languages/c-cpp/cxx?hl=en