[clang] [Clang] Static and explicit object member functions with the same parameter-type-lists (PR #93430)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 4 06:22:49 PDT 2024


================
@@ -3048,10 +3050,12 @@ class OverloadExpr : public Expr {
 
       Result.HasFormOfMemberPointer = (E == Ovl && Ovl->getQualifier());
       Result.IsAddressOfOperand = true;
+      Result.IsAddressOfOperandWithParen = HasParen;
----------------
erichkeane wrote:

Cleanup nit: I would vastly prefer FindResult have a constructor & deleted default constructor.  This seems like it would be really easy to forget to initialize on some branch.

https://github.com/llvm/llvm-project/pull/93430


More information about the cfe-commits mailing list