Skip to content

Instantly share code, notes, and snippets.

@aniketp
Forked from shivansh/clang-format
Created June 3, 2018 21:45
Show Gist options
  • Save aniketp/f907f6ca1c714a73804621ca59d8535d to your computer and use it in GitHub Desktop.
Save aniketp/f907f6ca1c714a73804621ca59d8535d to your computer and use it in GitHub Desktop.
clang-format based on FreeBSD's style(9)
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0
AlignTrailingComments: true
SpacesBeforeTrailingComments: 2
@mqudsi
Copy link

mqudsi commented Jan 6, 2022

For anyone stumbling across this via Google, the FreeBSD project now includes an actual .clang-format file here:

https://github.com/freebsd/freebsd-src/blob/main/.clang-format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment