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
Description
Description
Revisions and Commits
Revisions and Commits
Restricted Differential Revision |
Related Objects
Related Objects
- Mentioned In
- T27033: Clean up stale remote branches
rMITK86eb38db8a98: Merge branch 'T23293-nullptr'
rMITK43319a16964c: Merge branch 'T23293-nullptr'
rMITK3db51a382ace: Merge branch 'T23293-override-Oct2019'
rMITK5d99ddc4d7ed: Merge branch 'T23293-override-Oct2019'
rMITK1fdbd9088049: Merge branch 'T23293-override-Oct2019'
rMITKcf75ee78bdd2: C++11 modernizations and warning fixes
rMITK81491e3f5dfb: Merge branch 'T23293-modernization-fixup'
rMITK682330ad8d82: Merge branch 'T23293-CannotConvertNullptrToDWORD'
rMITKc7022f5106ea: Merge branch 'T23293-M_PI'
rMITK1e11667f18ac: Merge branch 'T23293-modernize-use-override' - Mentioned Here
- T23268: Build errors with clang 3.8.1 (Debian 9.1 "Stretch")
Event Timeline
Comment Actions
Ubuntu 17.10
sudo apt-get install clang-5.0 clang-tidy-5.0 cd MITK-superbuild/MITK-build cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON . /usr/lib/llvm-5.0/share/clang/run-clang-tidy.py -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.
This comment was removed by kislinsk.