[clang] [clang-tools-extra] [clang] Include explicit object methods in overload suggestions (PR #154041)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 19 22:52:44 PDT 2025


================
@@ -1428,10 +1428,18 @@ void ResultBuilder::AddResult(Result R, DeclContext *CurContext,
 
   AdjustResultPriorityForDecl(R);
 
+  // Account for explicit object parameter
+  const auto getQualifiers = [&](const CXXMethodDecl *MethodDecl) {
----------------
HighCommander4 wrote:

nit: as a local variable, the lambda name should be UpperCamelCase (I know this is counterintuitive)

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


More information about the cfe-commits mailing list