Commit 725b056
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: D95191148
fbshipit-source-id: 69d2f35d5aabd8e7567d254dc9b4686b4da2eb891 parent 97430c8 commit 725b056
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 | |
|---|---|---|---|
| |||
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