▲ | franky47 5 days ago | ||||||||||||||||
What’s a good (ie: opinionated) code formatter and unit test framework for C++ these days? I just had a PR on an old C++ project, and spending 8 years in the web ecosystem have raised the bar around tooling expectations. Rust is particularly sweet to work with in that regard. | |||||||||||||||||
▲ | lang4d 5 days ago | parent | next [-] | ||||||||||||||||
My go to for formatting would be clang-format, and for testing gtest. For more extensive formatting (that involves the compiler) clang-tidy goes a long way | |||||||||||||||||
| |||||||||||||||||
▲ | jonstewart 5 days ago | parent | prev | next [-] | ||||||||||||||||
Catch2 is great as a unit test framework. Running unit tests with the address sanitizer and UB sanitizer enabled go a long way towards addressing most memory safety bugs. The kind of C++ you write then is a far cry from what the haters complain about with bad old VC6 era C++. | |||||||||||||||||
| |||||||||||||||||
▲ | IshKebab 5 days ago | parent | prev [-] | ||||||||||||||||
The only formatter is clang-format, and it isn't very good. Better than nothing though. |