[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
================
@@ -3410,9 +3418,36 @@ static void AddQualifierToCompletionString(CodeCompletionBuilder &Result,
Result.AddTextChunk(Result.getAllocator().CopyString(PrintedNNS));
}
+// Sets the function qualifiers completion string by inspecting the explicit
+// object
+static void AddCXXExplicitObjectFunctionTypeQualsToCompletionString(
----------------
HighCommander4 wrote:
This is a nice touch!
One minor comment: could we refactor this to reuse code between this function, and the rest of `AddFunctionTypeQualsToCompletionString`? (That way, the "Handle single qualifiers without copying" optimization would apply here as well.)
https://github.com/llvm/llvm-project/pull/154041
More information about the cfe-commits
mailing list