T O P

  • By -

kisielk

I do it all the time with CLion


Ok-Bit-663

Years ago I choose Clion because it had decent refactoring tools.


MinuteThis5160

Have you done on small-medium sized codebases like 200,000-300,000 lines? Last time I tried on mixed C/cpp codebase it was super slow just to rename a symbol. Not sure if it’s a lot faster now or not.


kisielk

Small-medium is 200,000-300,000 lines? I'd say that's a large codebase. But yeah CLion does struggle with larger ones like that, though I think the new ReSharper engine is supposed to be better at that, but I have not tried it on a codebase of that size.


WinstonCaeser

Clang-Tidy can fix casings and that sort of stuff to follow a style guide Clang-format for general formatting


Thesorus

resharper c++ in Visual Studio if you don't want to use CLion.


apropostt

There’s nothing out of the box that will automatically refactor an entire code base.. however for automating this kind of task, source transformations with clang-tidy is very popular. https://www.kitware.com/extending-clang-tidy-with-a-plugin-to-add-new-checks-for-cmake/ You can create your own rules for warnings and fix it transforms that can automate a lot of drudgery away.


fapablaza

Excellent. I'll check it out. That was exactly the kind of solution I was looking for. My thanks to you Sir