Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d1e8328

Browse files
NickGerlemanfacebook-github-bot
authored andcommittedApr 15, 2024
Add QualifierAlignment to Clang Format Config (facebook#44098)
Summary: Pull Request resolved: facebook#44098 This sets `QualiferAlignment` so that code is automatically formatted to west const. I did a pass at this before, but now that we are on new Clang Format, we can enforce it automatically, and I think a couple more cases not previously changed now are. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D56143678 fbshipit-source-id: 8f12b288476ea6019fd7d7a93a39b4fe2e75af14
1 parent d53a2bd commit d1e8328

File tree

55 files changed

+100
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+100
-99
lines changed
 

‎.clang-format

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ SpacesInSquareBrackets: false
8484
Standard: Cpp11
8585
TabWidth: 8
8686
UseTab: Never
87+
QualifierAlignment: Left
8788
---
8889
Language: ObjC
8990
ColumnLimit: 120

‎packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ - (instancetype)initWithConfiguration:(RCTRootViewFactoryConfiguration *)configu
105105
{
106106
if (self = [super init]) {
107107
_configuration = configuration;
108-
_contextContainer = std::make_shared<facebook::react::ContextContainer const>();
109-
_reactNativeConfig = std::make_shared<facebook::react::EmptyReactNativeConfig const>();
108+
_contextContainer = std::make_shared<const facebook::react::ContextContainer>();
109+
_reactNativeConfig = std::make_shared<const facebook::react::EmptyReactNativeConfig>();
110110
_contextContainer->insert("ReactNativeConfig", _reactNativeConfig);
111111
_turboModuleManagerDelegate = turboModuleManagerDelegate;
112112
}

0 commit comments

Comments
 (0)
Please sign in to comment.