[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 007/104] virtiofsd: Format imported files to qemu style
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 007/104] virtiofsd: Format imported files to qemu style |
Date: |
Fri, 3 Jan 2020 12:04:17 +0000 |
User-agent: |
Mutt/1.12.1 (2019-06-15) |
On Thu, Dec 12, 2019 at 04:37:27PM +0000, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <address@hidden>
>
> Mostly using a set like:
>
> indent -nut -i 4 -nlp -br -cs -ce --no-space-after-function-call-names file
> clang-format -style=file -i -- file
> clang-tidy -fix-errors -checks=readability-braces-around-statements file
> clang-format -style=file -i -- file
>
> With manual cleanups.
>
> The .clang-format used is below.
>
> Signed-off-by: Dr. David Alan Gilbert <address@hidden>
>
> Language: Cpp
> AlignAfterOpenBracket: Align
> AlignConsecutiveAssignments: false # although we like it, it creates churn
> AlignConsecutiveDeclarations: false
> AlignEscapedNewlinesLeft: true
> AlignOperands: true
> AlignTrailingComments: false # churn
> AllowAllParametersOfDeclarationOnNextLine: true
> AllowShortBlocksOnASingleLine: false
> AllowShortCaseLabelsOnASingleLine: false
> AllowShortFunctionsOnASingleLine: None
> AllowShortIfStatementsOnASingleLine: false
> AllowShortLoopsOnASingleLine: false
> AlwaysBreakAfterReturnType: None # AlwaysBreakAfterDefinitionReturnType is
> taken into account
> AlwaysBreakBeforeMultilineStrings: false
> BinPackArguments: true
> BinPackParameters: true
> BraceWrapping:
> AfterControlStatement: false
> AfterEnum: false
> AfterFunction: true
> AfterStruct: false
> AfterUnion: false
> BeforeElse: false
> IndentBraces: false
> BreakBeforeBinaryOperators: None
> BreakBeforeBraces: Custom
> BreakBeforeTernaryOperators: false
> BreakStringLiterals: true
> ColumnLimit: 80
> ContinuationIndentWidth: 4
> Cpp11BracedListStyle: false
> DerivePointerAlignment: false
> DisableFormat: false
> ForEachMacros: [
> 'CPU_FOREACH',
> 'CPU_FOREACH_REVERSE',
> 'CPU_FOREACH_SAFE',
> 'IOMMU_NOTIFIER_FOREACH',
> 'QLIST_FOREACH',
> 'QLIST_FOREACH_ENTRY',
> 'QLIST_FOREACH_RCU',
> 'QLIST_FOREACH_SAFE',
> 'QLIST_FOREACH_SAFE_RCU',
> 'QSIMPLEQ_FOREACH',
> 'QSIMPLEQ_FOREACH_SAFE',
> 'QSLIST_FOREACH',
> 'QSLIST_FOREACH_SAFE',
> 'QTAILQ_FOREACH',
> 'QTAILQ_FOREACH_REVERSE',
> 'QTAILQ_FOREACH_SAFE',
> 'QTAILQ_RAW_FOREACH',
> 'RAMBLOCK_FOREACH'
> ]
> IncludeCategories:
> - Regex: '^"qemu/osdep.h'
> Priority: -3
> - Regex:
> '^"(block|chardev|crypto|disas|exec|fpu|hw|io|libdecnumber|migration|monitor|net|qapi|qemu|qom|standard-headers|sysemu|ui)/'
> Priority: -2
> - Regex:
> '^"(elf.h|qemu-common.h|glib-compat.h|qemu-io.h|trace-tcg.h)'
> Priority: -1
> - Regex: '.*'
> Priority: 1
> IncludeIsMainRegex: '$'
> IndentCaseLabels: false
> IndentWidth: 4
> IndentWrappedFunctionNames: false
> KeepEmptyLinesAtTheStartOfBlocks: false
> MacroBlockBegin: '.*_BEGIN$' # only PREC_BEGIN ?
> MacroBlockEnd: '.*_END$'
> MaxEmptyLinesToKeep: 2
> PointerAlignment: Right
> ReflowComments: true
> SortIncludes: true
> SpaceAfterCStyleCast: false
> SpaceBeforeAssignmentOperators: true
> SpaceBeforeParens: ControlStatements
> SpaceInEmptyParentheses: false
> SpacesBeforeTrailingComments: 1
> SpacesInContainerLiterals: true
> SpacesInParentheses: false
> SpacesInSquareBrackets: false
> Standard: Auto
> UseTab: Never
> ...
> ---
> tools/virtiofsd/buffer.c | 550 ++--
> tools/virtiofsd/fuse.h | 1572 +++++------
> tools/virtiofsd/fuse_common.h | 764 ++---
> tools/virtiofsd/fuse_i.h | 127 +-
> tools/virtiofsd/fuse_log.c | 38 +-
> tools/virtiofsd/fuse_log.h | 32 +-
> tools/virtiofsd/fuse_loop_mt.c | 66 +-
> tools/virtiofsd/fuse_lowlevel.c | 3678 +++++++++++++------------
> tools/virtiofsd/fuse_lowlevel.h | 2401 ++++++++--------
> tools/virtiofsd/fuse_misc.h | 30 +-
> tools/virtiofsd/fuse_opt.c | 659 ++---
> tools/virtiofsd/fuse_opt.h | 79 +-
> tools/virtiofsd/fuse_signals.c | 118 +-
> tools/virtiofsd/helper.c | 517 ++--
> tools/virtiofsd/passthrough_helpers.h | 33 +-
> tools/virtiofsd/passthrough_ll.c | 2063 +++++++-------
> 16 files changed, 6530 insertions(+), 6197 deletions(-)
Reviewed-by: Daniel P. Berrangé <address@hidden>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- Re: [PATCH 007/104] virtiofsd: Format imported files to qemu style,
Daniel P . Berrangé <=