use C++ modern features
Open, Needs TriagePublic


use C++ modern features like std::optional? Yes, we can assume C++17 in KF6, let's follow what Qt6 does.

about guidelines using new features : have a look at QtCreator source example that has been using modern C++ for a while, and has gathered rationales around those features

Related Objects

knauss created this task.Sep 9 2019, 9:03 PM
vkrause moved this task from Backlog to Needs Input on the KF6 board.Sep 12 2019, 9:19 AM
meven added a subscriber: meven.Nov 6 2019, 3:23 PM

We can use clang-tidy and its fixits to modernize code.

andisa added a subscriber: andisa.Nov 22 2019, 9:27 PM

I think that we could also do this:

  • Remove magic constants.
  • Break huge functions in smaller ones with meaningful names.
  • Take into consideration the compiler warnings and solve them as much as possible.
  • Take the opportunity to improve the libraries' documentation.