matthias-springer wrote: We discussed offline: let's break this up into to PRs. One that adds the `RemarkID` and an API for associating a remark with another remark. And a second one that adds the querying mechanism. https://github.com/llvm/llvm-project/pull/180953