Skip to content

Commit 1c5ec5e

Browse files
Dawid Małeckimeta-codesync[bot]
authored andcommitted
Add template normalizing
Summary: Doxygen adds spaces inside angle brackets in its XML output: - Outputs: `std::vector< PropNameID >` - Expected: `std::vector<PropNameID>` The solution is to apply `normalize_angle_brackets()` in `resolve_ref_text_name()` to normalize spacing consistently. Differential Revision: D94232505
1 parent c90843d commit 1c5ec5e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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)