Change the style guide to no space before the bracket

This commit is contained in:
Richard Hughes 2021-07-24 17:38:54 +01:00 committed by Mario Limonciello
parent a75266e701
commit affd39f10b
3 changed files with 6 additions and 6 deletions

View File

@ -25,9 +25,9 @@ Language: 'Cpp'
MaxEmptyLinesToKeep: '1' MaxEmptyLinesToKeep: '1'
PointerAlignment: 'Right' PointerAlignment: 'Right'
SortIncludes: 'true' SortIncludes: 'true'
SpaceAfterCStyleCast: 'true' SpaceAfterCStyleCast: 'false'
SpaceBeforeAssignmentOperators : 'true' SpaceBeforeAssignmentOperators : 'true'
SpaceBeforeParens: 'Always' SpaceBeforeParens: 'ControlStatements'
SpaceInEmptyParentheses: 'false' SpaceInEmptyParentheses: 'false'
SpacesInSquareBrackets: 'false' SpacesInSquareBrackets: 'false'
TabWidth: '8' TabWidth: '8'

View File

@ -22,9 +22,9 @@ from the PackageKit Coding Style.
* 8-space tabs for indentation * 8-space tabs for indentation
* Prefer lines of less than <= 80 columns * Prefer lines of less than <= 100 columns
* 1-space between function name and braces (both calls and macro * No spaces between function name and braces (both calls and macro
declarations) declarations)
* If function signature/call fits in a single line, do not break it * If function signature/call fits in a single line, do not break it
@ -39,7 +39,7 @@ from the PackageKit Coding Style.
over-documenting the obvious. Here is an example of useless comment: over-documenting the obvious. Here is an example of useless comment:
// Fetch the document // Fetch the document
fetch_the_document (); fetch_the_document();
* Comments should not start with a capital letter or end with a full stop and * Comments should not start with a capital letter or end with a full stop and
should be C-style, not C++-style, e.g. `/* this */` not `// this` should be C-style, not C++-style, e.g. `/* this */` not `// this`

View File

@ -20,7 +20,7 @@ CLANG_DIFF_FORMATTERS = [
"clang-format-diff-13", "clang-format-diff-13",
"clang-format-diff", "clang-format-diff",
] ]
FIXUPS = {"g_autoptr (": "g_autoptr(", "sizeof (": "sizeof(", "g_auto (": "g_auto("} FIXUPS = {}
def parse_args(): def parse_args():