File:  [NetBSD Developer Wiki] / wikisrc / projects / project / clang-format.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Fri Jan 18 17:35:11 2019 UTC (2 years, 1 month ago) by kamil
Branches: MAIN
CVS tags: HEAD
Add clang-format GSoC task

Add KNF (NetBSD style) clang-format configuration.

[[!template id=project

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


[Kamil Rytarowski](

duration="3 months"


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]]

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb