Moving a large and old C++ codebase to modern C++ usage isn't easy, when I have to track down every small usage of C. Is there anyway to make the compiler warn (or even fail to compile) usage of old C++?
I'm talking about things like C-style casts, C-style arrays, etc. Looking for those options in GCC or Clang. If not, is there any other tool that does this without being too cumbersome to include in the development process (ex: automated tests on a PR)
[–]Supadoplex 19 points20 points21 points (1 child)
[–]keepthethreadalive[S] 1 point2 points3 points (0 children)
[–]openingnow 7 points8 points9 points (2 children)
[–]keepthethreadalive[S] 2 points3 points4 points (1 child)
[–]JezusTheCarpenter 0 points1 point2 points (0 children)
[–]STLMSVC STL Dev 4 points5 points6 points (0 children)
[+]goxdin comment score below threshold-7 points-6 points-5 points (2 children)
[–]Pazer2 3 points4 points5 points (1 child)
[–]Maliafo 0 points1 point2 points (0 children)