================
@@ -1008,47 +1010,163 @@ struct Context {
 
 using IdentifierID = llvm::PointerEmbeddedInt<unsigned, 31>;
 
+/// Describes optional constraints on a C++ method's implicit object parameter.
+struct FunctionObjectSelector {
+  std::optional<bool> Const;
+  std::optional<bool> Volatile;
+  std::optional<RefQualifierKind> Ref;
+
+  std::string format() const;
+};
+
+inline bool operator==(const FunctionObjectSelector &LHS,
----------------
Xazax-hun wrote:

Nit: I think `FunctionObjectSelector` might be small enough that we can take it 
by value.  Same for `!=` below. 

https://github.com/llvm/llvm-project/pull/216148
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to