Page MenuHomePhabricator

Apply C++ 11 modernizations
Closed, ResolvedPublic

Assigned To
Authored By
Aug 24 2017, 12:07 PM
Referenced Files
"Hungry Hippo" token, awarded by kislinsk.


Quite a number of modernizations for C++ 11 can be applied using the clang-tidy tool (former clang-modernize). This task will track the automatic improvements which will also fix some warnings. T23268 is related, but here we will only apply automatic fixes

Revisions and Commits

Event Timeline

Ubuntu 17.10
sudo apt-get install clang-5.0 clang-tidy-5.0
cd MITK-superbuild/MITK-build
/usr/lib/llvm-5.0/share/clang/ -header-filter='.*' -checks='-*,modernize-use-override' -fix
NOTE: Had to remove -Wstrict-null-sentinel from top-level and CppMicroServices CMakeLists.txt files before running clang-tidy. Didn't commit these changes, though.

We should test the branch above with the minimum supported versions of MSVC, GCC, and Clang. Tested successfully with GCC 7.2 so far.

nolden added a revision: Restricted Differential Revision.Mar 5 2018, 5:29 PM
This comment was removed by kislinsk.