diff --git a/README.md b/README.md index 8c997b21..d62b156e 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,6 @@ Chatterino 2 is the second installment of my twitch chat client series "Chatteri 1. download the [boost library](https://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.zip/download) and extract it to `C:\local\boost` 2. download binaries for OpenSSL >= 1.0.2 or compile it from source. [example download](https://indy.fulgan.com/SSL/) 3. Place libeay32.dll and ssleay32.dll from OpenSSL in a directory in PATH. + +## code style +The code is normally formated using clang format in qt creator. [clangformat.txt](https://github.com/fourtf/chatterino2/blob/master/clangformat.txt) conatins the style file for clang format. diff --git a/clangformat.txt b/clangformat.txt new file mode 100644 index 00000000..b40edcf5 --- /dev/null +++ b/clangformat.txt @@ -0,0 +1,28 @@ +IndentCaseLabels: true +BasedOnStyle: Google +IndentWidth: 4 +Standard: Auto +PointerBindsToType: false +Language: Cpp +SpacesBeforeTrailingComments: 2 +AccessModifierOffset: -1 +AlignEscapedNewlinesLeft: true +AlwaysBreakAfterDefinitionReturnType: true +AlwaysBreakBeforeMultilineStrings: false +BreakConstructorInitializersBeforeComma: true +# BreakBeforeBraces: Linux +BreakBeforeBraces: Custom +AccessModifierOffset: -4 +ConstructorInitializerAllOnOneLineOrOnePerLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +DerivePointerBinding: false +BraceWrapping: { + AfterNamespace: 'false' + AfterClass: 'true' + BeforeElse: 'false' + AfterControlStatement: 'false' + AfterFunction: 'true' + BeforeCatch: 'false' +} \ No newline at end of file