Top/Prog/formatter/clang-format

目次

書式オプション(抜粋)

Language:

valdescription
None使用しない
CppC, C++, Objective-C, Objective-C++ を使用する
JavaJava を使用する
JavaScriptJavaScript を使用する
ProtoProtocol Buffers

AccessModifierOffset:

AlignAfterOpenBracket:

AlignConsecutiveAssignments:

AlignConsecutiveDeclarations:

AlignEscapedNewlinesLeft:

AlignOperands:

AlignTrailingComments:

AllowAllParametersOfDeclarationOnNextLine:

AllowShortBlocksOnASingleLine:

AllowShortCaseLabelsOnASingleLine:

AllowShortFunctionsOnASingleLine:

AllowShortIfStatementsOnASingleLine:

AllowShortLoopsOnASingleLine:

AlwaysBreakAfterDefinitionReturnType:

AlwaysBreakAfterReturnType:

AlwaysBreakBeforeMultilineStrings:

AlwaysBreakTemplateDeclarations:

BinPackArguments:

BinPackParameters:

BraceWrapping:

AfterClass:

AfterControlStatement:

AfterEnum:

AfterFunction:

AfterNamespace:

AfterObjCDeclaration:

AfterStruct:

AfterUnion:

BeforeCatch:

BeforeElse:

IndentBraces:

BreakBeforeBinaryOperators:

stylestyle option
LLVMBasedOnStyle: LLVM
googleBasedOnStyle: Google
ChromiumBasedOnStyle: Chromium
MozillaBasedOnStyle: Mozilla
WebKitBasedOnStyle: WebKit
linuxBasedOnStyle: LLVM
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
Visual StudioUseTab: Never
IndentWidth: 4
BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0

BreakBeforeBraces:

BreakBeforeTernaryOperators:

BreakConstructorInitializersBeforeComma:

ColumnLimit:

CommentPragmas:

ConstructorInitializerAllOnOneLineOrOnePerLine:

ConstructorInitializerIndentWidth:

ContinuationIndentWidth:

Cpp11BracedListStyle:

DerivePointerAlignment:

DisableFormat:

ExperimentalAutoDetectBinPacking:

ForEachMacros:

IncludeCategories:

-

Priority:

-

Priority:

-

Priority:

IndentCaseLabels:

IndentWidth:

IndentWrappedFunctionNames:

KeepEmptyLinesAtTheStartOfBlocks:

MacroBlockBegin:

MacroBlockEnd:

MaxEmptyLinesToKeep:

NamespaceIndentation:

ObjCBlockIndentWidth:

ObjCSpaceAfterProperty:

ObjCSpaceBeforeProtocolList:

PenaltyBreakBeforeFirstCallParameter:

PenaltyBreakComment:

PenaltyBreakFirstLessLess:

PenaltyBreakString:

PenaltyExcessCharacter:

PenaltyReturnTypeOnItsOwnLine:

PointerAlignment:

ReflowComments:

SortIncludes:

SpaceAfterCStyleCast:

SpaceBeforeAssignmentOperators:

SpaceBeforeParens:

SpaceInEmptyParentheses:

SpacesBeforeTrailingComments:

SpacesInAngles:

SpacesInContainerLiterals:

SpacesInCStyleCastParentheses:

SpacesInParentheses:

SpacesInSquareBrackets:

Standard:

TabWidth:

UseTab:

参考リンク


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-03-26 (金) 23:05:40