Commit 21f74610 authored by Igor Kushnir's avatar Igor Kushnir Committed by Milian Wolff
Browse files

.clang-format: follow KDevelop's uncrustify config

Large parts of KDevelop's code were reformatted in 2018 using
uncrustify (search for commit messages containing "uncrustify").
Bringing .clang-format as close as possible to format.config.uncrustify
is going to minimize diff during a future reformatting.
parent f62fa3f6
......@@ -43,7 +43,7 @@ BraceWrapping:
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: false
AfterStruct: true
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
......@@ -64,8 +64,7 @@ AlignAfterOpenBracket: Align
AllowAllParametersOfDeclarationOnNextLine: false
# no single line functions
#KDevelop overrides AllowShortFunctionsOnASingleLine: None
AllowShortFunctionsOnASingleLine: Inline
AllowShortFunctionsOnASingleLine: None
# always break before you encounter multi line strings
AlwaysBreakBeforeMultilineStrings: true
......@@ -108,3 +107,9 @@ AllowShortLambdasOnASingleLine: Empty
# We do not want clang-format to put all arguments on a new line
AllowAllArgumentsOnNextLine: false
#KDevelop adds:
# Prevent clang-format from inserting a space after `//`. There are plenty of comments like
# `//comment` in KDevelop code. We don't want to change them all just to insert this space.
CommentPragmas: '^[^ ]'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment