add .clang-format & .clang-tidy from CXX-project tempplate
parent
adc788bcfe
commit
6e3fa380e8
|
@ -0,0 +1,45 @@
|
|||
BasedOnStyle: LLVM
|
||||
Language: Cpp
|
||||
Standard: c++11
|
||||
DerivePointerAlignment: true
|
||||
SortIncludes: Never
|
||||
ReflowComments: false
|
||||
PointerAlignment: Left
|
||||
AlignAfterOpenBracket: AlwaysBreak
|
||||
AlignOperands: AlignAfterOperator
|
||||
BreakConstructorInitializers: AfterColon
|
||||
AlignTrailingComments: true
|
||||
AllowAllArgumentsOnNextLine: false
|
||||
AllowAllParametersOfDeclarationOnNextLine: false
|
||||
AllowShortEnumsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: Empty
|
||||
AllowShortIfStatementsOnASingleLine: Never
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
AlwaysBreakTemplateDeclarations: Yes
|
||||
BinPackArguments: false
|
||||
BinPackParameters: false
|
||||
ExperimentalAutoDetectBinPacking: true
|
||||
BreakBeforeBraces: Custom
|
||||
BraceWrapping:
|
||||
AfterFunction: true
|
||||
ColumnLimit: 100
|
||||
AllowAllConstructorInitializersOnNextLine: false
|
||||
#BreakConstructorInitializersBeforeComma: true
|
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
||||
AlwaysBreakAfterDefinitionReturnType: None
|
||||
AlwaysBreakAfterReturnType: None
|
||||
PenaltyBreakBeforeFirstCallParameter: 0
|
||||
PenaltyReturnTypeOnItsOwnLine: 1000000
|
||||
PenaltyBreakAssignment: 1000000
|
||||
PenaltyExcessCharacter: 10
|
||||
IndentCaseLabels: true
|
||||
IndentWidth: 4
|
||||
MaxEmptyLinesToKeep: 2
|
||||
NamespaceIndentation: All
|
||||
SpaceAfterTemplateKeyword: false
|
||||
AccessModifierOffset: -4
|
||||
AllowShortBlocksOnASingleLine: Always
|
||||
IndentPPDirectives: BeforeHash
|
||||
IndentExternBlock: Indent
|
||||
Cpp11BracedListStyle: false
|
||||
BreakStringLiterals: false
|
|
@ -0,0 +1,36 @@
|
|||
Checks: >
|
||||
-*,
|
||||
-abseil-*,
|
||||
-altera-*,
|
||||
-android-*,
|
||||
boost-*,
|
||||
bugprone-*,
|
||||
cert-*,
|
||||
clang-analyzer-*,
|
||||
concurrency-*,
|
||||
cppcoreguidelines-*,
|
||||
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
|
||||
-cppcoreguidelines-avoid-non-const-global-variables,
|
||||
-cppcoreguidelines-non-private-member-variables-in-classes,
|
||||
darwin-*,
|
||||
-fuchsia-*,
|
||||
-google-*,
|
||||
-hicpp-*,
|
||||
-linuxkernel-*,
|
||||
-llvm-*,
|
||||
-llvmlibc-*,
|
||||
misc-*,
|
||||
-misc-non-private-member-variables-in-classes,
|
||||
modernize-*,
|
||||
-modernize-use-auto,
|
||||
-modernize-use-trailing-return-type,
|
||||
-modernize-use-nodiscard,
|
||||
-mpi-*,
|
||||
-objc-*,
|
||||
-openmp-*,
|
||||
performance-*,
|
||||
portability-*,
|
||||
readability-*,
|
||||
-readability-function-cognitive-complexity,
|
||||
-readability-implicit-bool-conversion,a
|
||||
-zircon-*,
|
Loading…
Reference in New Issue