Use the derived class name in inherited constructors in the API snapshot (#56031)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56031

Changelog: [Internal]

Doxygen uses base class name for inherited constructors. This diff adds a guard to replace them with the derived class name in the final API snapshot.

Reviewed By: cipolleschi

Differential Revision: D95939080

fbshipit-source-id: 918135b8c5c603423e3a13537d9723e54ed4f035
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2026-03-10 06:53:06 -07:00
1 parent 2be2770fc8
commit 7d80d6e5a1
5 files changed
+97 -2

No files matched your search

@@ -0,0 +1,11 @@
class test::Base {
public Base() = default;
public Base(const test::Base& other);
public Base(int test);
}
class test::Derived : public test::Base {
public Derived() = default;
public Derived(const test::Base& other);
public Derived(int test);
}
@@ -0,0 +1,24 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
namespace test {
class Base {
public:
Base() = default;
Base(int test);
Base(const Base &other);
};
class Derived : public Base {
public:
using Base::Base;
};
} // namespace test
@@ -0,0 +1,6 @@
class test::Clss {
public operator Other() const;
}
class test::Other {
}
@@ -0,0 +1,19 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
namespace test {
class Other {};
class Clss {
public:
operator Other() const;
};
} // namespace test