Commit 0cb9ffb
Filter category members from interface scope (#55899)
Summary:
Pull Request resolved: #55899
Doxygen incorrectly merges category members into the base interface XML output.
This causes duplicate members to appear in both the category scope and the interface scope.
The fix detects category members by checking if their definition contains the pattern
`ClassName(CategoryName)::` (e.g., `RCTBridgeProxy(Cxx)::cxxOnlyProperty`) and filters
them out when processing interface sections.
Changelog:
[Internal]
Reviewed By: cortinico
Differential Revision: D951911481 parent b2ce353 commit 0cb9ffb
File tree
5 files changed
+34
-6
lines changed- scripts/cxx-api
- parser
- tests/snapshots
- should_handle_category_with_method
- should_handle_category_with_multiple_methods
- should_handle_ifdef_cplusplus
- should_handle_multiple_categories
5 files changed
+34
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
392 | 411 | | |
393 | 412 | | |
394 | 413 | | |
395 | 414 | | |
396 | 415 | | |
397 | 416 | | |
| 417 | + | |
398 | 418 | | |
399 | 419 | | |
400 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
401 | 426 | | |
402 | 427 | | |
403 | 428 | | |
| |||
412 | 437 | | |
413 | 438 | | |
414 | 439 | | |
| 440 | + | |
| 441 | + | |
415 | 442 | | |
416 | 443 | | |
417 | 444 | | |
418 | 445 | | |
419 | 446 | | |
| 447 | + | |
| 448 | + | |
420 | 449 | | |
421 | 450 | | |
422 | 451 | | |
| |||
425 | 454 | | |
426 | 455 | | |
427 | 456 | | |
| 457 | + | |
| 458 | + | |
428 | 459 | | |
429 | 460 | | |
430 | 461 | | |
| |||
435 | 466 | | |
436 | 467 | | |
437 | 468 | | |
| 469 | + | |
| 470 | + | |
438 | 471 | | |
439 | 472 | | |
440 | 473 | | |
| |||
504 | 537 | | |
505 | 538 | | |
506 | 539 | | |
| 540 | + | |
507 | 541 | | |
508 | 542 | | |
509 | 543 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
0 commit comments