From 03dba21ad4664bc1833e4ae96d042afc86cdddad Mon Sep 17 00:00:00 2001 From: Michael Kuc Date: Fri, 23 Aug 2019 13:22:39 +0100 Subject: [PATCH] Update gitignore. Added clang-formatting specification. --- .clang-format | 24 ++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..5b3e1bd --- /dev/null +++ b/.clang-format @@ -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 + +... diff --git a/.gitignore b/.gitignore index 0347e2c..37aba31 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ libcppb64.a U2FDevice obj/* U2F_Priv_Keys.txt +.ccls-cache +compile_commands.json