Consider the following example: class Klass { public: template <typename T> void func(int a, T x, int b) const; }; When I press Ctrl+Space, I'm offered to implement "func()" without parameters, see screenshot. When I press Enter, the following code is inserted: void Klass::func() const { } Reproducible: Always
Created attachment 101010 [details] screenshot
Git commit 782645190f44ca1dd147e45d18fc354ef6282186 by Milian Wolff, on behalf of Shashwat Dixit. Committed on 15/03/2018 at 10:43. Pushed by mwolff into branch 'master'. Fix Template (Class/Function) Signatures in Clang Code Completion Summary: - Create correct template prefix for Class/Function Templates - Handle Template Template Parameter - Do not drop function parameters for FunctionTemplates Related: bug 377397 Reviewers: #kdevelop, aspotashev, mwolff Subscribers: #kdevelop, kdevelop-devel Tags: #kdevelop Differential Revision: https://phabricator.kde.org/D10277 M +30 -5 plugins/clang/codecompletion/completionhelper.cpp M +28 -0 plugins/clang/tests/test_codecompletion.cpp M +26 -2 plugins/clang/util/clangutils.cpp https://commits.kde.org/kdevelop/782645190f44ca1dd147e45d18fc354ef6282186