From 8ed2cee80e0aaac2f2a6a897ba450888f274a5a4 Mon Sep 17 00:00:00 2001 From: Alexey Medvedev Date: Thu, 24 Jul 2025 16:51:13 -0700 Subject: [PATCH] Make yoga/Yoga.h an umbrell header (#52817) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52817 X-link: https://github.com/facebook/yoga/pull/1828 X-link: https://github.com/facebook/litho/pull/1070 This diff makes the Yoga/Yoga.h header an umbrella header, which means that it includes all of Yoga's public headers. The code changes in each file include adding the IWYU pragma export to each header file, which is a way to tell the compiler to export the header file's symbols to other files that include it. This is necessary for the header file to be used as an umbrella header. Changelog: [General][Added] - Code quality fixes Reviewed By: corporateshark Differential Revision: D78692457 fbshipit-source-id: 7fcd53d2a6f268fa4377dbd5bd6ba6eebc94b5f8 --- .../react-native/ReactCommon/yoga/yoga/Yoga.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/react-native/ReactCommon/yoga/yoga/Yoga.h b/packages/react-native/ReactCommon/yoga/yoga/Yoga.h index 2a4f20591ed..97f05ed3ead 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/Yoga.h +++ b/packages/react-native/ReactCommon/yoga/yoga/Yoga.h @@ -11,11 +11,11 @@ * `#include ` includes all of Yoga's public headers. */ -#include -#include -#include -#include -#include -#include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export