Add test for parsing interfaces with deprecated attributes (#55771)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55771

Adding tests for parsing interfaces with deprecated attributes and extending the doxygen test config with `__attribute__` predefined macro.

## Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D94343118

fbshipit-source-id: 2fb2f8307f324533033ea1df2f266a785dc81de7
This commit is contained in:
Dawid Małecki authored and meta-codesync[bot] committed 2026-03-04 03:24:39 -08:00
1 parent c90843d8f8
commit 4a3080bea3
3 files changed
+19 -1

No files matched your search

@@ -2442,7 +2442,7 @@ INCLUDE_FILE_PATTERNS =
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
PREDEFINED =
PREDEFINED = FOLLY_PACK_PUSH="" FOLLY_PACK_POP="" FOLLY_PACK_ATTR="" __attribute__(x)=""
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
@@ -0,0 +1,4 @@
interface RCTTestInterface {
public virtual NSArray * interfaceDeprecatedMethod:(id param);
public virtual void normalMethod:(NSString * name);
}
@@ -0,0 +1,14 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
@interface RCTTestInterface
- (void)normalMethod:(NSString *)name;
- (NSArray *)interfaceDeprecatedMethod:(id)param __attribute__((deprecated("This method is deprecated.")));
@end