[clang-tools-extra] [clang-doc] Add a breadcrumb navigation bar (PR #173297)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 5 13:05:02 PST 2026


================
@@ -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


More information about the cfe-commits mailing list