From b0f20f11fc53efde28fe24e43ff172c56739a8b0 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Fri, 7 Jun 2019 15:23:52 +0000 Subject: Add a basic clang-format configuration file This gets reasonably close to the existing format in sys/kern but will probably require some changes to upstream clang-format before it can be used as the default formatting tool. I tried formatting a few files in sys/kern and the result is pretty close to the existing code. However, this configuration file is not ready to be used without manually checking the output. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D20533 --- .gitattributes | 1 + 1 file changed, 1 insertion(+) (limited to '.gitattributes') diff --git a/.gitattributes b/.gitattributes index 4d7b655b501e..11fec084166f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,3 +4,4 @@ *.hpp diff=cpp *.py diff=python . svn-properties=svn:keywords=tools/build/options/WITHOUT_LOADER_ZFS +.clang-format svn-properties=svn:keywords=FreeBSD=%H -- cgit v1.2.3