Apply doxygen input filters only when needed (#56177)

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

Changelog: [Internal]

Makes doxygen input filers opt-in via the config file. Those are only needed for objective c files, so there's no need to run them for ReactCommon or ReactAndroid.

Reviewed By: cortinico

Differential Revision: D97489420

fbshipit-source-id: 0503801de60d6c2ae58506f20fcc06feec0501ec
This commit is contained in:
Jakub Piasecki authored and meta-codesync[bot] committed 2026-03-22 23:56:16 -07:00
1 parent bf7cb8964f
commit 5976cff039
3 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ def build_snapshots(
output_dir=output_dir,
codegen_platform=config.codegen_platform,
verbose=verbose,
input_filter=input_filter,
input_filter=input_filter if config.input_filter else None,
)
else:
snapshot = build_snapshot_for_view(
+4
View File
@@ -37,6 +37,7 @@ class ApiViewSnapshotConfig:
exclude_patterns: list[str]
definitions: dict[str, str | int]
codegen_platform: str | None = None
input_filter: bool = False
def parse_config(
@@ -65,6 +66,7 @@ def parse_config(
codegen_config = view_config.get("codegen") or {}
codegen_platform = codegen_config.get("platform")
exclude_patterns = view_config.get("exclude_patterns") or []
input_filter = view_config.get("input_filter", False)
base_definitions = view_config.get("definitions") or {}
raw_variants = view_config.get("variants") or {}
@@ -84,6 +86,7 @@ def parse_config(
exclude_patterns=exclude_patterns,
definitions=base_definitions,
codegen_platform=codegen_platform,
input_filter=input_filter,
)
)
else:
@@ -97,6 +100,7 @@ def parse_config(
exclude_patterns=exclude_patterns,
definitions=merged_definitions,
codegen_platform=codegen_platform,
input_filter=input_filter,
)
)