Hacker News new | past | comments | ask | show | jobs | submit login

There are tools for standardizing C formatting. Another poster mentioned indent. Clang-format [1] is very good, works with C++ as well as C, and has great editor integration. You can choose among predefined style (e.g. Google, Mozilla, LLVM style guides) or create your own and then and enforce it within a source tree very easily.

[1]: http://clang.llvm.org/docs/ClangFormat.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: