At the top of kio/autotests/clipboardupdatertest.cpp (probably doesn't matter), type class FooPrivate { void foo(); }; then request completion, it will offer * implement std::set<QByteArray> * qgpu_features(const QString&) (WTF?) * implement void FooPrivate::foo() [as expected] Reproducible: Always Expected Results: it shouldn't offer me to implement random stuff from Qt.
Still the case, interesting.
Coming from QTEST_MAIN macro, fwiw: #define QTEST_MAIN(TestObject) \ QT_BEGIN_NAMESPACE \ QTEST_ADD_GPU_BLACKLIST_SUPPORT_DEFS \ ... #ifndef QT_NO_OPENGL # define QTEST_ADD_GPU_BLACKLIST_SUPPORT_DEFS \ extern Q_TESTLIB_EXPORT std::set<QByteArray> *(*qgpu_features_ptr)(const QString &); \ extern Q_GUI_EXPORT std::set<QByteArray> *qgpu_features(const QString &); ...
Reducing priority a bit. Difficult to handle: the declaration (but not definition) of that function indeed happens inside the .cpp, so the suggestion is not necessarily wrong.