Skip to content

Commit e27cd7c

Browse files
coadofacebook-github-bot
authored andcommitted
Remove __deprecated_msg from the snapshot (#55780)
Summary: Set predefined `__deprecated_msg` to empty string in the `.doxygen.config.template` as doxygen has problem with parsing and produces malformed xml. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D94517576
1 parent e1230a8 commit e27cd7c

File tree

5 files changed

+53
-3
lines changed

5 files changed

+53
-3
lines changed

packages/react-native/.doxygen.config.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,7 @@ INCLUDE_FILE_PATTERNS =
24432443
# recursively expanded use the := operator instead of the = operator.
24442444
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
24452445

2446-
PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" ${PREDEFINED}
2446+
PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" __deprecated_msg(x)="" ${PREDEFINED}
24472447

24482448
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
24492449
# tag can be used to specify a list of macro names that should be expanded. The

scripts/cxx-api/manual_test/.doxygen.config.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ INCLUDE_FILE_PATTERNS =
24422442
# recursively expanded use the := operator instead of the = operator.
24432443
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
24442444

2445-
PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" ${PREDEFINED}
2445+
PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" __deprecated_msg(x)="" ${PREDEFINED}
24462446

24472447
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
24482448
# tag can be used to specify a list of macro names that should be expanded. The

scripts/cxx-api/tests/snapshots/.doxygen.config.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ INCLUDE_FILE_PATTERNS =
24422442
# recursively expanded use the := operator instead of the = operator.
24432443
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
24442444

2445-
PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)=""
2445+
PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)="" __deprecated_msg(x)=""
24462446

24472447
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
24482448
# tag can be used to specify a list of macro names that should be expanded. The
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
interface RCTDeprecatedInterface {
2+
public virtual void customBubblingEventTypes();
3+
public virtual void legacyTitle();
4+
public virtual void normalMethod();
5+
public virtual void oldMethod();
6+
}
7+
8+
interface RCTTestInterface {
9+
public virtual NSArray * deprecatedMethod:(id param);
10+
public virtual void normalMethod:(NSString * name);
11+
}
12+
13+
protocol RCTDeprecatedProtocol {
14+
public virtual void deprecatedProtocolMethod();
15+
public virtual void normalProtocolMethod();
16+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
@interface RCTTestInterface
9+
10+
- (void)normalMethod:(NSString *)name;
11+
12+
- (NSArray *)deprecatedMethod:(id)param __deprecated_msg("Use newMethod instead.");
13+
14+
@end
15+
16+
@interface RCTDeprecatedInterface
17+
18+
- (void)normalMethod;
19+
20+
- (void)oldMethod __deprecated_msg("Use newMethod instead.");
21+
22+
- (void)customBubblingEventTypes __deprecated_msg("Use RCTBubblingEventBlock props instead.");
23+
24+
- (void)legacyTitle __deprecated_msg("This API will be removed along with the legacy architecture.");
25+
26+
@end
27+
28+
@protocol RCTDeprecatedProtocol
29+
30+
- (void)normalProtocolMethod;
31+
32+
- (void)deprecatedProtocolMethod __deprecated_msg("Protocol method is deprecated.");
33+
34+
@end

0 commit comments

Comments
 (0)