delete .clang-format and .clang-tidy
These are redundant copies. .clang-tidy is not used, since clangd's configurations include those from clang-tidy. Furthermore, I no longer use clangd as language server. And clang-format is defined per-project regardless, so there is no point to including it here.
This commit is contained in:
182
.clang-format
182
.clang-format
@@ -1,182 +0,0 @@
|
|||||||
---
|
|
||||||
# ---------------------------
|
|
||||||
# general style settings
|
|
||||||
# ---------------------------
|
|
||||||
BasedOnStyle: GNU
|
|
||||||
Standard: Auto
|
|
||||||
ColumnLimit: 0
|
|
||||||
LineEnding: LF
|
|
||||||
UseTab: ForContinuationAndIndentation
|
|
||||||
TabWidth: 8
|
|
||||||
IndentWidth: 8
|
|
||||||
ContinuationIndentWidth: 8
|
|
||||||
AccessModifierOffset: -4
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# alignment options
|
|
||||||
# ---------------------------
|
|
||||||
AlignAfterOpenBracket: DontAlign
|
|
||||||
AlignOperands: DontAlign
|
|
||||||
AlignTrailingComments: true
|
|
||||||
AlignConsecutiveMacros: AcrossEmptyLines
|
|
||||||
AlignEscapedNewlines: Left
|
|
||||||
AlignArrayOfStructures: Left
|
|
||||||
AlignConsecutiveAssignments: Consecutive
|
|
||||||
AlignConsecutiveBitFields: AcrossEmptyLines
|
|
||||||
AlignConsecutiveDeclarations: Consecutive
|
|
||||||
AlignConsecutiveShortCaseStatements:
|
|
||||||
Enabled: true
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# short constructs on a single line
|
|
||||||
# ---------------------------
|
|
||||||
AllowShortBlocksOnASingleLine: Always
|
|
||||||
AllowShortFunctionsOnASingleLine: All
|
|
||||||
AllowShortLambdasOnASingleLine: All
|
|
||||||
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
|
|
||||||
AllowShortCaseLabelsOnASingleLine: true
|
|
||||||
AllowShortEnumsOnASingleLine: true
|
|
||||||
AllowShortLoopsOnASingleLine: true
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# break and wrapping options
|
|
||||||
# ---------------------------
|
|
||||||
AlwaysBreakBeforeMultilineStrings: false
|
|
||||||
AlwaysBreakAfterReturnType: Automatic
|
|
||||||
BreakTemplateDeclarations: false
|
|
||||||
BreakBeforeBinaryOperators: None
|
|
||||||
BreakBeforeConceptDeclarations: Never
|
|
||||||
BreakBeforeBraces: Custom
|
|
||||||
BreakBeforeTernaryOperators: false
|
|
||||||
BreakStringLiterals: false
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# brace wrapping configuration
|
|
||||||
# ---------------------------
|
|
||||||
BraceWrapping:
|
|
||||||
AfterControlStatement: Never
|
|
||||||
AfterCaseLabel: false
|
|
||||||
AfterClass: false
|
|
||||||
AfterEnum: false
|
|
||||||
AfterFunction: true
|
|
||||||
AfterNamespace: false
|
|
||||||
AfterObjCDeclaration: false
|
|
||||||
AfterStruct: false
|
|
||||||
AfterUnion: false
|
|
||||||
AfterExternBlock: false
|
|
||||||
BeforeCatch: false
|
|
||||||
BeforeElse: false
|
|
||||||
BeforeLambdaBody: false
|
|
||||||
BeforeWhile: false
|
|
||||||
IndentBraces: false
|
|
||||||
SplitEmptyFunction: true
|
|
||||||
SplitEmptyRecord: true
|
|
||||||
SplitEmptyNamespace: true
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# constructor initializer and parameter packing options
|
|
||||||
# ---------------------------
|
|
||||||
ConstructorInitializerIndentWidth: 8
|
|
||||||
PackConstructorInitializers: NextLine
|
|
||||||
BinPackParameters: true
|
|
||||||
BinPackArguments: true
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# pointer alignment
|
|
||||||
# ---------------------------
|
|
||||||
DerivePointerAlignment: false
|
|
||||||
PointerAlignment: Right
|
|
||||||
ReferenceAlignment: Pointer
|
|
||||||
QualifierAlignment: Left
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# include settings and sorting
|
|
||||||
# ---------------------------
|
|
||||||
IncludeIsMainSourceRegex: ''
|
|
||||||
IncludeIsMainRegex: '([-_](test|unittest))?$'
|
|
||||||
IncludeBlocks: Regroup
|
|
||||||
IncludeCategories:
|
|
||||||
- Regex: '^<.*\.h>'
|
|
||||||
Priority: 2
|
|
||||||
SortPriority: 0
|
|
||||||
CaseSensitive: true
|
|
||||||
- Regex: '^".*'
|
|
||||||
Priority: 3
|
|
||||||
SortPriority: 0
|
|
||||||
CaseSensitive: true
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# additional formatting and sorting details
|
|
||||||
# ---------------------------
|
|
||||||
FixNamespaceComments: false
|
|
||||||
MaxEmptyLinesToKeep: 2
|
|
||||||
ReflowComments: true
|
|
||||||
RemoveBracesLLVM: false
|
|
||||||
AllowAllArgumentsOnNextLine: false
|
|
||||||
AllowAllParametersOfDeclarationOnNextLine: false
|
|
||||||
EmptyLineAfterAccessModifier: Never
|
|
||||||
EmptyLineBeforeAccessModifier: LogicalBlock
|
|
||||||
ExperimentalAutoDetectBinPacking: false
|
|
||||||
SeparateDefinitionBlocks: Leave
|
|
||||||
ShortNamespaceLines: 1
|
|
||||||
SortIncludes: CaseSensitive
|
|
||||||
SortJavaStaticImport: Before
|
|
||||||
SortUsingDeclarations: false
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# spacing options
|
|
||||||
# ---------------------------
|
|
||||||
SpaceAfterCStyleCast: false
|
|
||||||
SpaceAfterLogicalNot: false
|
|
||||||
SpaceAfterTemplateKeyword: true
|
|
||||||
SpaceBeforeAssignmentOperators: true
|
|
||||||
SpaceBeforeCaseColon: false
|
|
||||||
Cpp11BracedListStyle: true
|
|
||||||
SpaceBeforeCpp11BracedList: false
|
|
||||||
SpaceBeforeCtorInitializerColon: true
|
|
||||||
SpaceBeforeInheritanceColon: true
|
|
||||||
SpaceBeforeParens: ControlStatements
|
|
||||||
SpaceBeforeRangeBasedForLoopColon: true
|
|
||||||
SpaceInEmptyBlock: true
|
|
||||||
SpacesInParens: Custom
|
|
||||||
SpacesInParensOptions:
|
|
||||||
ExceptDoubleParentheses: false
|
|
||||||
InConditionalStatements: false
|
|
||||||
InCStyleCasts: false
|
|
||||||
Other: false
|
|
||||||
SpacesBeforeTrailingComments: 1
|
|
||||||
SpacesInAngles: Never
|
|
||||||
SpacesInConditionalStatement: false
|
|
||||||
SpacesInContainerLiterals: false
|
|
||||||
SpacesInCStyleCastParentheses: false
|
|
||||||
SpacesInLineCommentPrefix:
|
|
||||||
Minimum: 1
|
|
||||||
Maximum: 1
|
|
||||||
SpacesInParentheses: false
|
|
||||||
SpacesInSquareBrackets: false
|
|
||||||
SpaceBeforeSquareBrackets: false
|
|
||||||
BitFieldColonSpacing: Both
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# penalty settings
|
|
||||||
# ---------------------------
|
|
||||||
PenaltyBreakAssignment: 10
|
|
||||||
PenaltyBreakBeforeFirstCallParameter: 30
|
|
||||||
PenaltyBreakComment: 10
|
|
||||||
PenaltyBreakFirstLessLess: 0
|
|
||||||
PenaltyBreakString: 10
|
|
||||||
PenaltyExcessCharacter: 100
|
|
||||||
PenaltyReturnTypeOnItsOwnLine: 60
|
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# indentation details
|
|
||||||
# ---------------------------
|
|
||||||
IndentAccessModifiers: false
|
|
||||||
IndentCaseLabels: false
|
|
||||||
IndentCaseBlocks: false
|
|
||||||
IndentGotoLabels: false
|
|
||||||
IndentExternBlock: AfterExternBlock
|
|
||||||
IndentRequiresClause: false
|
|
||||||
IndentPPDirectives: None
|
|
||||||
PPIndentWidth: 1
|
|
||||||
...
|
|
||||||
50
.clang-tidy
50
.clang-tidy
@@ -1,50 +0,0 @@
|
|||||||
---
|
|
||||||
Checks:
|
|
||||||
- 'clang-diagnostic-*'
|
|
||||||
- 'clang-analyzer-*'
|
|
||||||
- 'bugprone-*'
|
|
||||||
- 'performance-*'
|
|
||||||
- 'misc-*'
|
|
||||||
- 'readability-make-member-function-const'
|
|
||||||
- 'readability-const-return-type'
|
|
||||||
- 'readability-const-parameter'
|
|
||||||
- 'cppcoreguidelines-const'
|
|
||||||
- '-bugprone-narrowing-conversions'
|
|
||||||
- '-bugprone-integer-division'
|
|
||||||
- '-bugprone-implicit-widening-of-multiplication-result'
|
|
||||||
- '-bugprone-switch-missing-default-case'
|
|
||||||
- '-bugprone-easily-swappable-parameters'
|
|
||||||
- '-clang-analyzer-security.insecureAPI.*'
|
|
||||||
- '-misc-include-cleaner'
|
|
||||||
- '-bugprone-reserved-identifier'
|
|
||||||
WarningsAsErrors: ''
|
|
||||||
HeaderFileExtensions:
|
|
||||||
- ''
|
|
||||||
- h
|
|
||||||
- hh
|
|
||||||
- hpp
|
|
||||||
- hxx
|
|
||||||
ImplementationFileExtensions:
|
|
||||||
- c
|
|
||||||
- cc
|
|
||||||
- cpp
|
|
||||||
- cxx
|
|
||||||
HeaderFilterRegex: ''
|
|
||||||
FormatStyle: none
|
|
||||||
CheckOptions:
|
|
||||||
cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU'
|
|
||||||
cert-err33-c.AllowCastToVoid: 'true'
|
|
||||||
cert-err33-c.CheckedFunctions: '::aligned_alloc;::asctime_s;::at_quick_exit;::atexit;::bsearch;::bsearch_s;::btowc;::c16rtomb;::c32rtomb;::calloc;::clock;::cnd_broadcast;::cnd_init;::cnd_signal;::cnd_timedwait;::cnd_wait;::ctime_s;::fclose;::fflush;::fgetc;::fgetpos;::fgets;::fgetwc;::fopen;::fopen_s;::fprintf;::fprintf_s;::fputc;::fputs;::fputwc;::fputws;::fread;::freopen;::freopen_s;::fscanf;::fscanf_s;::fseek;::fsetpos;::ftell;::fwprintf;::fwprintf_s;::fwrite;::fwscanf;::fwscanf_s;::getc;::getchar;::getenv;::getenv_s;::gets_s;::getwc;::getwchar;::gmtime;::gmtime_s;::localtime;::localtime_s;::malloc;::mbrtoc16;::mbrtoc32;::mbsrtowcs;::mbsrtowcs_s;::mbstowcs;::mbstowcs_s;::memchr;::mktime;::mtx_init;::mtx_lock;::mtx_timedlock;::mtx_trylock;::mtx_unlock;::printf_s;::putc;::putwc;::raise;::realloc;::remove;::rename;::scanf;::scanf_s;::setlocale;::setvbuf;::signal;::snprintf;::snprintf_s;::sprintf;::sprintf_s;::sscanf;::sscanf_s;::strchr;::strerror_s;::strftime;::strpbrk;::strrchr;::strstr;::strtod;::strtof;::strtoimax;::strtok;::strtok_s;::strtol;::strtold;::strtoll;::strtoul;::strtoull;::strtoumax;::strxfrm;::swprintf;::swprintf_s;::swscanf;::swscanf_s;::thrd_create;::thrd_detach;::thrd_join;::thrd_sleep;::time;::timespec_get;::tmpfile;::tmpfile_s;::tmpnam;::tmpnam_s;::tss_create;::tss_get;::tss_set;::ungetc;::ungetwc;::vfprintf;::vfprintf_s;::vfscanf;::vfscanf_s;::vfwprintf;::vfwprintf_s;::vfwscanf;::vfwscanf_s;::vprintf_s;::vscanf;::vscanf_s;::vsnprintf;::vsnprintf_s;::vsprintf;::vsprintf_s;::vsscanf;::vsscanf_s;::vswprintf;::vswprintf_s;::vswscanf;::vswscanf_s;::vwprintf_s;::vwscanf;::vwscanf_s;::wcrtomb;::wcschr;::wcsftime;::wcspbrk;::wcsrchr;::wcsrtombs;::wcsrtombs_s;::wcsstr;::wcstod;::wcstof;::wcstoimax;::wcstok;::wcstok_s;::wcstol;::wcstold;::wcstoll;::wcstombs;::wcstombs_s;::wcstoul;::wcstoull;::wcstoumax;::wcsxfrm;::wctob;::wctrans;::wctype;::wmemchr;::wprintf_s;::wscanf;::wscanf_s;'
|
|
||||||
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: 'false'
|
|
||||||
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: 'false'
|
|
||||||
cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: 'true'
|
|
||||||
google-readability-braces-around-statements.ShortStatementLines: '1'
|
|
||||||
google-readability-function-size.StatementThreshold: '800'
|
|
||||||
google-readability-namespace-comments.ShortNamespaceLines: '10'
|
|
||||||
google-readability-namespace-comments.SpacesBeforeComments: '2'
|
|
||||||
llvm-else-after-return.WarnOnConditionVariables: 'false'
|
|
||||||
llvm-else-after-return.WarnOnUnfixable: 'false'
|
|
||||||
llvm-qualified-auto.AddConstToQualified: 'false'
|
|
||||||
SystemHeaders: false
|
|
||||||
...
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user