/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
scripts/cxx-api/tests/snapshots/should_deduplicate_base_classes/test.h
32 строки
859 B
Dawid Małecki
Fix Doxygen merging base classes from primary templates into specializations (#56239)
31 мар 2026, 18:32
31 мар 2026, 18:32
d920d10
Код
Авторство
О чём код?
/* * 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 { struct false_type {}; struct true_type {}; // Primary template inherits from false_type. // Partial specialization inherits from true_type. // Doxygen may incorrectly merge both base class lists into the // specialization, producing : false_type, true_type. The parser // should subtract the primary template's bases and keep only true_type. template <typename> struct is_special : public false_type {}; template <typename T> struct is_special<T *> : public true_type {}; // Duplicate base class via Doxygen merging template-substituted bases. struct BaseA {}; struct Derived : public BaseA, public BaseA {}; } // namespace test