Commit 1fd3c64
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 bf6e2aa commit 1fd3c64
5 files changed
Lines changed: 34 additions & 6 deletions
File tree
- 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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
404 | 423 | | |
405 | 424 | | |
406 | 425 | | |
407 | 426 | | |
408 | 427 | | |
409 | 428 | | |
| 429 | + | |
410 | 430 | | |
411 | 431 | | |
412 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
413 | 438 | | |
414 | 439 | | |
415 | 440 | | |
| |||
424 | 449 | | |
425 | 450 | | |
426 | 451 | | |
| 452 | + | |
| 453 | + | |
427 | 454 | | |
428 | 455 | | |
429 | 456 | | |
430 | 457 | | |
431 | 458 | | |
| 459 | + | |
| 460 | + | |
432 | 461 | | |
433 | 462 | | |
434 | 463 | | |
| |||
437 | 466 | | |
438 | 467 | | |
439 | 468 | | |
| 469 | + | |
| 470 | + | |
440 | 471 | | |
441 | 472 | | |
442 | 473 | | |
| |||
447 | 478 | | |
448 | 479 | | |
449 | 480 | | |
| 481 | + | |
| 482 | + | |
450 | 483 | | |
451 | 484 | | |
452 | 485 | | |
| |||
519 | 552 | | |
520 | 553 | | |
521 | 554 | | |
| 555 | + | |
522 | 556 | | |
523 | 557 | | |
524 | 558 | | |
| |||
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