Re:Software development topics I've changed my mind on after...
by bjourne on Wednesday February 05, 2025 @08:46AM
(#42948395)
While Python has some great linters, I don't know of any in C that can correctly and automatically enforce some coding style. Most of them can only indent correctly, but they can't break up long lines over multiple lines, format array literals, or strings. Few or none knows how to deal with names or preprocessor macros.
[ Parent
| on HN ]
Re:Software development topics I've changed my mind on after...
by brandmeyer on Wednesday February 05, 2025 @08:55AM
(#42948518)
clang-format and clang-tidy are both excellent for C and C++ (and protobuf, if your group uses it). Since they are based on the clang front-end, they naturally have full support for both languages and all of their complexity.