================
@@ -458,6 +460,45 @@ void JSONGenerator::serializeCommonAttributes(const Info
&I,
generateContext(I, Obj);
}
+static auto SerializeTemplateParam = [](const TemplateParamInfo &Param,
+ Object &JsonObj) {
+ JsonObj["Param"] = Param.Contents;
+};
+
+static void serializeTemplateSpecialization(TemplateInfo Template,
+ Object &TemplateObj) {
+ json::Value TemplateSpecializationVal = Object();
+ auto &TemplateSpecializationObj = *TemplateSpecializationVal.getAsObject();
+ TemplateSpecializationObj["SpecializationOf"] =
+ toHex(toStringRef(Template.Specialization->SpecializationOf));
----------------
ilovepi wrote:
We should make an API that does this conversion for SymbolID. @Neil-N4, this
could be a very simple cleanup task to help get aquatinted with clang-doc. If
you do, file an issue on github describing the problem, set the clang-doc tag,
mark it as a feature-request, and assign yourself. The API should go wherever
SymbolID is defined. Arguably it should perhaps become its own type if we're
making an API for this, but that's slightly complicated as I think we use the
array for some kind of compatibility reasons with clang, but its possible that
I'm wrong about that or that its no longer true.
https://github.com/llvm/llvm-project/pull/191252
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits