mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56032 Changelog: [Internal] When generating xml output, doxygen replaces template arguments in specialized base classes with the default values: ``` template <typename T = int> class Test : public Base<T> {}; ``` becomes ``` template <typename T = int> class Test : public Base<int> {}; ``` To work around this issue, this diff adds reverse mapping for template params in the base classes. In the above case, the map would be: `{ "int" -> "T" }`, and `int` in `Base<int>` would be replaced with T. This approach assumes that none of the default values are used directly in the base class specialization, which holds for the React Native codebase. Reviewed By: cortinico Differential Revision: D95933835 fbshipit-source-id: c1dd79a09f0f368fb106330409e15d54ebad2b4f