Update gitignore.

Added clang-formatting specification.
This commit is contained in:
2019-08-23 13:22:39 +01:00
parent 0606772cc3
commit 03dba21ad4
2 changed files with 26 additions and 0 deletions

24
.clang-format Normal file
View File

@@ -0,0 +1,24 @@
---
BasedOnStyle: llvm
IndentWidth: 4
---
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: Empty
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Attach
BreakConstructorInitializers: BeforeColon
Cpp11BracedListStyle: false
ColumnLimit: 100
DerivePointerAlignment: false
FixNamespaceComments: true
IndentCaseLabels: true
IndentPPDirectives: AfterHash
Language: Cpp
PointerAlignment: Left
SortIncludes: true
SortUsingDeclarations: true
Standard: Cpp11
TabWidth: 4
UseTab: ForIndentation
...

2
.gitignore vendored
View File

@@ -3,3 +3,5 @@ libcppb64.a
U2FDevice
obj/*
U2F_Priv_Keys.txt
.ccls-cache
compile_commands.json