Skip to content

Instantly share code, notes, and snippets.

@LemonPi
Last active October 2, 2017 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LemonPi/4585287e025875ba631057affe700383 to your computer and use it in GitHub Desktop.
Save LemonPi/4585287e025875ba631057affe700383 to your computer and use it in GitHub Desktop.
Clang format options
# put in project root
---
# We'll use defaults from the LLVM style, but with 4 columns indentation.
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AlwaysBreakTemplateDeclarations: true
AllowShortIfStatementsOnASingleLine: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment