Zeek’s source code has evolved over many years, and is now using a number of slightly different layout styles. We need a pretty printer that unifies layout automatically. This applies to both C++ code and Zeek scripts.
For C++, a suitably configured uncrustify might work. However, more interstingly clang now comes with a code formatting component. We should see if that’s already in a usable state.
For Zeek script code, we probably want to investigate adapting Zeek’s Describe() methods to output a canonified style.
© 2014 The Bro Project.