Browse - Programming Tips - How can I correct the indenting of a C/C++ project?

Date: 2013sep17
Language: C/C++

Q.  How can I correct the indenting of a C/C++ project?

A.  You can use astyle.  One reasonable set of options:

astyle -b -k3 -y -n -r -s2 \*.cpp \*.h