summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraidanfnv <aidanf@nvidia.com>2025-08-07 02:25:42 -0700
committerGitHub <noreply@github.com>2025-08-07 09:25:42 +0000
commit67a96920674d628f615532a302504544a45e8187 (patch)
tree71f62db43dc3ea86b5547490440577dd59f1982b /tests
parent9ed7b5264676547855e1378d2b9c9d51c8ba7162 (diff)
Add new _getName to get extension decl names for core module docs (#7985)
Fixes #7479 This adds a new variant of `_getName(ExtensionDecl* decl)` to our markdown doc writer that takes an ExtensionDecl* and returns the name in the format `extension <name> : <interface>`. This is required to display "extension T : ITexelElement" properly in the core module docs, as the existing `_getName(Decl* decl)` returns an empty string because the name does not come from the `decl` itself, but rather its `targetType`. The target type alone is not enough, as that would return `T`, which will be erroneously interpreted as the name for the generic parameter, and the doc system will link every mention of `T` to the extension's page. ReadTheDocs already displays the name correctly in the TOC of the docs there, but that is because it falls back to the page title when the name in the TOC is empty. --------- Co-authored-by: slangbot <ellieh+slangbot@nvidia.com> Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions