================
@@ -565,9 +565,13 @@ static void serializeInfo(const EnumInfo &I, json::Object
&Obj,
if (I.BaseType) {
json::Value BaseTypeVal = Object();
auto &BaseTypeObj = *BaseTypeVal.getAsObject();
- BaseTypeObj["Name"] = I.BaseType->Type.Name;
- BaseTypeObj["QualName"] = I.BaseType->Type.QualName;
- BaseTypeObj["USR"] = toHex(toStringRef(I.BaseType->Type.USR));
+ // Create a nested 'Type' object so the template can find {{Type.Name}}
+ json::Value TypeVal = Object();
+ auto &TypeObj = *TypeVal.getAsObject();
+ TypeObj["Name"] = I.BaseType->Type.Name;
+ TypeObj["QualName"] = I.BaseType->Type.QualName;
+ TypeObj["USR"] = toHex(toStringRef(I.BaseType->Type.USR));
+ BaseTypeObj["Type"] = TypeVal;
----------------
SamrudhNelli wrote:
Removed `Type` and all its corresponding keys. Added a `Name` key to `BaseType`
to store the variable type.
https://github.com/llvm/llvm-project/pull/181347
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits