C++ 17 style nested namespaces (#1326)

Summary:
X-link: https://github.com/facebook/react-native/pull/38304

Pull Request resolved: https://github.com/facebook/yoga/pull/1326

For better readability

Reviewed By: christophpurrer

Differential Revision: D47384926

fbshipit-source-id: 2f60d50a185331b3624d45d1fc45f98d504b3034
This commit is contained in:
Nick Gerleman
2023-07-12 09:38:40 -07:00
committed by Facebook GitHub Bot
parent 423dc155d8
commit 660edcec20
25 changed files with 61 additions and 145 deletions

View File

@@ -10,9 +10,7 @@
#include <yoga/YGNode.h>
#include <yoga/event/event.h>
namespace facebook {
namespace yoga {
namespace test {
namespace facebook::yoga::test {
int nodeInstanceCount = 0;
@@ -61,6 +59,4 @@ ScopedEventSubscription::~ScopedEventSubscription() {
Event::reset();
}
} // namespace test
} // namespace yoga
} // namespace facebook
} // namespace facebook::yoga::test

View File

@@ -11,9 +11,7 @@
#include <functional>
namespace facebook {
namespace yoga {
namespace test {
namespace facebook::yoga::test {
struct YOGA_EXPORT TestUtil {
static void startCountingNodes();
@@ -26,6 +24,4 @@ struct ScopedEventSubscription {
~ScopedEventSubscription();
};
} // namespace test
} // namespace yoga
} // namespace facebook
} // namespace facebook::yoga::test