aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: Add bitset loop macrosMark Johnston2021-11-011-0/+4
| | | | | | Sponsored by: The FreeBSD Foundation (cherry picked from commit a3e3d90863f3af81bca485468814a787206a235d)
* clang-format: Avoid breaking after the opening paren of function definitionsAlex Richardson2020-10-281-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This depends on https://reviews.llvm.org/D90246 to have any effect, but once that has landed clang-format will no longer format code like this: ``` int myfunction( int param1, int param2, int param2) { ... } ``` and instead create the following: ``` int myfunction(int param1, int param2, int param2) { ... } ``` Reviewed By: emaste, cem Differential Revision: https://reviews.freebsd.org/D26978 Notes: svn path=/head/; revision=367100
* clang-format: place sys/systm.h immediately after sys/param.hAlex Richardson2020-10-281-1/+4
| | | | | | | | | | | Should fix one of the objections to r366993. See also https://reviews.freebsd.org/D26981. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D26979 Notes: svn path=/head/; revision=367099
* Move vm_page_dump bitset array definition to MI codeD Scott Phillips2020-09-211-0/+1
| | | | | | | | | | | | | | | | | | | These definitions were repeated by all architectures, with small variations. Consolidate the common definitons in machine independent code and use bitset(9) macros for manipulation. Many opportunities for deduplication remain in the machine dependent minidump logic. The only intended functional change is increasing the bit index type to vm_pindex_t, allowing the indexing of pages with address of 8 TiB and greater. Reviewed by: kib, markj Approved by: scottl (implicit) MFC after: 1 week Sponsored by: Ampere Computing, Inc. Differential Revision: https://reviews.freebsd.org/D26129 Notes: svn path=/head/; revision=365977
* Set AlignTrailingComments in the clang-format configAlex Richardson2020-09-101-1/+1
| | | | | | | | | | | | This seems to be fairly common in existing code and often looks better when adding trailing comments to e.g. enumerators or array initializers. See D26340 for more context. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D26391 Notes: svn path=/head/; revision=365576
* Use the correct config names for some .clang-format entriesAlex Richardson2020-09-101-2/+2
| | | | | | | | | Those values are enum entries and should use "Never" instead of "false". clang-format currently accepts false, but it's better to use the correct syntax in case that changes in the future. Notes: svn path=/head/; revision=365575
* Clang-format: Avoid hardcoded LLVM include-order styleConrad Meyer2020-06-241-0/+6
| | | | | | | Reported by: emaste Notes: svn path=/head/; revision=362596
* Update .clang-format type and foreach macros listsConrad Meyer2020-06-241-24/+70
| | | | | | | | | | No functional change. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D25429 Notes: svn path=/head/; revision=362595
* Update .clang-format with style(9) header-sortingConrad Meyer2020-06-241-1/+48
| | | | | | | | | | Thanks to work done in the NetBSD clang-format project. No functional change. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D25428 Notes: svn path=/head/; revision=362590
* Add a basic clang-format configuration fileAlex Richardson2019-06-071-0/+77
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 Notes: svn path=/head/; revision=348777