aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppeditorplugin.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-06-05 16:23:23 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-06-05 14:51:18 +0000
commitd811e7773f7d7431fe58fd997da1a3a15ba53f85 (patch)
tree3c609a76b6c8310b73945ba8b4c5bb2a782d22b7 /src/plugins/cppeditor/cppeditorplugin.h
parent54f53898bf1e9f22ad8eccd04674aa80099a71c6 (diff)
CppEditor: Do not treat friend declaration as member function
... when trying to create definitions from declarations. Instead, we completely ignore friends in this context, arguing that the respective function normally should have a proper declaration somewhere else. Fixes: QTCREATORBUG-7164 Change-Id: I3ddb89cefecbc494f9c7e63600b65fd6288b7169 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorplugin.h')
-rw-r--r--src/plugins/cppeditor/cppeditorplugin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppeditorplugin.h b/src/plugins/cppeditor/cppeditorplugin.h
index dfb167dd60..f3e98c0491 100644
--- a/src/plugins/cppeditor/cppeditorplugin.h
+++ b/src/plugins/cppeditor/cppeditorplugin.h
@@ -135,6 +135,7 @@ private slots:
void test_quickfix_InsertDefFromDecl_unicodeIdentifier();
void test_quickfix_InsertDefFromDecl_templateClass();
void test_quickfix_InsertDefFromDecl_templateFunction();
+ void test_quickfix_InsertDefFromDecl_notTriggeredForFriendFunc();
void test_quickfix_InsertDeclFromDef();
void test_quickfix_InsertDeclFromDef_templateFuncTypename();