File:  [NetBSD Developer Wiki] / wikisrc / projects / project / clang-format.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Tue Mar 1 10:38:49 2022 UTC (9 months ago) by martin
Branches: MAIN
CVS tags: HEAD
Adapt open gsoc project suggestion to new gsoc rules, mark as 175/350h

[[!template id=project

title="Add KNF (NetBSD style) clang-format configuration (175h)"


[Kamil Rytarowski](



clang-format is a tool to format source code according to a set of rules and heuristics.
Like most tools, it is not perfect nor covers every single case, but it is good enough to be helpful.

clang-format can be used for several purposes:

* Quickly reformat a block of code to the NetBSD (KNF) style.
* Spot style mistakes, typos and possible improvements in files.
* Help to follow the coding style rules.


* Create configuration file .clang-format that approximate the NetBSD coding style
* Patch LibFormat to handle missing coding style rules.
* Integrate .clang-format with the NetBSD distribution.


[[!tag gsoc]]
[[!tag gsoc175h]]

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb