================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits