================
@@ -165,6 +165,15 @@ struct Reference {
SmallString<16> DocumentationFileName;
};
+// A Context is a reference that holds a relative path from a certain Info's
+// location.
+struct Context : public Reference {
+ Context(SymbolID USR, StringRef Name, InfoType IT, StringRef QualName,
+ StringRef Path, SmallString<16> DocumentationFileName)
----------------
ilovepi wrote:
>From the usage I see, this could just take an `Info&`, and initialize the base
>class via that, right? Seems more straightforward. Makes me also wonder if
>`Reference(Info&)` should also exist as a convenience API.
https://github.com/llvm/llvm-project/pull/173297
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits