diff --git a/src/plugins/clangcodemodel/clangdclient.cpp b/src/plugins/clangcodemodel/clangdclient.cpp index 2eea1c1f46d..8db7c7a341d 100644 --- a/src/plugins/clangcodemodel/clangdclient.cpp +++ b/src/plugins/clangcodemodel/clangdclient.cpp @@ -138,7 +138,8 @@ public: bool isMemberFunctionCall() const { - return role() == "expression" && kind() == "Member" && arcanaContains("member function"); + return role() == "expression" && (kind() == "CXXMemberCall" + || (kind() == "Member" && arcanaContains("member function"))); } bool isPureVirtualDeclaration() const diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp index fbd23e1bd0b..7b7803d98f8 100644 --- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp +++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp @@ -446,12 +446,6 @@ F2TestCase::F2TestCase(CppEditorAction action, }); t.start(10000); l.exec(); - QEXPECT_FAIL("possibleOverrides2", - "FIXME: clangd behaves differently with cursor at end of function name", - Abort); - QEXPECT_FAIL("QTCREATORBUG-10294_cursorIsAtTheEndOfVirtualFunctionName", - "FIXME: clangd behaves differently with cursor at end of function name", - Abort); QEXPECT_FAIL("noSiblings_references", "FIXME: check why this fails", Abort); QEXPECT_FAIL("noSiblings_pointers", "FIXME: check why this fails", Abort); QEXPECT_FAIL("noSiblings_noBaseExpression", "FIXME: check why this fails", Abort);