IRILL - Research and Innovation on Free Software

clang-format - Automatic formatting for C++


"clang-format - Automatic formatting for C++"
by Daniel Jasper - Google,
on 2013-04-29 00:00:00
Download Webm format
Download MP4 format

Source code readability is an important aspect to ensure quality and long-term maintainability. However, manually formatting is a tedious job that simply takes a chunk out of every programmer's productivity. Moreover, the tediousness can actively discourage refactorings, e.g. removing or restructuring a function's parameters. There are tools that can provide some level of intelligent auto-formatting, but no tool has so far been able to keep developers happy in a reasonably-sized codebase. Therefore, we have set out to build clang-format, an intelligent C++ formatter based on Clang's infrastructure.