Skip to main content

Formatting your C++ code

Submitted by Biswajit Banerjee on

Some of you may be involved in computational work where your students develop C++ codes.  If the code is formatted well it's easier to read and understand.  With the creation of clang-format, the job of formatting (and not just indentation) can now be automated to a great extent.  For a few pointers on how-to, check out my post at http://www.parresianz.com/c++/clang-format/.

-- Biswajit