From: "Tomas Pilar (tpilar)" <tpilar@solarflare.com>
To: Ray <ray.ni@intel.com>, Devel EDK2 <devel@edk2.groups.io>,
"sean.brogan@microsoft.com" <sean.brogan@microsoft.com>
Subject: Re: [edk2-devel] Anyone successfully enabled clangd in edk2 code?
Date: Tue, 7 Jan 2020 10:34:56 +0000 [thread overview]
Message-ID: <1578393296637.84422@solarflare.com> (raw)
In-Reply-To: <20809.1578372897734783902@groups.io>
Sorry Guys, I did not see the previous email. I don't claim my clang-format is perfect, you might need to tweak it a little.
-----------------------------------------------
BasedOnStyle: LLVM
AlignAfterOpenBracket: Align
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: All
AlwaysBreakAfterReturnType: All
AlwaysBreakBeforeMultilineStrings: false
BinPackArguments: true
BinPackParameters: false
ExperimentalAutoDetectBinPacking: false
BreakBeforeBraces: Linux
BreakBeforeTernaryOperators: true
BreakStringLiterals: true
ColumnLimit: 0
CompactNamespaces: false
ContinuationIndentWidth: 2
Cpp11BracedListStyle: false
DerivePointerAlignment: true
FixNamespaceComments: true
IncludeBlocks: Regroup
IndentCaseLabels: true
IndentWidth: 2
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SpaceAfterCStyleCast: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 3
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: true
SpacesInParentheses: false
SpacesInSquareBrackets: false
TabWidth: 2
Cheers,
Tom
From: devel@edk2.groups.io <devel@edk2.groups.io> on behalf of Sean via Groups.Io <sean.brogan=microsoft.com@groups.io>
Sent: 07 January 2020 04:54
To: Ni; Ray; Devel EDK2
Subject: Re: [edk2-devel] Anyone successfully enabled clangd in edk2 code?
Thomas,
Are you able to share the Clang-format file? I would like to get a format file as close to edk2 style as possible and then see if we can move the community to auto formatted code. This could then be easily enforced by a PR gate that requires all modified/new files to conform to auto formatted code. This would reduce the noise on the mailing list and make it easier to contribute to the project all while making edk2 more consistent.
Thanks
Sean
prev parent reply other threads:[~2020-01-07 10:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <15E34088D3BE24A2.19430@groups.io>
2019-12-24 8:14 ` Anyone successfully enabled clangd in edk2 code? Ni, Ray
2019-12-24 12:35 ` [edk2-devel] " Tomas Pilar (tpilar)
2019-12-24 12:36 ` Tomas Pilar (tpilar)
2019-12-25 1:39 ` Ni, Ray
2020-01-07 4:54 ` Sean
2020-01-07 10:34 ` Tomas Pilar (tpilar) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1578393296637.84422@solarflare.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox