diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-04-17 22:47:37 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-04-18 17:20:19 -0700 |
commit | 61c0ca9dd97d9aef017fd9e59f1f3176ef0e9f91 (patch) | |
tree | 2de4e72154420240b33f46d93e3989143db21431 /src/builtin.h | |
parent | ba1008b75033e9ff8f4ad17fa2de25eed115de5c (diff) |
restyle history code to match project style
Make the history code conform to the new style guide. Every change was
produced by clang-format (e.g., `make style`) with the exception of
comments which were manually reformatted. That has to be done by hand
since clang-format leaves comments alone other than to reflow comment
lines to get them below the allowed line length.
The total number of lines is reduced by 313 lines (13%) in the two
affected files. Line count is generally a poor metric but in this
case it reflects an increase in information density without a loss in
readability. Furthermore, the standardization of braces, whitespace,
and comment style will make it easier for people to read the code.
This reduces the number of warnings by `make lint` from 168 to 87 (a 48%
decrease). Making it much easier to focus on the substantive lint issues.
Further improvements are possible. For example, many comments are not
very helpful (e.g., they point out the obvious) or provide insufficient
detail. But those are beyond the scope of this change.
This is the first step in resolving issue #2902.
Diffstat (limited to 'src/builtin.h')
0 files changed, 0 insertions, 0 deletions