[clang] [clang-tools-extra] [clang] Skip suggesting unqualified members in explicit-object member functions (PR #153760)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 16 15:50:06 PDT 2025
================
@@ -1428,6 +1428,16 @@ void ResultBuilder::AddResult(Result R, DeclContext *CurContext,
AdjustResultPriorityForDecl(R);
+ if (isa<FieldDecl>(R.Declaration)) {
----------------
HighCommander4 wrote:
The check should apply to methods as well as fields:
```c++
struct A {
int method();
void foo(this A &self) {
// Should not offer `method`
me^
}
};
```
https://github.com/llvm/llvm-project/pull/153760
More information about the cfe-commits
mailing list