Commit graph

4 commits

Author SHA1 Message Date
Martin Braun
b3541dd6d9 Update clang-format for version 14
This was done by running clang-format-14 --dump-config -style:file in
the UHD source tree, and use the output to update .clang-format. Some of
the newer options were then hand-modified to more closely match the
coding standard of UHD.

Note that this new config file is not compatible with older versions of
clang-format, so clang-format 14.0 is the minimum.

Also, due to the nature of clang-format, there is a possibility that
newer versions of clang-format will produce different output.
2023-08-07 15:35:56 -05:00
Martin Braun
90652b9066 clang-format: Break after templates
Before, code would get formatted thus:

template <typename T> class X {}

Now, it gets formatted as such:

template <typename T>
class X {}
2019-03-21 09:50:09 -07:00
Brent Stapleton
e5c45e424b clang-format: fixing include categories
Increasing priority of `#include "header.hpp"` statements.
2019-01-16 11:40:23 -08:00
Brent Stapleton
4a6b623b5c uhd: add .clang-format file
Adding clang-format configuration file. The chosen style is meant to
match current UHD coding style, except in certain cases where we have
consciously decided to format our code in a particular way.
2018-11-12 11:29:38 -08:00