Skip to content

Commit 8ed2cee

Browse files
rudybearfacebook-github-bot
authored andcommitted
Make yoga/Yoga.h an umbrell header (facebook#52817)
Summary: Pull Request resolved: facebook#52817 X-link: facebook/yoga#1828 X-link: facebook/litho#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
1 parent 546e276 commit 8ed2cee

File tree

1 file changed

+8
-8
lines changed
  • packages/react-native/ReactCommon/yoga/yoga

1 file changed

+8
-8
lines changed

packages/react-native/ReactCommon/yoga/yoga/Yoga.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* `#include <yoga/Yoga.h>` includes all of Yoga's public headers.
1212
*/
1313

14-
#include <yoga/YGConfig.h>
15-
#include <yoga/YGEnums.h>
16-
#include <yoga/YGMacros.h>
17-
#include <yoga/YGNode.h>
18-
#include <yoga/YGNodeLayout.h>
19-
#include <yoga/YGNodeStyle.h>
20-
#include <yoga/YGPixelGrid.h>
21-
#include <yoga/YGValue.h>
14+
#include <yoga/YGConfig.h> // IWYU pragma: export
15+
#include <yoga/YGEnums.h> // IWYU pragma: export
16+
#include <yoga/YGMacros.h> // IWYU pragma: export
17+
#include <yoga/YGNode.h> // IWYU pragma: export
18+
#include <yoga/YGNodeLayout.h> // IWYU pragma: export
19+
#include <yoga/YGNodeStyle.h> // IWYU pragma: export
20+
#include <yoga/YGPixelGrid.h> // IWYU pragma: export
21+
#include <yoga/YGValue.h> // IWYU pragma: export

0 commit comments

Comments
 (0)