| Summary: | Automatically generated virtual methods always use C++11 'override' keyword | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Jakub Schmidtke <sjakub> |
| Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | Keywords: | junior-jobs |
| Priority: | NOR | ||
| Version First Reported In: | 5.0.2 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/kdevelop/27cca2f34f407d02212b15deb69d4506ce30d8f0 | Version Fixed/Implemented In: | 5.3.1 |
| Sentry Crash Report: | |||
|
Description
Jakub Schmidtke
2016-11-10 07:53:21 UTC
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 |