================
@@ -1503,8 +1506,27 @@ void ResultBuilder::AddResult(Result R, DeclContext
*CurContext,
}
OverloadSet.Add(Method, Results.size());
}
-
- R.FunctionCanBeCall = canFunctionBeCalled(R.getDeclaration(), BaseExprType);
+ R.DeclaringEntity = IsInDeclarationContext;
+ R.IsAddressOfOperand = IsAddressOfOperand;
+ R.FunctionCanBeCall = canFunctionBeCalled(R.getDeclaration(), BaseExprType)
||
+ IsInDeclarationContext;
+
+ // We need to force IsAddressOfOperand when completing a ScopeSpecifier
+ // for non static member function that could be a call.
+ if (!IsInDeclarationContext && !IsAddressOfOperand) { // it may be a call
----------------
HighCommander4 wrote:
I'm finding that with my changes in
https://github.com/HighCommander4/llvm-project/commit/27df471cb6e0ad83b3d9a9a4a38998686ffb7c70,
this code block is not necessary to pass any tests. I think it can just be
removed.
https://github.com/llvm/llvm-project/pull/165916
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits