https://github.com/bosilca/ompi
Tip revision: 8be95d76561cc9d0bb841c2888da4070fc7788fd authored by George Bosilca on 29 September 2022, 16:38:10 UTC
Avoid name collisions with intrinsics functions
Avoid name collisions with intrinsics functions
Tip revision: 8be95d7
.clang-format
# This file represents the coding style enforced by Open MPI. This file
# is based on the long-held, but not enforced, guidelines from the
# beginning of the project. We will be requiring that all code going
# forward uses this style. To check your code before attempting to open
# a PR install clang-format and run your commits through clang-format.
#
# To install clang-format:
#
# macOS:
# Homebrew: brew install clang-format
# Mac Ports: port install clang
#
# Linux:
# debian/ubuntu/rasbian: apt-get install clang-format
# redhat/fedora: yum install clang-format
#
# To run against your code changes:
#
# unstaged changes: git clang-format --style file -f
# staged changes: git clang-format --style file
#
# For interactive add the -p option.
#
# To run against all of Open MPI:
#
# ./contrib/clang-format-ompi.sh
#
# This command is intended to be run only once.
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: true
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 100
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
- BOOST_FOREACH
- OPAL_LIST_FOREACH
- OPAL_LIST_FOREACH_DECL
- OPAL_LIST_FOREACH_SAFE
- OPAL_LIST_FOREACH_REV
- OPAL_LIST_FOREACH_SAFE_REV
- OPAL_HASH_TABLE_FOREACH
- OPAL_HASH_TABLE_FOREACH_PTR
IncludeBlocks: Preserve
IncludeCategories:
# Ensure config includes always come first (opal_config.h, ompi_config.h, etc)
- Regex: '^".*_config\.h"'
Priority: -1
# In-tree includes come next (after main include)
- Regex: '^".*"'
Priority: 2
# System includes come last
- Regex: '^<.*>'
Priority: 3
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
IndentCaseLabels: false
IndentGotoLabels: true
IndentPPDirectives: AfterHash
IndentWidth: 4
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 250
PenaltyBreakBeforeFirstCallParameter: 301
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
Standard: Latest
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
- BEGIN_C_DECLS
- END_C_DECLS
TabWidth: 8
UseCRLF: false
UseTab: Never
...