Skip to content

Commit ef54b84

Browse files
coadometa-codesync[bot]
authored andcommitted
Add template normalizing (#55774)
Summary: Pull Request resolved: #55774 Doxygen adds spaces inside angle brackets in its XML output: - Outputs: `std::vector< PropNameID >` - Expected: `std::vector<PropNameID>` Applying `normalize_angle_brackets()` in `resolve_ref_text_name()` to normalize spacing consistently. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D94232505
1 parent 4a3080b commit ef54b84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/cxx-api/parser/utils/text_resolution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ def resolve_ref_text_name(type_def: compound.refTextType) -> str:
104104
name += part.value.valueOf_
105105
else:
106106
name += str(part.value)
107-
return name
107+
return normalize_angle_brackets(name)
108108

109109
if type_def.ref:
110-
return type_def.ref[0].get_valueOf_()
110+
return normalize_angle_brackets(type_def.ref[0].get_valueOf_())
111111

112-
return type_def.get_valueOf_()
112+
return normalize_angle_brackets(type_def.get_valueOf_())
113113

114114

115115
class InitializerType(Enum):

0 commit comments

Comments
 (0)