================
@@ -104,6 +104,9 @@ struct Reference {
 
   bool mergeable(const Reference &Other);
   void merge(Reference &&I);
+  bool operator<(const Reference &Other) const {
----------------
ilovepi wrote:

My concern here is that we probably want clang-doc to output to be ordered 
consistently. While sorting by USRs may make it deterministic, it’s also likely 
that they won’t be ordered similarly run to run. For instance, I’d expect 
public class fields to be sorted by name. 

https://github.com/llvm/llvm-project/pull/101387
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to