Lines Matching refs:FormatStyle
28 FormatStyle getGoogleStyle() { return getGoogleStyle(FormatStyle::LK_Cpp); } in getGoogleStyle()
35 const FormatStyle &Style = getLLVMStyle(), in format()
55 FormatStyle getStyleWithColumns(FormatStyle Style, unsigned ColumnLimit) { in getStyleWithColumns()
60 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) { in getLLVMStyleWithColumns()
64 FormatStyle getGoogleStyleWithColumns(unsigned ColumnLimit) { in getGoogleStyleWithColumns()
70 const FormatStyle &Style = getLLVMStyle()) { in _verifyFormat()
75 if (Style.Language == FormatStyle::LK_Cpp) { in _verifyFormat()
78 FormatStyle ObjCStyle = Style; in _verifyFormat()
79 ObjCStyle.Language = FormatStyle::LK_ObjC; in _verifyFormat()
85 const FormatStyle &Style = getLLVMStyle()) { in _verifyFormat()
90 const FormatStyle &Style = getLLVMStyle()) { in _verifyIncompleteFormat()
98 const FormatStyle &Style = getLLVMStyle()) { in _verifyIndependentOfContext()
106 const FormatStyle &Style = getLLVMStyle()) { in verifyNoCrash()
129 EXPECT_EQ(FormatStyle::LK_Cpp, getLLVMStyle().Language); in TEST_F()
133 EXPECT_EQ(FormatStyle::LK_Proto, in TEST_F()
134 getLLVMStyle(FormatStyle::LK_Proto).Language); in TEST_F()
266 CustomStyle.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
456 FormatStyle LLVMWithNoNamespaceFix = getLLVMStyle(); in TEST_F()
507 FormatStyle Style = getLLVMStyle(); in TEST_F()
508 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All; in TEST_F()
510 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
672 FormatStyle AllowsMergedIf = getLLVMStyle(); in TEST_F()
674 AllowsMergedIf.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
676 FormatStyle::SIS_WithoutElse; in TEST_F()
767 FormatStyle AllowsMergedIfElse = getLLVMStyle(); in TEST_F()
770 FormatStyle::SIS_AllIfsAndElse; in TEST_F()
872 FormatStyle AllowsMergedIf = getLLVMStyle(); in TEST_F()
874 AllowsMergedIf.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
876 FormatStyle::SIS_WithoutElse; in TEST_F()
1092 FormatStyle::SIS_OnlyFirstIf; in TEST_F()
1299 FormatStyle::SIS_AllIfsAndElse; in TEST_F()
1485 FormatStyle AllowsMergedLoops = getLLVMStyle(); in TEST_F()
1545 FormatStyle AllowSimpleBracedStatements = getLLVMStyle(); in TEST_F()
1548 FormatStyle::SIS_Never); in TEST_F()
1577 FormatStyle::SBS_Empty; in TEST_F()
1579 FormatStyle::SIS_WithoutElse; in TEST_F()
1593 FormatStyle::SBS_Always; in TEST_F()
1595 AllowSimpleBracedStatements.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
1687 FormatStyle::SIS_Never; in TEST_F()
1729 FormatStyle::SIS_WithoutElse; in TEST_F()
1732 FormatStyle::BWACS_Always; in TEST_F()
1814 FormatStyle::SIS_Never; in TEST_F()
1894 FormatStyle Style = getLLVMStyle(); in TEST_F()
1895 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
1921 FormatStyle Style = getLLVMStyleWithColumns(60); in TEST_F()
1922 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Always; in TEST_F()
1923 Style.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_WithoutElse; in TEST_F()
1924 Style.BreakBeforeBraces = FormatStyle::BS_Allman; in TEST_F()
2061 FormatStyle Style = getLLVMStyle(); in TEST_F()
2062 EXPECT_EQ(Style.PointerAlignment, FormatStyle::PAS_Right); in TEST_F()
2063 EXPECT_EQ(Style.ReferenceAlignment, FormatStyle::RAS_Pointer); in TEST_F()
2102 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
2103 Style.ReferenceAlignment = FormatStyle::RAS_Pointer; in TEST_F()
2143 Style.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
2144 Style.ReferenceAlignment = FormatStyle::RAS_Left; in TEST_F()
2164 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
2165 Style.ReferenceAlignment = FormatStyle::RAS_Middle; in TEST_F()
2200 Style.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
2201 Style.ReferenceAlignment = FormatStyle::RAS_Right; in TEST_F()
2279 FormatStyle NoBinPacking = getLLVMStyle(); in TEST_F()
2296 FormatStyle AlignLeft = getLLVMStyle(); in TEST_F()
2297 AlignLeft.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
2313 FormatStyle Style = getLLVMStyle(); in TEST_F()
2314 EXPECT_EQ(Style.AllowShortBlocksOnASingleLine, FormatStyle::SBS_Never); in TEST_F()
2342 FormatStyle ShortBlocks = getLLVMStyle(); in TEST_F()
2343 ShortBlocks.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Always; in TEST_F()
2359 FormatStyle ShortLoops = getLLVMStyle(); in TEST_F()
2361 EXPECT_EQ(ShortLoops.AllowShortBlocksOnASingleLine, FormatStyle::SBS_Never); in TEST_F()
2374 FormatStyle ShortBlocksAndLoops = getLLVMStyle(); in TEST_F()
2375 ShortBlocksAndLoops.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Always; in TEST_F()
2386 FormatStyle::SBPO_ControlStatementsExceptControlMacros; in TEST_F()
2638 FormatStyle Attributes = getLLVMStyle(); in TEST_F()
2665 FormatStyle Style = getLLVMStyle(); in TEST_F()
2667 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never; in TEST_F()
2668 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
2670 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in TEST_F()
2776 FormatStyle Style = getLLVMStyle(); in TEST_F()
2802 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
2821 FormatStyle Style = getLLVMStyle(); in TEST_F()
2967 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
2969 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in TEST_F()
3014 FormatStyle Style = getLLVMStyle(); in TEST_F()
3041 FormatStyle Style = getLLVMStyleWithColumns(20); in TEST_F()
3042 Style.BreakBeforeBraces = FormatStyle::BraceBreakingStyle::BS_Custom; in TEST_F()
3043 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_MultiLine; in TEST_F()
3221 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_MultiLine; in TEST_F()
3222 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All; in TEST_F()
3226 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
3235 FormatStyle Style = getLLVMStyle(); in TEST_F()
3236 Style.BreakBeforeBraces = FormatStyle::BraceBreakingStyle::BS_Custom; in TEST_F()
3458 FormatStyle StyleWithInheritanceBreakBeforeComma = getLLVMStyle(); in TEST_F()
3460 FormatStyle::BILS_BeforeComma; in TEST_F()
3476 FormatStyle StyleWithInheritanceBreakAfterColon = getLLVMStyle(); in TEST_F()
3478 FormatStyle::BILS_AfterColon; in TEST_F()
3492 FormatStyle StyleWithInheritanceBreakAfterComma = getLLVMStyle(); in TEST_F()
3494 FormatStyle::BILS_AfterComma; in TEST_F()
3606 FormatStyle EightIndent = getLLVMStyle(); in TEST_F()
3735 FormatStyle Style = getLLVMStyleWithColumns(40); in TEST_F()
3745 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
3816 FormatStyle Style = getLLVMStyle(); in TEST_F()
3817 Style.BitFieldColonSpacing = FormatStyle::BFCS_None; in TEST_F()
3829 Style.BitFieldColonSpacing = FormatStyle::BFCS_Before; in TEST_F()
3836 Style.BitFieldColonSpacing = FormatStyle::BFCS_After; in TEST_F()
3846 FormatStyle LLVMWithNoNamespaceFix = getLLVMStyle(); in TEST_F()
3969 FormatStyle Style = getLLVMStyle(); in TEST_F()
3970 Style.NamespaceIndentation = FormatStyle::NI_All; in TEST_F()
3985 FormatStyle ShortInlineFunctions = getLLVMStyle(); in TEST_F()
3986 ShortInlineFunctions.NamespaceIndentation = FormatStyle::NI_All; in TEST_F()
3988 FormatStyle::SFS_Inline; in TEST_F()
4081 ShortInlineFunctions.IndentExternBlock = FormatStyle::IEBS_Indent; in TEST_F()
4089 Style.NamespaceIndentation = FormatStyle::NI_Inner; in TEST_F()
4104 Style.NamespaceIndentation = FormatStyle::NI_None; in TEST_F()
4122 FormatStyle Style = getLLVMStyle(); in TEST_F()
4136 Style.NamespaceIndentation = FormatStyle::NI_All; in TEST_F()
4154 Style.NamespaceIndentation = FormatStyle::NI_Inner; in TEST_F()
4175 Style.NamespaceIndentation = FormatStyle::NI_None; in TEST_F()
4229 FormatStyle Style = getLLVMStyle(); in TEST_F()
4320 Style.NamespaceIndentation = FormatStyle::NI_All; in TEST_F()
4341 Style.NamespaceIndentation = FormatStyle::NI_Inner; in TEST_F()
4364 Style.AllowShortLambdasOnASingleLine = FormatStyle::SLS_None; in TEST_F()
4365 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
4392 FormatStyle Style = getLLVMStyle(); in TEST_F()
4393 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
4417 FormatStyle Style = getLLVMStyle(); in TEST_F()
4420 Style.IndentExternBlock = FormatStyle::IEBS_Indent; in TEST_F()
4429 Style.IndentExternBlock = FormatStyle::IEBS_NoIndent; in TEST_F()
4438 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
4440 Style.IndentExternBlock = FormatStyle::IEBS_Indent; in TEST_F()
4451 Style.IndentExternBlock = FormatStyle::IEBS_NoIndent; in TEST_F()
4471 Style.IndentExternBlock = FormatStyle::IEBS_Indent; in TEST_F()
4586 FormatStyle Style = getLLVMStyle(); in TEST_F()
4587 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
4660 FormatStyle Style = getLLVMStyle(); in TEST_F()
4661 for (auto BraceStyle : {FormatStyle::BS_Attach, FormatStyle::BS_Mozilla, in TEST_F()
4662 FormatStyle::BS_WebKit}) { in TEST_F()
4671 Style.BreakBeforeBraces = FormatStyle::BS_Stroustrup; in TEST_F()
4693 Style.BreakBeforeBraces = FormatStyle::BS_Allman; in TEST_F()
4703 Style.BreakBeforeBraces = FormatStyle::BS_Whitesmiths; in TEST_F()
4713 Style.BreakBeforeBraces = FormatStyle::BS_GNU; in TEST_F()
4723 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
4918 FormatStyle style = getChromiumStyle(FormatStyle::LK_Cpp); in TEST_F()
4922 style.IndentPPDirectives = FormatStyle::PPDIS_None; in TEST_F()
4934 style.IndentPPDirectives = FormatStyle::PPDIS_AfterHash; in TEST_F()
4946 style.IndentPPDirectives = FormatStyle::PPDIS_BeforeHash; in TEST_F()
5041 FormatStyle Style = getLLVMStyle(); in TEST_F()
5042 Style.SpaceBeforeParens = FormatStyle::SBPO_Never; in TEST_F()
5044 Style.SpaceBeforeParens = FormatStyle::SBPO_Always; in TEST_F()
5155 getChromiumStyle(FormatStyle::LK_Cpp)); in TEST_F()
5283 FormatStyle Style = getLLVMStyle(); in TEST_F()
5284 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
5285 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in TEST_F()
5358 FormatStyle ZeroColumn = getLLVMStyleWithColumns(0); in TEST_F()
5373 FormatStyle Style = getLLVMStyleWithColumns(40); in TEST_F()
5374 Style.IndentPPDirectives = FormatStyle::PPDIS_None; in TEST_F()
5387 Style.IndentPPDirectives = FormatStyle::PPDIS_AfterHash; in TEST_F()
5622 FormatStyle Tabbed = Style; in TEST_F()
5623 Tabbed.UseTab = FormatStyle::UT_Always; in TEST_F()
5649 Style.IndentPPDirectives = FormatStyle::PPDIS_BeforeHash; in TEST_F()
5758 FormatStyle Narrow = getLLVMStyleWithColumns(11); in TEST_F()
5766 FormatStyle AlignLeft = getLLVMStyle(); in TEST_F()
5767 AlignLeft.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
5791 FormatStyle DontAlign = getLLVMStyle(); in TEST_F()
5792 DontAlign.AlignEscapedNewlines = FormatStyle::ENAS_DontAlign; in TEST_F()
5922 FormatStyle SingleLine = getLLVMStyle(); in TEST_F()
5923 SingleLine.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_WithoutElse; in TEST_F()
6049 FormatStyle Style = getGoogleStyle(); in TEST_F()
6089 FormatStyle Style = getLLVMStyle(); in TEST_F()
6092 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Empty; in TEST_F()
6094 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
6096 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in TEST_F()
6104 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Never; in TEST_F()
6118 FormatStyle Style = getLLVMStyle(); in TEST_F()
6257 FormatStyle OnePerLine = getLLVMStyle(); in TEST_F()
6327 FormatStyle Style = getLLVMStyle(); in TEST_F()
6328 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
6399 Style.UseTab = FormatStyle::UT_Always; in TEST_F()
6400 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
6401 Style.AlignOperands = FormatStyle::OAS_DontAlign; in TEST_F()
6412 FormatStyle Style = getLLVMStyle(); in TEST_F()
6413 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
6414 Style.AlignOperands = FormatStyle::OAS_AlignAfterOperator; in TEST_F()
6494 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_NonAssignment; in TEST_F()
6503 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_None; in TEST_F()
6523 FormatStyle Style = getLLVMStyle(); in TEST_F()
6524 Style.AlignOperands = FormatStyle::OAS_DontAlign; in TEST_F()
6529 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_NonAssignment; in TEST_F()
6550 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
6559 FormatStyle Style = getLLVMStyle(); in TEST_F()
6560 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_NonAssignment; in TEST_F()
6568 FormatStyle Style = getLLVMStyleWithColumns(40); in TEST_F()
6569 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_NonAssignment; in TEST_F()
6603 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_None; in TEST_F()
6622 EXPECT_EQ(Style.BreakBeforeBinaryOperators, FormatStyle::BOS_None); in TEST_F()
6634 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_NonAssignment; in TEST_F()
6645 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
6716 FormatStyle OnePerLine = getLLVMStyle(); in TEST_F()
6717 OnePerLine.PackConstructorInitializers = FormatStyle::PCIS_Never; in TEST_F()
6736 OnePerLine.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
6786 FormatStyle Style = getLLVMStyleWithColumns(60); in TEST_F()
6787 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeComma; in TEST_F()
6795 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
6796 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeComma; in TEST_F()
6802 Style.PackConstructorInitializers = FormatStyle::PCIS_CurrentLine; in TEST_F()
6809 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeColon; in TEST_F()
6810 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
6815 Style.PackConstructorInitializers = FormatStyle::PCIS_CurrentLine; in TEST_F()
6821 Style.BreakConstructorInitializers = FormatStyle::BCIS_AfterColon; in TEST_F()
6822 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
6827 Style.PackConstructorInitializers = FormatStyle::PCIS_CurrentLine; in TEST_F()
6837 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeComma; in TEST_F()
6845 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
6854 Style.PackConstructorInitializers = FormatStyle::PCIS_CurrentLine; in TEST_F()
6862 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeColon; in TEST_F()
6871 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
6880 Style.PackConstructorInitializers = FormatStyle::PCIS_CurrentLine; in TEST_F()
6888 Style.BreakConstructorInitializers = FormatStyle::BCIS_AfterColon; in TEST_F()
6896 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
6905 Style.PackConstructorInitializers = FormatStyle::PCIS_CurrentLine; in TEST_F()
6915 FormatStyle Style = getLLVMStyleWithColumns(60); in TEST_F()
6921 i & 2 ? FormatStyle::PCIS_BinPack : FormatStyle::PCIS_Never; in TEST_F()
6969 FormatStyle Style = getLLVMStyleWithColumns(35); in TEST_F()
6973 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
6979 Style.AlignAfterOpenBracket = FormatStyle::BAS_Align; in TEST_F()
6987 Style.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
6997 Style.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
7005 Style.AlignAfterOpenBracket = FormatStyle::BAS_Align; in TEST_F()
7011 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
7020 FormatStyle Style = getLLVMStyle(); in TEST_F()
7021 Style.BreakConstructorInitializers = FormatStyle::BCIS_AfterColon; in TEST_F()
7036 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
7046 Style.PackConstructorInitializers = FormatStyle::PCIS_BinPack; in TEST_F()
7100 FormatStyle OnePerLine = Style; in TEST_F()
7101 OnePerLine.PackConstructorInitializers = FormatStyle::PCIS_CurrentLine; in TEST_F()
7177 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
7188 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All; in TEST_F()
7198 Style.BreakInheritanceList = FormatStyle::BILS_BeforeColon; in TEST_F()
7204 Style.BreakInheritanceList = FormatStyle::BILS_BeforeComma; in TEST_F()
7210 Style.BreakInheritanceList = FormatStyle::BILS_AfterColon; in TEST_F()
7216 Style.BreakInheritanceList = FormatStyle::BILS_AfterComma; in TEST_F()
7295 FormatStyle OnePerLine = getLLVMStyle(); in TEST_F()
7296 OnePerLine.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
7411 FormatStyle Style = getLLVMStyle(); in TEST_F()
7412 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
7485 FormatStyle Style = getGoogleStyleWithColumns(47); in TEST_F()
7530 Style.BreakBeforeBraces = FormatStyle::BS_Allman; in TEST_F()
7537 Style.BreakBeforeBraces = FormatStyle::BS_Whitesmiths; in TEST_F()
7687 FormatStyle NoBinPacking = getGoogleStyle(); in TEST_F()
7719 FormatStyle NoBinPacking = getGoogleStyle(); in TEST_F()
7784 FormatStyle Style = getLLVMStyleWithColumns(15); in TEST_F()
8012 FormatStyle Style = getLLVMStyle(); in TEST_F()
8075 FormatStyle Style = getLLVMStyle(); in TEST_F()
8076 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
8104 Style.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
8145 FormatStyle Style = getLLVMStyleWithColumns(40); in TEST_F()
8149 Style.AlignAfterOpenBracket = FormatStyle::BAS_Align; in TEST_F()
8150 Style.AlignOperands = FormatStyle::OAS_DontAlign; in TEST_F()
8154 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
8155 Style.AlignOperands = FormatStyle::OAS_Align; in TEST_F()
8159 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
8160 Style.AlignOperands = FormatStyle::OAS_DontAlign; in TEST_F()
8257 FormatStyle NoBinPacking = getLLVMStyle(); in TEST_F()
8304 FormatStyle Style = getLLVMStyleWithColumns(70); in TEST_F()
8305 Style.AlignOperands = FormatStyle::OAS_Align; in TEST_F()
8420 Style.AlignOperands = FormatStyle::OAS_DontAlign; in TEST_F()
8453 getGoogleStyle(FormatStyle::LK_JavaScript))); in TEST_F()
8457 FormatStyle Style = getLLVMStyleWithColumns(70); in TEST_F()
8695 FormatStyle Style = getGoogleStyle(); in TEST_F()
8696 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
8792 FormatStyle Style = getLLVMStyle(); in TEST_F()
8794 Style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_None; in TEST_F()
8805 Style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_All; in TEST_F()
8828 Style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_TopLevelDefinitions; in TEST_F()
8842 Style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_TopLevel; in TEST_F()
8857 Style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_AllDefinitions; in TEST_F()
8965 Style.BreakBeforeBraces = FormatStyle::BS_Stroustrup; in TEST_F()
9018 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
9110 FormatStyle NoBreak = getLLVMStyle(); in TEST_F()
9112 FormatStyle Break = getLLVMStyle(); in TEST_F()
9424 FormatStyle NoBinPacking = getLLVMStyle(); in TEST_F()
9513 FormatStyle AlwaysBreak = getLLVMStyle(); in TEST_F()
9514 AlwaysBreak.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_Yes; in TEST_F()
9533 FormatStyle NeverBreak = getLLVMStyle(); in TEST_F()
9534 NeverBreak.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_No; in TEST_F()
9564 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Cpp); in TEST_F()
9615 FormatStyle Style = getLLVMStyle(); in TEST_F()
9616 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
9617 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_None; in TEST_F()
9624 Style.AlignAfterOpenBracket = FormatStyle::BAS_DontAlign; in TEST_F()
9625 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
9632 Style.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
9633 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_None; in TEST_F()
9642 Style.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
9643 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
9717 verifyFormat("A<A<int>> a;", getChromiumStyle(FormatStyle::LK_Cpp)); in TEST_F()
9723 FormatStyle Style = getLLVMStyle(); in TEST_F()
9815 FormatStyle Style = getLLVMStyle(); in TEST_F()
9816 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
9874 FormatStyle PASLeftStyle = getLLVMStyle(); in TEST_F()
9875 PASLeftStyle.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
9989 FormatStyle AlignLeft = getLLVMStyle(); in TEST_F()
9990 AlignLeft.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
10020 FormatStyle AlignMiddle = getLLVMStyle(); in TEST_F()
10021 AlignMiddle.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
10052 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
10067 FormatStyle BreakTemplate = getLLVMStyle(); in TEST_F()
10068 BreakTemplate.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_Yes; in TEST_F()
10100 FormatStyle AlignLeftBreakTemplate = getLLVMStyle(); in TEST_F()
10102 FormatStyle::BTDS_Yes; in TEST_F()
10103 AlignLeftBreakTemplate.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
10153 FormatStyle DerivePointerAlignment = getLLVMStyle(); in TEST_F()
10311 FormatStyle Left = getLLVMStyle(); in TEST_F()
10312 Left.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
10401 FormatStyle TypeMacros = getLLVMStyle(); in TEST_F()
10409 FormatStyle CustomQualifier = getLLVMStyle(); in TEST_F()
10454 FormatStyle Style = getLLVMStyle(); in TEST_F()
10455 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
10479 Style.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
10499 Style.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
10592 FormatStyle PointerMiddle = getLLVMStyle(); in TEST_F()
10593 PointerMiddle.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
10633 FormatStyle AfterType = getLLVMStyle(); in TEST_F()
10634 AfterType.AlwaysBreakAfterReturnType = FormatStyle::RTBS_All; in TEST_F()
10642 FormatStyle CustomAttrs = getLLVMStyle(); in TEST_F()
10665 CustomAttrs.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
10666 CustomAttrs.BreakBeforeBraces = FormatStyle::BS_Allman; in TEST_F()
10695 FormatStyle LongPointerRight = getLLVMStyleWithColumns(999); in TEST_F()
10696 FormatStyle LongPointerLeft = getLLVMStyleWithColumns(999); in TEST_F()
10697 LongPointerLeft.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
10710 FormatStyle CustomQualifier = getLLVMStyleWithColumns(999); in TEST_F()
10756 FormatStyle MultiLineFunctions = getLLVMStyle(); in TEST_F()
10757 MultiLineFunctions.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
10765 FormatStyle Style = getChromiumStyle(FormatStyle::LK_Cpp); in TEST_F()
10789 FormatStyle Style = getLLVMStyle(); in TEST_F()
10820 FormatStyle Style = getLLVMStyle(); in TEST_F()
10833 FormatStyle Style = getLLVMStyle(); in TEST_F()
10840 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
10845 Style.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
11132 FormatStyle Indented = getLLVMStyle(); in TEST_F()
11208 FormatStyle Style = getLLVMStyle(); in TEST_F()
11210 FormatStyle::ELBAMS_LogicalBlock); in TEST_F()
11260 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Never; in TEST_F()
11330 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Always; in TEST_F()
11401 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Leave; in TEST_F()
11498 FormatStyle NoEmptyLines = getLLVMStyle(); in TEST_F()
11513 NoEmptyLines.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Never; in TEST_F()
11525 NoEmptyLines.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Always; in TEST_F()
11543 FormatStyle Style = getLLVMStyle(); in TEST_F()
11544 EXPECT_EQ(Style.EmptyLineAfterAccessModifier, FormatStyle::ELAAMS_Never); in TEST_F()
11583 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Always; in TEST_F()
11626 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Leave; in TEST_F()
11805 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Always; in TEST_F()
11861 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Always; in TEST_F()
11889 FormatStyle Style = getLLVMStyle(); in TEST_F()
11890 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Always; in TEST_F()
11891 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Always; in TEST_F()
11901 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Never; in TEST_F()
11902 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Never; in TEST_F()
11915 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Leave; in TEST_F()
11916 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Leave; in TEST_F()
11956 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Always; in TEST_F()
11957 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Leave; in TEST_F()
11972 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Leave; in TEST_F()
11973 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Always; in TEST_F()
11987 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Leave; in TEST_F()
11988 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Never; in TEST_F()
12002 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Never; in TEST_F()
12003 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Leave; in TEST_F()
12015 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Always; in TEST_F()
12016 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Never; in TEST_F()
12030 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_Never; in TEST_F()
12031 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Always; in TEST_F()
12043 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_LogicalBlock; in TEST_F()
12044 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Always; in TEST_F()
12056 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_LogicalBlock; in TEST_F()
12057 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Leave; in TEST_F()
12069 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_LogicalBlock; in TEST_F()
12070 Style.EmptyLineAfterAccessModifier = FormatStyle::ELAAMS_Never; in TEST_F()
12114 FormatStyle NoColumnLimit = getLLVMStyleWithColumns(0); in TEST_F()
12160 FormatStyle Style = getLLVMStyle(); in TEST_F()
12175 FormatStyle NoBinPacking = getLLVMStyle(); in TEST_F()
12256 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Cpp); in TEST_F()
12386 FormatStyle AvoidBreakingFirstArgument = getLLVMStyle(); in TEST_F()
12420 FormatStyle NoBinPacking = getLLVMStyle(); in TEST_F()
12456 NoBinPacking.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
12507 FormatStyle BreakBeforeLambdaBody = getLLVMStyle(); in TEST_F()
12508 BreakBeforeLambdaBody.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
12516 FormatStyle ExtraSpaces = getLLVMStyle(); in TEST_F()
12588 FormatStyle SpaceBeforeBrace = getLLVMStyle(); in TEST_F()
12593 FormatStyle SpaceBetweenBraces = getLLVMStyle(); in TEST_F()
12594 SpaceBetweenBraces.SpacesInAngles = FormatStyle::SIAS_Always; in TEST_F()
12778 FormatStyle DoNotMerge = getLLVMStyle(); in TEST_F()
12779 DoNotMerge.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
12824 FormatStyle NoColumnLimit = getLLVMStyleWithColumns(0); in TEST_F()
12835 FormatStyle DoNotMergeNoColumnLimit = NoColumnLimit; in TEST_F()
12837 FormatStyle::SFS_None; in TEST_F()
12868 FormatStyle MergeEmptyOnly = getLLVMStyle(); in TEST_F()
12869 MergeEmptyOnly.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty; in TEST_F()
12887 MergeEmptyOnly.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
12897 FormatStyle MergeInlineOnly = getLLVMStyle(); in TEST_F()
12898 MergeInlineOnly.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline; in TEST_F()
12938 MergeInlineOnly.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13001 FormatStyle MergeInlineOnly = getLLVMStyle(); in TEST_F()
13003 FormatStyle::SFS_InlineOnly; in TEST_F()
13023 MergeInlineOnly.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13047 FormatStyle Style = getLLVMStyleWithColumns(40); in TEST_F()
13048 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
13049 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13067 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty; in TEST_F()
13078 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline; in TEST_F()
13100 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All; in TEST_F()
13114 FormatStyle Style = getLLVMStyleWithColumns(40); in TEST_F()
13115 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
13116 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13144 FormatStyle Style = getLLVMStyle(); in TEST_F()
13145 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All; in TEST_F()
13155 FormatStyle Style = getLLVMStyle(); in TEST_F()
13156 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13261 FormatStyle Style = getLLVMStyle(); in TEST_F()
13262 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13288 FormatStyle Style = getLLVMStyle(); in TEST_F()
13289 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13311 FormatStyle Style = getLLVMStyle(); in TEST_F()
13312 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13339 FormatStyle Style = getLLVMStyle(); in TEST_F()
13370 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
13497 FormatStyle AllowsMergedIf = getGoogleStyle(); in TEST_F()
13499 FormatStyle::SIS_WithoutElse; in TEST_F()
13505 FormatStyle ShortMergedIf = AllowsMergedIf; in TEST_F()
13562 getChromiumStyle(FormatStyle::LK_Cpp)); in TEST_F()
13649 FormatStyle Style = getLLVMStyle(); in TEST_F()
13828 FormatStyle Style = getLLVMStyleWithColumns(12); in TEST_F()
13832 FormatStyle AlignLeft = getLLVMStyleWithColumns(12); in TEST_F()
13833 AlignLeft.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
13848 FormatStyle NoEmptyLines = getLLVMStyleWithColumns(80); in TEST_F()
13893 FormatStyle Style = getGoogleStyleWithColumns(15); in TEST_F()
13903 FormatStyle Style = getLLVMStyleWithColumns(20); in TEST_F()
14023 FormatStyle Style = getLLVMStyleWithColumns(25); in TEST_F()
14024 Style.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
14103 FormatStyle Style = getLLVMStyle(); in TEST_F()
14104 Style.Standard = FormatStyle::LS_Cpp03; in TEST_F()
14110 FormatStyle Style = getLLVMStyle(); in TEST_F()
14117 Style.Standard = FormatStyle::LS_Cpp17; in TEST_F()
14229 FormatStyle EightIndent = getLLVMStyleWithColumns(18); in TEST_F()
14257 FormatStyle Tab = getLLVMStyleWithColumns(42); in TEST_F()
14259 Tab.UseTab = FormatStyle::UT_Always; in TEST_F()
14260 Tab.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
14293 FormatStyle TabAlignment = Tab; in TEST_F()
14295 TabAlignment.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
14299 TabAlignment.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
14303 TabAlignment.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
14350 TabAlignment.UseTab = FormatStyle::UT_ForIndentation; in TEST_F()
14351 TabAlignment.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
14357 TabAlignment.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
14363 TabAlignment.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
14370 Tab.UseTab = FormatStyle::UT_ForIndentation; in TEST_F()
14479 FormatStyle TabNoBreak = Tab; in TEST_F()
14493 Tab.UseTab = FormatStyle::UT_Never; in TEST_F()
14538 Tab.UseTab = FormatStyle::UT_ForContinuationAndIndentation; in TEST_F()
14777 Tab.UseTab = FormatStyle::UT_AlignWithSpaces; in TEST_F()
15015 Tab.AlignOperands = FormatStyle::OAS_Align; in TEST_F()
15027 Tab.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
15028 Tab.AlignOperands = FormatStyle::OAS_AlignAfterOperator; in TEST_F()
15035 FormatStyle Tab = getLLVMStyleWithColumns(42); in TEST_F()
15037 Tab.UseTab = FormatStyle::UT_Never; in TEST_F()
15055 Tab.UseTab = FormatStyle::UT_ForIndentation; in TEST_F()
15072 Tab.UseTab = FormatStyle::UT_ForContinuationAndIndentation; in TEST_F()
15089 Tab.UseTab = FormatStyle::UT_AlignWithSpaces; in TEST_F()
15106 Tab.UseTab = FormatStyle::UT_Always; in TEST_F()
15158 FormatStyle NoSpace = getLLVMStyle(); in TEST_F()
15159 NoSpace.SpaceBeforeParens = FormatStyle::SBPO_Never; in TEST_F()
15197 FormatStyle Space = getLLVMStyle(); in TEST_F()
15198 Space.SpaceBeforeParens = FormatStyle::SBPO_Always; in TEST_F()
15253 FormatStyle SomeSpace = getLLVMStyle(); in TEST_F()
15254 SomeSpace.SpaceBeforeParens = FormatStyle::SBPO_NonEmptyParentheses; in TEST_F()
15310 FormatStyle SpaceControlStatements = getLLVMStyle(); in TEST_F()
15311 SpaceControlStatements.SpaceBeforeParens = FormatStyle::SBPO_Custom; in TEST_F()
15336 FormatStyle SpaceFuncDecl = getLLVMStyle(); in TEST_F()
15337 SpaceFuncDecl.SpaceBeforeParens = FormatStyle::SBPO_Custom; in TEST_F()
15371 FormatStyle SpaceFuncDef = getLLVMStyle(); in TEST_F()
15372 SpaceFuncDef.SpaceBeforeParens = FormatStyle::SBPO_Custom; in TEST_F()
15405 FormatStyle SpaceIfMacros = getLLVMStyle(); in TEST_F()
15408 SpaceIfMacros.SpaceBeforeParens = FormatStyle::SBPO_Custom; in TEST_F()
15414 FormatStyle SpaceForeachMacros = getLLVMStyle(); in TEST_F()
15416 FormatStyle::SBS_Never); in TEST_F()
15418 SpaceForeachMacros.SpaceBeforeParens = FormatStyle::SBPO_Custom; in TEST_F()
15434 FormatStyle SomeSpace2 = getLLVMStyle(); in TEST_F()
15435 SomeSpace2.SpaceBeforeParens = FormatStyle::SBPO_Custom; in TEST_F()
15490 FormatStyle SpaceAfterOverloadedOperator = getLLVMStyle(); in TEST_F()
15491 SpaceAfterOverloadedOperator.SpaceBeforeParens = FormatStyle::SBPO_Custom; in TEST_F()
15509 SpaceAfterRequires.SpaceBeforeParens = FormatStyle::SBPO_Custom; in TEST_F()
15588 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
15599 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
15723 Spaces.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
15753 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
15776 FormatStyle NoSpaceStyle = getLLVMStyle(); in TEST_F()
15787 FormatStyle Space = getLLVMStyle(); in TEST_F()
15815 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
15847 FormatStyle CtorInitializerStyle = getLLVMStyleWithColumns(30); in TEST_F()
15876 FormatStyle::BCIS_AfterColon; in TEST_F()
15882 FormatStyle::BCIS_BeforeComma; in TEST_F()
15888 FormatStyle::BCIS_BeforeColon; in TEST_F()
15899 FormatStyle InheritanceStyle = getLLVMStyleWithColumns(30); in TEST_F()
15927 InheritanceStyle.BreakInheritanceList = FormatStyle::BILS_AfterComma; in TEST_F()
15933 InheritanceStyle.BreakInheritanceList = FormatStyle::BILS_AfterColon; in TEST_F()
15939 InheritanceStyle.BreakInheritanceList = FormatStyle::BILS_BeforeComma; in TEST_F()
15945 InheritanceStyle.BreakInheritanceList = FormatStyle::BILS_BeforeColon; in TEST_F()
15957 FormatStyle ForLoopStyle = getLLVMStyle(); in TEST_F()
15986 FormatStyle CaseStyle = getLLVMStyle(); in TEST_F()
16010 FormatStyle NoSpaceStyle = getLLVMStyle(); in TEST_F()
16042 FormatStyle InvertedSpaceStyle = getLLVMStyle(); in TEST_F()
16080 FormatStyle Style = getLLVMStyle(); in TEST_F()
16082 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
16083 Style.SpaceAroundPointerQualifiers = FormatStyle::SAPQ_Default; in TEST_F()
16088 Style.PointerAlignment = FormatStyle::Pointers; \ in TEST_F()
16089 Style.SpaceAroundPointerQualifiers = FormatStyle::Qualifiers; \ in TEST_F()
16132 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
16134 Spaces.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
16135 Spaces.SpaceAroundPointerQualifiers = FormatStyle::SAPQ_Default; in TEST_F()
16141 Spaces.SpaceAroundPointerQualifiers = FormatStyle::SAPQ_Before; in TEST_F()
16149 Spaces.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
16150 Spaces.SpaceAroundPointerQualifiers = FormatStyle::SAPQ_Before; in TEST_F()
16157 Spaces.SpaceAroundPointerQualifiers = FormatStyle::SAPQ_After; in TEST_F()
16165 Spaces.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
16166 Spaces.SpaceAroundPointerQualifiers = FormatStyle::SAPQ_After; in TEST_F()
16175 FormatStyle Style = getLLVMStyle(); in TEST_F()
16421 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
16496 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
16560 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
16628 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
16716 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
16911 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_DontAlign; in TEST_F()
16918 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
16925 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_Right; in TEST_F()
16968 Alignment.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
16974 Alignment.BreakBeforeBinaryOperators = FormatStyle::BOS_None; in TEST_F()
17032 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
17145 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
17234 FormatStyle AlignmentWithPenalty = getLLVMStyle(); in TEST_F()
17295 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_DontAlign; in TEST_F()
17302 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
17309 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_Right; in TEST_F()
17352 Alignment.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
17358 Alignment.BreakBeforeBinaryOperators = FormatStyle::BOS_None; in TEST_F()
17470 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
17502 Alignment.BitFieldColonSpacing = FormatStyle::BFCS_None; in TEST_F()
17507 Alignment.BitFieldColonSpacing = FormatStyle::BFCS_Before; in TEST_F()
17512 Alignment.BitFieldColonSpacing = FormatStyle::BFCS_After; in TEST_F()
17527 FormatStyle Alignment = getLLVMStyle(); in TEST_F()
17529 Alignment.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
17754 FormatStyle AlignmentLeft = Alignment; in TEST_F()
17755 AlignmentLeft.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
17814 FormatStyle AlignmentMiddle = Alignment; in TEST_F()
17815 AlignmentMiddle.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
17874 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_DontAlign; in TEST_F()
17881 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
17888 Alignment.AlignEscapedNewlines = FormatStyle::ENAS_Right; in TEST_F()
17929 Alignment.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
17935 Alignment.BreakBeforeBinaryOperators = FormatStyle::BOS_None; in TEST_F()
18022 Alignment.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
18029 Alignment.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
18040 FormatStyle Style = getMozillaStyle(); in TEST_F()
18046 Alignment.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
18062 Alignment.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
18079 FormatStyle BracedAlign = getLLVMStyle(); in TEST_F()
18108 FormatStyle::AlignConsecutiveStyle( in TEST_F()
18113 FormatStyle::AlignConsecutiveStyle({})); in TEST_F()
18299 FormatStyle LinuxBraceStyle = getLLVMStyle(); in TEST_F()
18300 LinuxBraceStyle.BreakBeforeBraces = FormatStyle::BS_Linux; in TEST_F()
18340 FormatStyle MozillaBraceStyle = getLLVMStyle(); in TEST_F()
18341 MozillaBraceStyle.BreakBeforeBraces = FormatStyle::BS_Mozilla; in TEST_F()
18385 FormatStyle StroustrupBraceStyle = getLLVMStyle(); in TEST_F()
18386 StroustrupBraceStyle.BreakBeforeBraces = FormatStyle::BS_Stroustrup; in TEST_F()
18447 FormatStyle AllmanBraceStyle = getLLVMStyle(); in TEST_F()
18448 AllmanBraceStyle.BreakBeforeBraces = FormatStyle::BS_Allman; in TEST_F()
18590 FormatStyle::SLS_All); in TEST_F()
18611 AllmanBraceStyle.AllowShortLambdasOnASingleLine = FormatStyle::SLS_None; in TEST_F()
18639 AllmanBraceStyle.AllowShortLambdasOnASingleLine = FormatStyle::SLS_All; in TEST_F()
18681 FormatStyle BreakBeforeBraceShortIfs = AllmanBraceStyle; in TEST_F()
18683 FormatStyle::SIS_WithoutElse; in TEST_F()
18735 FormatStyle WhitesmithsBraceStyle = getLLVMStyleWithColumns(0); in TEST_F()
18736 WhitesmithsBraceStyle.BreakBeforeBraces = FormatStyle::BS_Whitesmiths; in TEST_F()
18740 FormatStyle::SFS_Empty; in TEST_F()
18741 WhitesmithsBraceStyle.AllowShortLambdasOnASingleLine = FormatStyle::SLS_None; in TEST_F()
18767 WhitesmithsBraceStyle.NamespaceIndentation = FormatStyle::NI_None; in TEST_F()
18819 WhitesmithsBraceStyle.NamespaceIndentation = FormatStyle::NI_Inner; in TEST_F()
18847 WhitesmithsBraceStyle.NamespaceIndentation = FormatStyle::NI_All; in TEST_F()
19101 FormatStyle BreakBeforeBraceShortIfs = WhitesmithsBraceStyle; in TEST_F()
19103 FormatStyle::SIS_OnlyFirstIf; in TEST_F()
19129 FormatStyle GNUBraceStyle = getLLVMStyle(); in TEST_F()
19130 GNUBraceStyle.BreakBeforeBraces = FormatStyle::BS_GNU; in TEST_F()
19253 FormatStyle WebKitBraceStyle = getLLVMStyle(); in TEST_F()
19254 WebKitBraceStyle.BreakBeforeBraces = FormatStyle::BS_WebKit; in TEST_F()
19302 Style.AlignArrayOfStructures = FormatStyle::AIAS_Right; in TEST_F()
19458 Style.AlignArrayOfStructures = FormatStyle::AIAS_Right; in TEST_F()
19488 Style.AlignArrayOfStructures = FormatStyle::AIAS_Right; in TEST_F()
19531 Style.AlignArrayOfStructures = FormatStyle::AIAS_Left; in TEST_F()
19691 Style.AlignArrayOfStructures = FormatStyle::AIAS_Left; in TEST_F()
19738 FormatStyle Style = getLLVMStyleWithColumns(20); in TEST_F()
19863 FormatStyle Style = getLLVMStyle(); in TEST_F()
19877 FormatStyle Style = getLLVMStyle(); in TEST_F()
19893 FormatStyle Style = getLLVMStyle(); in TEST_F()
19928 SmallVector<FormatStyle, 3> Styles; in TEST_F()
19932 EXPECT_TRUE(getPredefinedStyle("LLVM", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
19933 EXPECT_TRUE(getPredefinedStyle("lLvM", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
19937 EXPECT_TRUE(getPredefinedStyle("Google", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
19938 EXPECT_TRUE(getPredefinedStyle("gOOgle", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
19941 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
19943 getPredefinedStyle("Google", FormatStyle::LK_JavaScript, &Styles[1])); in TEST_F()
19945 getPredefinedStyle("gOOgle", FormatStyle::LK_JavaScript, &Styles[2])); in TEST_F()
19948 Styles[0] = getChromiumStyle(FormatStyle::LK_Cpp); in TEST_F()
19949 EXPECT_TRUE(getPredefinedStyle("Chromium", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
19950 EXPECT_TRUE(getPredefinedStyle("cHRoMiUM", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
19954 EXPECT_TRUE(getPredefinedStyle("Mozilla", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
19955 EXPECT_TRUE(getPredefinedStyle("moZILla", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
19959 EXPECT_TRUE(getPredefinedStyle("WebKit", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
19960 EXPECT_TRUE(getPredefinedStyle("wEbKit", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
19964 EXPECT_TRUE(getPredefinedStyle("GNU", FormatStyle::LK_Cpp, &Styles[1])); in TEST_F()
19965 EXPECT_TRUE(getPredefinedStyle("gnU", FormatStyle::LK_Cpp, &Styles[2])); in TEST_F()
19968 EXPECT_FALSE(getPredefinedStyle("qwerty", FormatStyle::LK_Cpp, &Styles[0])); in TEST_F()
19972 SmallVector<FormatStyle, 8> Styles; in TEST_F()
19981 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
19983 Styles[1].Language = FormatStyle::LK_JavaScript; in TEST_F()
19987 Styles[2].Language = FormatStyle::LK_JavaScript; in TEST_F()
19994 Styles[3].Language = FormatStyle::LK_JavaScript; in TEST_F()
20001 Styles[4].Language = FormatStyle::LK_JavaScript; in TEST_F()
20042 FormatStyle Style = {}; in TEST_F()
20043 Style.Language = FormatStyle::LK_Cpp; in TEST_F()
20125 FormatStyle Style = {}; in TEST_F()
20126 Style.Language = FormatStyle::LK_Cpp; in TEST_F()
20149 Style.QualifierAlignment = FormatStyle::QAS_Right; in TEST_F()
20151 FormatStyle::QAS_Leave); in TEST_F()
20153 FormatStyle::QAS_Right); in TEST_F()
20155 FormatStyle::QAS_Left); in TEST_F()
20157 FormatStyle::QAS_Custom); in TEST_F()
20173 FormatStyle::AlignConsecutiveStyle( \ in TEST_F()
20178 FormatStyle::AlignConsecutiveStyle( \ in TEST_F()
20183 FormatStyle::AlignConsecutiveStyle( \ in TEST_F()
20188 FormatStyle::AlignConsecutiveStyle( \ in TEST_F()
20194 FormatStyle::AlignConsecutiveStyle( \ in TEST_F()
20199 FormatStyle::AlignConsecutiveStyle( \ in TEST_F()
20218 Style.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
20220 FormatStyle::PAS_Left); in TEST_F()
20222 FormatStyle::PAS_Right); in TEST_F()
20224 FormatStyle::PAS_Middle); in TEST_F()
20225 Style.ReferenceAlignment = FormatStyle::RAS_Middle; in TEST_F()
20227 FormatStyle::RAS_Pointer); in TEST_F()
20229 FormatStyle::RAS_Left); in TEST_F()
20231 FormatStyle::RAS_Right); in TEST_F()
20233 FormatStyle::RAS_Middle); in TEST_F()
20236 FormatStyle::PAS_Left); in TEST_F()
20238 FormatStyle::PAS_Right); in TEST_F()
20240 FormatStyle::PAS_Middle); in TEST_F()
20242 Style.Standard = FormatStyle::LS_Auto; in TEST_F()
20243 CHECK_PARSE("Standard: c++03", Standard, FormatStyle::LS_Cpp03); in TEST_F()
20244 CHECK_PARSE("Standard: c++11", Standard, FormatStyle::LS_Cpp11); in TEST_F()
20245 CHECK_PARSE("Standard: c++14", Standard, FormatStyle::LS_Cpp14); in TEST_F()
20246 CHECK_PARSE("Standard: c++17", Standard, FormatStyle::LS_Cpp17); in TEST_F()
20247 CHECK_PARSE("Standard: c++20", Standard, FormatStyle::LS_Cpp20); in TEST_F()
20248 CHECK_PARSE("Standard: Auto", Standard, FormatStyle::LS_Auto); in TEST_F()
20249 CHECK_PARSE("Standard: Latest", Standard, FormatStyle::LS_Latest); in TEST_F()
20251 CHECK_PARSE("Standard: Cpp03", Standard, FormatStyle::LS_Cpp03); in TEST_F()
20252 CHECK_PARSE("Standard: Cpp11", Standard, FormatStyle::LS_Latest); in TEST_F()
20253 CHECK_PARSE("Standard: C++03", Standard, FormatStyle::LS_Cpp03); in TEST_F()
20254 CHECK_PARSE("Standard: C++11", Standard, FormatStyle::LS_Cpp11); in TEST_F()
20256 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
20258 BreakBeforeBinaryOperators, FormatStyle::BOS_NonAssignment); in TEST_F()
20260 FormatStyle::BOS_None); in TEST_F()
20262 FormatStyle::BOS_All); in TEST_F()
20265 FormatStyle::BOS_None); in TEST_F()
20267 FormatStyle::BOS_All); in TEST_F()
20269 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeColon; in TEST_F()
20271 BreakConstructorInitializers, FormatStyle::BCIS_BeforeComma); in TEST_F()
20273 BreakConstructorInitializers, FormatStyle::BCIS_AfterColon); in TEST_F()
20275 BreakConstructorInitializers, FormatStyle::BCIS_BeforeColon); in TEST_F()
20278 BreakConstructorInitializers, FormatStyle::BCIS_BeforeComma); in TEST_F()
20280 Style.BreakInheritanceList = FormatStyle::BILS_BeforeColon; in TEST_F()
20282 FormatStyle::BILS_AfterComma); in TEST_F()
20284 FormatStyle::BILS_BeforeComma); in TEST_F()
20286 FormatStyle::BILS_AfterColon); in TEST_F()
20288 FormatStyle::BILS_BeforeColon); in TEST_F()
20291 FormatStyle::BILS_BeforeComma); in TEST_F()
20293 Style.PackConstructorInitializers = FormatStyle::PCIS_BinPack; in TEST_F()
20295 FormatStyle::PCIS_Never); in TEST_F()
20297 PackConstructorInitializers, FormatStyle::PCIS_BinPack); in TEST_F()
20299 PackConstructorInitializers, FormatStyle::PCIS_CurrentLine); in TEST_F()
20301 PackConstructorInitializers, FormatStyle::PCIS_NextLine); in TEST_F()
20306 PackConstructorInitializers, FormatStyle::PCIS_CurrentLine); in TEST_F()
20307 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
20310 PackConstructorInitializers, FormatStyle::PCIS_BinPack); in TEST_F()
20313 PackConstructorInitializers, FormatStyle::PCIS_NextLine); in TEST_F()
20314 Style.PackConstructorInitializers = FormatStyle::PCIS_BinPack; in TEST_F()
20317 PackConstructorInitializers, FormatStyle::PCIS_CurrentLine); in TEST_F()
20319 Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_LogicalBlock; in TEST_F()
20321 EmptyLineBeforeAccessModifier, FormatStyle::ELBAMS_Never); in TEST_F()
20323 EmptyLineBeforeAccessModifier, FormatStyle::ELBAMS_Leave); in TEST_F()
20325 EmptyLineBeforeAccessModifier, FormatStyle::ELBAMS_LogicalBlock); in TEST_F()
20327 EmptyLineBeforeAccessModifier, FormatStyle::ELBAMS_Always); in TEST_F()
20329 Style.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
20331 FormatStyle::BAS_Align); in TEST_F()
20333 FormatStyle::BAS_DontAlign); in TEST_F()
20335 FormatStyle::BAS_AlwaysBreak); in TEST_F()
20337 FormatStyle::BAS_BlockIndent); in TEST_F()
20340 FormatStyle::BAS_DontAlign); in TEST_F()
20342 FormatStyle::BAS_Align); in TEST_F()
20344 Style.AlignEscapedNewlines = FormatStyle::ENAS_Left; in TEST_F()
20346 FormatStyle::ENAS_DontAlign); in TEST_F()
20348 FormatStyle::ENAS_Left); in TEST_F()
20350 FormatStyle::ENAS_Right); in TEST_F()
20353 FormatStyle::ENAS_Left); in TEST_F()
20355 FormatStyle::ENAS_Right); in TEST_F()
20357 Style.AlignOperands = FormatStyle::OAS_Align; in TEST_F()
20359 FormatStyle::OAS_DontAlign); in TEST_F()
20360 CHECK_PARSE("AlignOperands: Align", AlignOperands, FormatStyle::OAS_Align); in TEST_F()
20362 FormatStyle::OAS_AlignAfterOperator); in TEST_F()
20365 FormatStyle::OAS_DontAlign); in TEST_F()
20366 CHECK_PARSE("AlignOperands: true", AlignOperands, FormatStyle::OAS_Align); in TEST_F()
20368 Style.UseTab = FormatStyle::UT_ForIndentation; in TEST_F()
20369 CHECK_PARSE("UseTab: Never", UseTab, FormatStyle::UT_Never); in TEST_F()
20370 CHECK_PARSE("UseTab: ForIndentation", UseTab, FormatStyle::UT_ForIndentation); in TEST_F()
20371 CHECK_PARSE("UseTab: Always", UseTab, FormatStyle::UT_Always); in TEST_F()
20373 FormatStyle::UT_ForContinuationAndIndentation); in TEST_F()
20375 FormatStyle::UT_AlignWithSpaces); in TEST_F()
20377 CHECK_PARSE("UseTab: false", UseTab, FormatStyle::UT_Never); in TEST_F()
20378 CHECK_PARSE("UseTab: true", UseTab, FormatStyle::UT_Always); in TEST_F()
20380 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Empty; in TEST_F()
20382 AllowShortBlocksOnASingleLine, FormatStyle::SBS_Never); in TEST_F()
20384 AllowShortBlocksOnASingleLine, FormatStyle::SBS_Empty); in TEST_F()
20386 AllowShortBlocksOnASingleLine, FormatStyle::SBS_Always); in TEST_F()
20389 AllowShortBlocksOnASingleLine, FormatStyle::SBS_Never); in TEST_F()
20391 AllowShortBlocksOnASingleLine, FormatStyle::SBS_Always); in TEST_F()
20393 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline; in TEST_F()
20395 AllowShortFunctionsOnASingleLine, FormatStyle::SFS_None); in TEST_F()
20397 AllowShortFunctionsOnASingleLine, FormatStyle::SFS_Inline); in TEST_F()
20399 AllowShortFunctionsOnASingleLine, FormatStyle::SFS_Empty); in TEST_F()
20401 AllowShortFunctionsOnASingleLine, FormatStyle::SFS_All); in TEST_F()
20404 AllowShortFunctionsOnASingleLine, FormatStyle::SFS_None); in TEST_F()
20406 AllowShortFunctionsOnASingleLine, FormatStyle::SFS_All); in TEST_F()
20408 Style.SpaceAroundPointerQualifiers = FormatStyle::SAPQ_Both; in TEST_F()
20410 SpaceAroundPointerQualifiers, FormatStyle::SAPQ_Default); in TEST_F()
20412 SpaceAroundPointerQualifiers, FormatStyle::SAPQ_Before); in TEST_F()
20414 SpaceAroundPointerQualifiers, FormatStyle::SAPQ_After); in TEST_F()
20416 SpaceAroundPointerQualifiers, FormatStyle::SAPQ_Both); in TEST_F()
20418 Style.SpaceBeforeParens = FormatStyle::SBPO_Always; in TEST_F()
20420 FormatStyle::SBPO_Never); in TEST_F()
20422 FormatStyle::SBPO_Always); in TEST_F()
20424 FormatStyle::SBPO_ControlStatements); in TEST_F()
20427 FormatStyle::SBPO_ControlStatementsExceptControlMacros); in TEST_F()
20429 FormatStyle::SBPO_NonEmptyParentheses); in TEST_F()
20431 FormatStyle::SBPO_Custom); in TEST_F()
20434 FormatStyle::SBPO_Never); in TEST_F()
20436 FormatStyle::SBPO_ControlStatements); in TEST_F()
20439 FormatStyle::SBPO_ControlStatementsExceptControlMacros); in TEST_F()
20442 FormatStyle BaseStyle = getLLVMStyle(); in TEST_F()
20446 Style.BreakBeforeBraces = FormatStyle::BS_Stroustrup; in TEST_F()
20448 FormatStyle::BS_Attach); in TEST_F()
20450 FormatStyle::BS_Linux); in TEST_F()
20452 FormatStyle::BS_Mozilla); in TEST_F()
20454 FormatStyle::BS_Stroustrup); in TEST_F()
20456 FormatStyle::BS_Allman); in TEST_F()
20458 FormatStyle::BS_Whitesmiths); in TEST_F()
20459 CHECK_PARSE("BreakBeforeBraces: GNU", BreakBeforeBraces, FormatStyle::BS_GNU); in TEST_F()
20461 FormatStyle::BS_WebKit); in TEST_F()
20463 FormatStyle::BS_Custom); in TEST_F()
20465 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Never; in TEST_F()
20469 FormatStyle::BWACS_MultiLine); in TEST_F()
20472 BraceWrapping.AfterControlStatement, FormatStyle::BWACS_Always); in TEST_F()
20475 BraceWrapping.AfterControlStatement, FormatStyle::BWACS_Never); in TEST_F()
20479 BraceWrapping.AfterControlStatement, FormatStyle::BWACS_Always); in TEST_F()
20482 BraceWrapping.AfterControlStatement, FormatStyle::BWACS_Never); in TEST_F()
20484 Style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_All; in TEST_F()
20486 FormatStyle::RTBS_None); in TEST_F()
20488 FormatStyle::RTBS_All); in TEST_F()
20490 AlwaysBreakAfterReturnType, FormatStyle::RTBS_TopLevel); in TEST_F()
20492 AlwaysBreakAfterReturnType, FormatStyle::RTBS_AllDefinitions); in TEST_F()
20495 FormatStyle::RTBS_TopLevelDefinitions); in TEST_F()
20497 Style.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_Yes; in TEST_F()
20499 AlwaysBreakTemplateDeclarations, FormatStyle::BTDS_No); in TEST_F()
20501 AlwaysBreakTemplateDeclarations, FormatStyle::BTDS_MultiLine); in TEST_F()
20503 AlwaysBreakTemplateDeclarations, FormatStyle::BTDS_Yes); in TEST_F()
20505 AlwaysBreakTemplateDeclarations, FormatStyle::BTDS_MultiLine); in TEST_F()
20507 AlwaysBreakTemplateDeclarations, FormatStyle::BTDS_Yes); in TEST_F()
20509 Style.AlwaysBreakAfterDefinitionReturnType = FormatStyle::DRTBS_All; in TEST_F()
20511 AlwaysBreakAfterDefinitionReturnType, FormatStyle::DRTBS_None); in TEST_F()
20513 AlwaysBreakAfterDefinitionReturnType, FormatStyle::DRTBS_All); in TEST_F()
20516 FormatStyle::DRTBS_TopLevel); in TEST_F()
20518 Style.NamespaceIndentation = FormatStyle::NI_All; in TEST_F()
20520 FormatStyle::NI_None); in TEST_F()
20522 FormatStyle::NI_Inner); in TEST_F()
20524 FormatStyle::NI_All); in TEST_F()
20526 Style.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_OnlyFirstIf; in TEST_F()
20528 AllowShortIfStatementsOnASingleLine, FormatStyle::SIS_Never); in TEST_F()
20531 FormatStyle::SIS_WithoutElse); in TEST_F()
20534 FormatStyle::SIS_OnlyFirstIf); in TEST_F()
20537 FormatStyle::SIS_AllIfsAndElse); in TEST_F()
20540 FormatStyle::SIS_OnlyFirstIf); in TEST_F()
20542 AllowShortIfStatementsOnASingleLine, FormatStyle::SIS_Never); in TEST_F()
20545 FormatStyle::SIS_WithoutElse); in TEST_F()
20547 Style.IndentExternBlock = FormatStyle::IEBS_NoIndent; in TEST_F()
20549 FormatStyle::IEBS_AfterExternBlock); in TEST_F()
20551 FormatStyle::IEBS_Indent); in TEST_F()
20553 FormatStyle::IEBS_NoIndent); in TEST_F()
20555 FormatStyle::IEBS_Indent); in TEST_F()
20557 FormatStyle::IEBS_NoIndent); in TEST_F()
20559 Style.BitFieldColonSpacing = FormatStyle::BFCS_None; in TEST_F()
20561 FormatStyle::BFCS_Both); in TEST_F()
20563 FormatStyle::BFCS_None); in TEST_F()
20565 FormatStyle::BFCS_Before); in TEST_F()
20567 FormatStyle::BFCS_After); in TEST_F()
20569 Style.SortJavaStaticImport = FormatStyle::SJSIO_Before; in TEST_F()
20571 FormatStyle::SJSIO_After); in TEST_F()
20573 FormatStyle::SJSIO_Before); in TEST_F()
20643 Style.SortIncludes = FormatStyle::SI_Never; in TEST_F()
20645 FormatStyle::SI_CaseSensitive); in TEST_F()
20646 CHECK_PARSE("SortIncludes: false", SortIncludes, FormatStyle::SI_Never); in TEST_F()
20648 FormatStyle::SI_CaseInsensitive); in TEST_F()
20650 FormatStyle::SI_CaseSensitive); in TEST_F()
20651 CHECK_PARSE("SortIncludes: Never", SortIncludes, FormatStyle::SI_Never); in TEST_F()
20654 std::vector<FormatStyle::RawStringFormat> ExpectedRawStringFormats = { in TEST_F()
20656 FormatStyle::LK_TextProto, in TEST_F()
20663 FormatStyle::LK_Cpp, in TEST_F()
20709 Style.SpacesInAngles = FormatStyle::SIAS_Always; in TEST_F()
20710 CHECK_PARSE("SpacesInAngles: Never", SpacesInAngles, FormatStyle::SIAS_Never); in TEST_F()
20712 FormatStyle::SIAS_Always); in TEST_F()
20713 CHECK_PARSE("SpacesInAngles: Leave", SpacesInAngles, FormatStyle::SIAS_Leave); in TEST_F()
20715 CHECK_PARSE("SpacesInAngles: false", SpacesInAngles, FormatStyle::SIAS_Never); in TEST_F()
20716 CHECK_PARSE("SpacesInAngles: true", SpacesInAngles, FormatStyle::SIAS_Always); in TEST_F()
20719 FormatStyle::RCPS_WithPreceding); in TEST_F()
20721 FormatStyle::RCPS_WithFollowing); in TEST_F()
20723 FormatStyle::RCPS_SingleLine); in TEST_F()
20725 FormatStyle::RCPS_OwnLine); in TEST_F()
20728 BreakBeforeConceptDeclarations, FormatStyle::BBCDS_Never); in TEST_F()
20730 BreakBeforeConceptDeclarations, FormatStyle::BBCDS_Always); in TEST_F()
20732 BreakBeforeConceptDeclarations, FormatStyle::BBCDS_Allowed); in TEST_F()
20735 BreakBeforeConceptDeclarations, FormatStyle::BBCDS_Always); in TEST_F()
20737 BreakBeforeConceptDeclarations, FormatStyle::BBCDS_Allowed); in TEST_F()
20741 FormatStyle Style = {}; in TEST_F()
20742 Style.Language = FormatStyle::LK_Cpp; in TEST_F()
20750 FormatStyle BinPackedTCS = {}; in TEST_F()
20751 BinPackedTCS.Language = FormatStyle::LK_JavaScript; in TEST_F()
20758 EXPECT_EQ(FormatStyle::LK_Cpp, Style.Language); in TEST_F()
20760 Style.Language = FormatStyle::LK_JavaScript; in TEST_F()
20771 EXPECT_EQ(FormatStyle::LK_JavaScript, Style.Language); in TEST_F()
20786 Style.Language = FormatStyle::LK_Cpp; in TEST_F()
20805 Style.BreakBeforeBraces = FormatStyle::BS_Linux; in TEST_F()
20822 EXPECT_EQ(FormatStyle::BS_Stroustrup, Style.BreakBeforeBraces); in TEST_F()
20843 EXPECT_EQ(FormatStyle::LK_Cpp, Style.Language); in TEST_F()
20847 FormatStyle Style = {}; in TEST_F()
20848 Style.Language = FormatStyle::LK_JavaScript; in TEST_F()
20864 EXPECT_EQ(FormatStyle::LK_JavaScript, Style.Language); in TEST_F()
20868 FormatStyle Style = getLLVMStyle(); in TEST_F()
20870 FormatStyle ParsedStyle = {}; in TEST_F()
20871 ParsedStyle.Language = FormatStyle::LK_Cpp; in TEST_F()
21003 FormatStyle Style = getLLVMStyle(); in TEST_F()
21025 Style.AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak; in TEST_F()
21036 Style.BreakConstructorInitializers = FormatStyle::BCIS_AfterColon; in TEST_F()
21044 FormatStyle Style = getLLVMStyle(); in TEST_F()
21045 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeComma; in TEST_F()
21075 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
21086 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All; in TEST_F()
21101 Style.PackConstructorInitializers = FormatStyle::PCIS_NextLine; in TEST_F()
21121 FormatStyle Style = getLLVMStyle(); in TEST_F()
21122 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeComma; in TEST_F()
21198 FormatStyle Style = getWebKitStyle(); in TEST_F()
21758 FormatStyle DoNotMerge = getLLVMStyle(); in TEST_F()
21759 DoNotMerge.AllowShortLambdasOnASingleLine = FormatStyle::SLS_None; in TEST_F()
21768 FormatStyle MergeEmptyOnly = getLLVMStyle(); in TEST_F()
21769 MergeEmptyOnly.AllowShortLambdasOnASingleLine = FormatStyle::SLS_Empty; in TEST_F()
21782 FormatStyle MergeInline = getLLVMStyle(); in TEST_F()
21783 MergeInline.AllowShortLambdasOnASingleLine = FormatStyle::SLS_Inline; in TEST_F()
21797 FormatStyle LLVMWithBeforeLambdaBody = getLLVMStyle(); in TEST_F()
21798 LLVMWithBeforeLambdaBody.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
21801 FormatStyle::ShortLambdaStyle::SLS_None; in TEST_F()
21837 FormatStyle::ShortLambdaStyle::SLS_Empty; in TEST_F()
21884 FormatStyle::ShortLambdaStyle::SLS_Inline; in TEST_F()
21915 FormatStyle::ShortLambdaStyle::SLS_All; in TEST_F()
22034 FormatStyle::ShortLambdaStyle::SLS_None; in TEST_F()
22083 Style.LambdaBodyIndentation = FormatStyle::LBI_OuterScope; in TEST_F()
22160 Style.LambdaBodyIndentation = FormatStyle::LBI_OuterScope; in TEST_F()
22175 FormatStyle LLVMWithBeforeLambdaBody = getLLVMStyle(); in TEST_F()
22176 LLVMWithBeforeLambdaBody.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
22179 FormatStyle::ShortLambdaStyle::SLS_All; in TEST_F()
22234 FormatStyle ShortBlocks = getLLVMStyle(); in TEST_F()
22235 ShortBlocks.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Always; in TEST_F()
22328 FormatStyle FourIndent = getLLVMStyle(); in TEST_F()
22337 FormatStyle ZeroColumn = getLLVMStyleWithColumns(0); in TEST_F()
22392 ZeroColumn.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Always; in TEST_F()
22395 ZeroColumn.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never; in TEST_F()
22453 FormatStyle style = getLLVMStyle(); in TEST_F()
22550 FormatStyle TwoIndent = getLLVMStyleWithColumns(15); in TEST_F()
22558 FormatStyle SixIndent = getLLVMStyleWithColumns(20); in TEST_F()
22568 FormatStyle Style = getLLVMStyle(); in TEST_F()
22584 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
22585 Spaces.SpacesInAngles = FormatStyle::SIAS_Always; in TEST_F()
22600 Spaces.Standard = FormatStyle::LS_Cpp03; in TEST_F()
22601 Spaces.SpacesInAngles = FormatStyle::SIAS_Always; in TEST_F()
22604 Spaces.SpacesInAngles = FormatStyle::SIAS_Never; in TEST_F()
22607 Spaces.SpacesInAngles = FormatStyle::SIAS_Leave; in TEST_F()
22617 Spaces.Standard = FormatStyle::LS_Cpp11; in TEST_F()
22618 Spaces.SpacesInAngles = FormatStyle::SIAS_Always; in TEST_F()
22621 Spaces.SpacesInAngles = FormatStyle::SIAS_Never; in TEST_F()
22629 Spaces.SpacesInAngles = FormatStyle::SIAS_Leave; in TEST_F()
22644 Spaces.SpacesInAngles = FormatStyle::SIAS_Always; in TEST_F()
22656 FormatStyle Style = getLLVMStyle(); in TEST_F()
22846 FormatStyle Style = getLLVMStyle(); in TEST_F()
22847 Style.Language = FormatStyle::LK_TableGen; in TEST_F()
22855 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
22865 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
22873 TEST(FormatStyle, GetStyleWithEmptyFileName) { in TEST() argument
22880 TEST(FormatStyle, GetStyleOfFile) { in TEST() argument
22959 ASSERT_EQ(*StyleTd, getLLVMStyle(FormatStyle::LK_TableGen)); in TEST()
23015 Style.UseTab = FormatStyle::UT_Always; in TEST()
23023 Style.UseTab = FormatStyle::UT_Always; in TEST()
23084 TEST(FormatStyle, GetStyleOfSpecificFile) { in TEST() argument
23166 FormatStyle Style = getLLVMStyle(); in TEST_F()
23195 FormatStyle Style = getLLVMStyle(); in TEST_F()
23196 Style.SortIncludes = FormatStyle::SI_CaseSensitive; in TEST_F()
23214 FormatStyle Style = getLLVMStyle(); in TEST_F()
23215 Style.Standard = FormatStyle::LS_Cpp03; in TEST_F()
23260 FormatStyle PointerMiddle = getLLVMStyle(); in TEST_F()
23261 PointerMiddle.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
23294 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
23304 EXPECT_EQ(FormatStyle::LK_Cpp, guessLanguage("foo.cc", "")); in TEST_F()
23305 EXPECT_EQ(FormatStyle::LK_ObjC, guessLanguage("foo.m", "")); in TEST_F()
23306 EXPECT_EQ(FormatStyle::LK_ObjC, guessLanguage("foo.mm", "")); in TEST_F()
23307 EXPECT_EQ(FormatStyle::LK_Cpp, guessLanguage("foo.h", "")); in TEST_F()
23308 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23311 FormatStyle::LK_ObjC, in TEST_F()
23313 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23315 EXPECT_EQ(FormatStyle::LK_ObjC, guessLanguage("foo.h", "@class Foo;")); in TEST_F()
23316 EXPECT_EQ(FormatStyle::LK_Cpp, guessLanguage("foo", "")); in TEST_F()
23317 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23319 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23322 FormatStyle::LK_ObjC, in TEST_F()
23326 FormatStyle::LK_Cpp, in TEST_F()
23329 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23338 EXPECT_EQ(FormatStyle::LK_Cpp, guessLanguage("foo.h", "[[noreturn]];")); in TEST_F()
23339 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23341 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23344 FormatStyle::LK_Cpp, in TEST_F()
23346 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23348 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23350 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23352 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23354 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23356 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23358 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23361 FormatStyle::LK_Cpp, in TEST_F()
23364 FormatStyle::LK_Cpp, in TEST_F()
23367 EXPECT_EQ(FormatStyle::LK_Cpp, guessLanguage("foo.h", "[[foo::bar, ...]]")); in TEST_F()
23371 EXPECT_EQ(FormatStyle::LK_Cpp, guessLanguage("foo.h", "FOO(^);")); in TEST_F()
23372 EXPECT_EQ(FormatStyle::LK_Cpp, guessLanguage("foo.h", "FOO(^, Bar);")); in TEST_F()
23373 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23375 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23377 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23379 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23382 FormatStyle::LK_ObjC, in TEST_F()
23387 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23389 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23391 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23420 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23426 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23432 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23438 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23444 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23450 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23459 EXPECT_EQ(FormatStyle::LK_Cpp, in TEST_F()
23461 EXPECT_EQ(FormatStyle::LK_ObjC, in TEST_F()
23464 FormatStyle::LK_Cpp, in TEST_F()
23467 FormatStyle::LK_ObjC, in TEST_F()
23475 FormatStyle Google = getGoogleStyleWithColumns(0); in TEST_F()
23483 FormatStyle Macros = getLLVMStyle(); in TEST_F()
23498 Macros.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
23508 FormatStyle Google = getGoogleStyleWithColumns(0); in TEST_F()
23528 FormatStyle Style = getLLVMStyle(); in TEST_F()
23529 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
23547 FormatStyle AlignStyle = getLLVMStyle(); in TEST_F()
23548 AlignStyle.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
23550 AlignStyle.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
23555 FormatStyle Spaces = getLLVMStyle(); in TEST_F()
23577 FormatStyle::SBPO_ControlStatementsExceptControlMacros; in TEST_F()
23632 FormatStyle Style = getLLVMStyle(); in TEST_F()
23633 Style.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
23689 Style.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
23760 Style.PointerAlignment = FormatStyle::PAS_Middle; in TEST_F()
23786 FormatStyle Style = getLLVMStyle(); in TEST_F()
23797 FormatStyle Style = getLLVMStyle(); in TEST_F()
23829 FormatStyle Style = getLLVMStyleWithColumns(80); in TEST_F()
23894 FormatStyle Style = getLLVMStyle(); in TEST_F()
24005 FormatStyle StyleWithWhitespacePenalty = getLLVMStyle(); in TEST_F()
24019 FormatStyle Style = getLLVMStyle(); in TEST_F()
24026 FormatStyle Style = getGNUStyle(); in TEST_F()
24034 FormatStyle Style = getMozillaStyle(); in TEST_F()
24042 FormatStyle Style = getGoogleStyle(); in TEST_F()
24049 FormatStyle Style = getChromiumStyle(FormatStyle::LanguageKind::LK_Cpp); in TEST_F()
24056 FormatStyle Style = getMicrosoftStyle(FormatStyle::LanguageKind::LK_Cpp); in TEST_F()
24064 FormatStyle Style = getWebKitStyle(); in TEST_F()
24073 FormatStyle::BBCDS_Always); in TEST_F()
24341 Style.BreakBeforeConceptDeclarations = FormatStyle::BBCDS_Allowed; in TEST_F()
24385 Style.BreakBeforeConceptDeclarations = FormatStyle::BBCDS_Never; in TEST_F()
24448 EXPECT_EQ(Style.RequiresClausePosition, FormatStyle::RCPS_OwnLine); in TEST_F()
24536 Style.RequiresClausePosition = FormatStyle::RCPS_SingleLine; in TEST_F()
24582 Style.RequiresClausePosition = FormatStyle::RCPS_WithFollowing; in TEST_F()
24583 ColumnStyle.RequiresClausePosition = FormatStyle::RCPS_WithFollowing; in TEST_F()
24645 Style.RequiresClausePosition = FormatStyle::RCPS_WithPreceding; in TEST_F()
24646 ColumnStyle.RequiresClausePosition = FormatStyle::RCPS_WithPreceding; in TEST_F()
24705 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_All; in TEST_F()
24724 Style.BreakConstructorInitializers = FormatStyle::BCIS_BeforeColon; in TEST_F()
24725 Style.PackConstructorInitializers = FormatStyle::PCIS_Never; in TEST_F()
24743 FormatStyle Style = getLLVMStyle(); in TEST_F()
24773 FormatStyle Style = getLLVMStyle(); in TEST_F()
24874 FormatStyle Style = getLLVMStyle(); in TEST_F()
24875 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never; in TEST_F()
24876 Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None; in TEST_F()
24939 FormatStyle Style = getLLVMStyle(); in TEST_F()
24968 FormatStyle Style = getLLVMStyleWithColumns(40); in TEST_F()
24998 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Empty; in TEST_F()
25026 FormatStyle Style = getLLVMStyle(); in TEST_F()
25229 FormatStyle Style = getLLVMStyle(); in TEST_F()
25931 Style.BreakBeforeBraces = FormatStyle::BS_Custom; in TEST_F()
25932 Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always; in TEST_F()
26104 Style.AlignAfterOpenBracket = FormatStyle::BAS_BlockIndent; in TEST_F()
26228 Style.AlignAfterOpenBracket = FormatStyle::BAS_BlockIndent; in TEST_F()
26258 Style.AlignAfterOpenBracket = FormatStyle::BAS_BlockIndent; in TEST_F()
26285 Style.AlignArrayOfStructures = FormatStyle::AIAS_Left; in TEST_F()
26349 Style.AlignArrayOfStructures = FormatStyle::AIAS_Right; in TEST_F()