================
@@ -40,6 +44,8 @@ class EntityId {
bool operator==(const EntityId &Other) const { return Index == Other.Index; }
bool operator<(const EntityId &Other) const { return Index < Other.Index; }
bool operator!=(const EntityId &Other) const { return !(*this == Other); }
+
+ friend llvm::raw_ostream &operator<<(llvm::raw_ostream &, const EntityId &);
----------------
jkorous-apple wrote:
The commit message says it's for debugging. What scenario do we have in mind?
FWIW classes used in AST implement `dump` method.
https://github.com/llvm/llvm-project/pull/180779
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits