mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-26 04:14:02 +00:00
Change the style guide to no space before the bracket
This commit is contained in:
parent
a75266e701
commit
affd39f10b
@ -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'
|
||||||
|
@ -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`
|
||||||
|
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user