In 5.x version, generating method declaration using ctrl+space ALWAYS adds 'override' at the end. I don't use c++11 mode, so this does not compile. In the projects settings, in "language support" I have C++03 selected. This is NOT C++03! Also, when generating declarations/definitions like that, new kdevelop ALWAYS adds full namespaces - including inside the class declaration, or in the implementation file even when "using namespace" is used. Both of these are incredibly annoying!
Yes, this needs to be made configurable.
> Also, when generating declarations/definitions like that, new kdevelop ALWAYS adds full namespaces Note: Reported on: https://bugs.kde.org/show_bug.cgi?id=373722
Git commit 0636cfdd8a93617cbcf2efe2c9d74eab21a0b97b by Amish Naidu. Committed on 03/12/2018 at 10:50. Pushed by anaidu into branch 'master'. Don't add 'override' specifier for non-modern project settings Summary: Override code completion will only add the override specifier if the parser settings don't have either -std=c++03 or 98. Supersedes: D4039 Test Plan: Run `test_codecompletion testOverrideExecute` Reviewers: kfunk Reviewed By: kfunk Subscribers: kfunk, kdevelop-devel Tags: #kdevelop Differential Revision: https://phabricator.kde.org/D16773 M +27 -1 plugins/clang/codecompletion/context.cpp M +65 -0 plugins/clang/tests/test_codecompletion.cpp M +2 -0 plugins/clang/tests/test_codecompletion.h https://commits.kde.org/kdevelop/0636cfdd8a93617cbcf2efe2c9d74eab21a0b97b
Git commit 27cca2f34f407d02212b15deb69d4506ce30d8f0 by Kevin Funk, on behalf of Amish Naidu. Committed on 03/12/2018 at 10:57. Pushed by kfunk into branch '5.3'. Don't add 'override' specifier for non-modern project settings Summary: Override code completion will only add the override specifier if the parser settings don't have either -std=c++03 or 98. Supersedes: D4039 Test Plan: Run `test_codecompletion testOverrideExecute` Reviewers: kfunk Reviewed By: kfunk Subscribers: kfunk, kdevelop-devel Tags: #kdevelop Differential Revision: https://phabricator.kde.org/D16773 (cherry picked from commit 0636cfdd8a93617cbcf2efe2c9d74eab21a0b97b) M +27 -1 plugins/clang/codecompletion/context.cpp M +65 -0 plugins/clang/tests/test_codecompletion.cpp M +2 -0 plugins/clang/tests/test_codecompletion.h https://commits.kde.org/kdevelop/27cca2f34f407d02212b15deb69d4506ce30d8f0