[clang-tools-extra] [clang-tidy] Moved Multiple Inheritence check from fuchsia to misc module (PR #171565)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 11 06:05:08 PST 2025
================
@@ -3,44 +3,7 @@
fuchsia-multiple-inheritance
============================
-Warns if a class inherits from multiple classes that are not pure virtual.
+The `fuchsia-multiple-inheritance` check is an alias, please See
+:doc:`misc-multiple-inheritance <../misc/multiple-inheritance>` for details.
-For example, declaring a class that inherits from multiple concrete classes is
-disallowed:
-
-.. code-block:: c++
-
- class Base_A {
- public:
- virtual int foo() { return 0; }
- };
-
- class Base_B {
- public:
- virtual int bar() { return 0; }
- };
-
- // Warning
- class Bad_Child1 : public Base_A, Base_B {};
-
-A class that inherits from a pure virtual is allowed:
-
-.. code-block:: c++
-
- class Interface_A {
- public:
- virtual int foo() = 0;
- };
-
- class Interface_B {
- public:
- virtual int bar() = 0;
- };
-
- // No warning
- class Good_Child1 : public Interface_A, Interface_B {
- virtual int foo() override { return 0; }
- virtual int bar() override { return 0; }
- };
-
-See the features disallowed in Fuchsia at https://fuchsia.dev/fuchsia-src/development/languages/c-cpp/cxx?hl=en
+See the features disallowed in Fuchsia at https://fuchsia.dev/fuchsia-src/development/languages/c-cpp/cxx?hl=en
----------------
EugeneZelenko wrote:
```suggestion
```
This documentation is just redirect.
https://github.com/llvm/llvm-project/pull/171565
More information about the cfe-commits
mailing list