H A D | FormatTest.cpp | 18 class FormatTest : public test::FormatTestBase {}; class 20 TEST_F(FormatTest, MessUp) { in TEST_F() argument 28 TEST_F(FormatTest, DefaultLLVMStyleIsCpp) { in TEST_F() argument 32 TEST_F(FormatTest, LLVMStyleOverride) { in TEST_F() argument 41 TEST_F(FormatTest, DoesNotChangeCorrectlyFormattedCode) { verifyFormat(";"); } in TEST_F() argument 43 TEST_F(FormatTest, FormatsGlobalStatementsAt0) { in TEST_F() argument 54 TEST_F(FormatTest, FormatsUnwrappedLinesAtFirstFormat) { in TEST_F() argument 58 TEST_F(FormatTest, FormatsNestedBlockStatements) { in TEST_F() argument 68 TEST_F(FormatTest, FormatsNestedCal argument 74 TEST_F(FormatTest,NestedNameSpecifiers) TEST_F() argument 86 TEST_F(FormatTest,OnlyGeneratesNecessaryReplacements) TEST_F() argument 102 TEST_F(FormatTest,RemovesEmptyLines) TEST_F() argument 415 TEST_F(FormatTest,RecognizesBinaryOperatorKeywords) TEST_F() argument 426 TEST_F(FormatTest,RecognizesUnaryOperatorKeywords) TEST_F() argument 440 TEST_F(FormatTest,FormatIfWithoutCompoundStatement) TEST_F() argument 754 TEST_F(FormatTest,FormatIfWithoutCompoundStatementButElseWith) TEST_F() argument 1367 TEST_F(FormatTest,FormatLoopsWithoutCompoundStatement) TEST_F() argument 1441 TEST_F(FormatTest,FormatShortBracedStatements) TEST_F() argument 1825 TEST_F(FormatTest,UnderstandsMacros) TEST_F() argument 1887 TEST_F(FormatTest,ShortBlocksInMacrosDontMergeWithCodeAfterMacro) TEST_F() argument 1906 TEST_F(FormatTest,ParseIfElse) TEST_F() argument 1963 TEST_F(FormatTest,ElseIf) TEST_F() argument 2027 TEST_F(FormatTest,SeparatePointerReferenceAlignment) TEST_F() argument 2278 TEST_F(FormatTest,FormatsForLoop) TEST_F() argument 2362 TEST_F(FormatTest,RangeBasedForLoops) TEST_F() argument 2373 TEST_F(FormatTest,ForEachLoops) TEST_F() argument 2477 TEST_F(FormatTest,FormatsWhileLoop) TEST_F() argument 2487 TEST_F(FormatTest,FormatsDoWhile) TEST_F() argument 2496 TEST_F(FormatTest,FormatsSwitchStatement) TEST_F() argument 2814 TEST_F(FormatTest,CaseRanges) TEST_F() argument 2823 TEST_F(FormatTest,ShortEnums) TEST_F() argument 2868 TEST_F(FormatTest,ShortCompoundRequirement) TEST_F() argument 2902 TEST_F(FormatTest,ShortCaseLabels) TEST_F() argument 3079 TEST_F(FormatTest,FormatsLabels) TEST_F() argument 3200 TEST_F(FormatTest,MultiLineControlStatements) TEST_F() argument 3424 TEST_F(FormatTest,BeforeWhile) TEST_F() argument 3444 TEST_F(FormatTest,DoesNotBreakSemiAfterClassDecl) TEST_F() argument 3448 TEST_F(FormatTest,UnderstandsAccessSpecifiers) TEST_F() argument 3561 TEST_F(FormatTest,SeparatesLogicalBlocks) TEST_F() argument 3619 TEST_F(FormatTest,FormatsClasses) TEST_F() argument 3654 TEST_F(FormatTest,BreakInheritanceStyle) TEST_F() argument 3712 TEST_F(FormatTest,FormatsVariableDeclarationsAfterRecord) TEST_F() argument 3751 TEST_F(FormatTest,FormatsEnum) TEST_F() argument 3871 TEST_F(FormatTest,FormatsEnumsWithErrors) TEST_F() argument 3885 TEST_F(FormatTest,FormatsEnumStruct) TEST_F() argument 3914 TEST_F(FormatTest,FormatsEnumClass) TEST_F() argument 3943 TEST_F(FormatTest,FormatsEnumTypes) TEST_F() argument 3952 TEST_F(FormatTest,FormatsTypedefEnum) TEST_F() argument 3977 TEST_F(FormatTest,FormatsNSEnums) TEST_F() argument 4019 TEST_F(FormatTest,FormatsBitfields) TEST_F() argument 4063 TEST_F(FormatTest,FormatsNamespaces) TEST_F() argument 4346 TEST_F(FormatTest,NamespaceMacros) TEST_F() argument 4441 TEST_F(FormatTest,FormatsCompactNamespaces) TEST_F() argument 4626 TEST_F(FormatTest,FormatsExternC) TEST_F() argument 4663 TEST_F(FormatTest,IndentExternBlockStyle) TEST_F() argument 4737 TEST_F(FormatTest,FormatsInlineASM) TEST_F() argument 4795 TEST_F(FormatTest,FormatTryCatch) TEST_F() argument 4843 TEST_F(FormatTest,FormatTryAsAVariable) TEST_F() argument 4892 TEST_F(FormatTest,FormatSEHTryCatch) TEST_F() argument 4912 TEST_F(FormatTest,IncompleteTryCatchBlocks) TEST_F() argument 4927 TEST_F(FormatTest,FormatTryCatchBraceStyles) TEST_F() argument 5002 TEST_F(FormatTest,StaticInitializers) TEST_F() argument 5029 TEST_F(FormatTest,DesignatedInitializers) TEST_F() argument 5071 TEST_F(FormatTest,BracedInitializerIndentWidth) TEST_F() argument 5256 TEST_F(FormatTest,NestedStaticInitializers) TEST_F() argument 5310 TEST_F(FormatTest,FormatsSmallMacroDefinitionsInSingleLine) TEST_F() argument 5316 TEST_F(FormatTest,DoesNotBreakPureVirtualFunctionDefinition) TEST_F() argument 5329 TEST_F(FormatTest,BreaksStringLiteralsOnlyInDefine) TEST_F() argument 5341 TEST_F(FormatTest,UnderstandsLinePPDirective) TEST_F() argument 5346 TEST_F(FormatTest,LayoutUnknownPPDirective) TEST_F() argument 5351 TEST_F(FormatTest,UnescapedEndOfLineEndsPPDirective) TEST_F() argument 5357 TEST_F(FormatTest,EndOfFileEndsPPDirective) TEST_F() argument 5362 TEST_F(FormatTest,DoesntRemoveUnknownTokens) TEST_F() argument 5380 TEST_F(FormatTest,IndentsPPDirectiveWithPPIndentWidth) TEST_F() argument 5648 TEST_F(FormatTest,IndentsPPDirectiveInReducedSpace) TEST_F() argument 5662 TEST_F(FormatTest,HandlePreprocessorDirectiveContext) TEST_F() argument 5678 TEST_F(FormatTest,LayoutSingleHash) TEST_F() argument 5680 TEST_F(FormatTest,LayoutCodeInMacroDefinitions) TEST_F() argument 5690 TEST_F(FormatTest,LayoutRemainingTokens) TEST_F() argument 5695 TEST_F(FormatTest,MacroDefinitionInsideStatement) TEST_F() argument 5702 TEST_F(FormatTest,HashInMacroDefinition) TEST_F() argument 5729 TEST_F(FormatTest,RespectWhitespaceInMacroDefinitions) TEST_F() argument 5740 TEST_F(FormatTest,EmptyLinesInMacroDefinitions) TEST_F() argument 5758 TEST_F(FormatTest,MacroDefinitionsWithIncompleteCode) TEST_F() argument 5825 TEST_F(FormatTest,MacrosWithoutTrailingSemicolon) TEST_F() argument 5874 TEST_F(FormatTest,MacroCallsWithoutTrailingSemicolon) TEST_F() argument 6067 TEST_F(FormatTest,FormatsMacrosWithZeroColumnWidth) TEST_F() argument 6074 TEST_F(FormatTest,LayoutMacroDefinitionsStatementsSpanningBlocks) TEST_F() argument 6082 TEST_F(FormatTest,IndentPreprocessorDirectives) TEST_F() argument 6456 TEST_F(FormatTest,FormatAlignInsidePreprocessorElseBlock) TEST_F() argument 6600 TEST_F(FormatTest,FormatHashIfNotAtStartOfLine) TEST_F() argument 6608 TEST_F(FormatTest,FormatUnbalancedStructuralElements) TEST_F() argument 6615 TEST_F(FormatTest,EscapedNewlines) TEST_F() argument 6680 TEST_F(FormatTest,CalculateSpaceOnConsecutiveLinesInMacro) TEST_F() argument 6688 TEST_F(FormatTest,MixingPreprocessorDirectivesAndNormalCode) TEST_F() argument 6703 TEST_F(FormatTest,LayoutStatementsAroundPreprocessorDirectives) TEST_F() argument 6815 TEST_F(FormatTest,GraciouslyHandleIncorrectPreprocessorConditions) TEST_F() argument 6820 TEST_F(FormatTest,FormatsJoinedLinesOnSubsequentRuns) TEST_F() argument 6832 TEST_F(FormatTest,LayoutBlockInsideParens) TEST_F() argument 6880 TEST_F(FormatTest,LayoutBlockInsideStatement) TEST_F() argument 6886 TEST_F(FormatTest,LayoutNestedBlocks) TEST_F() argument 6963 TEST_F(FormatTest,FormatNestedBlocksInMacros) TEST_F() argument 6984 TEST_F(FormatTest,PutEmptyBlocksIntoOneLine) TEST_F() argument 7020 TEST_F(FormatTest,FormatBeginBlockEndMacros) TEST_F() argument 7052 TEST_F(FormatTest,PreventConfusingIndents) TEST_F() argument 7080 TEST_F(FormatTest,LineBreakingInBinaryExpressions) TEST_F() argument 7182 TEST_F(FormatTest,ExpressionIndentation) TEST_F() argument 7231 TEST_F(FormatTest,ExpressionIndentationBreakingBeforeOperators) TEST_F() argument 7344 TEST_F(FormatTest,ExpressionIndentationStrictAlign) TEST_F() argument 7446 TEST_F(FormatTest,EnforcedOperatorWraps) TEST_F() argument 7455 TEST_F(FormatTest,NoOperandAlignment) TEST_F() argument 7491 TEST_F(FormatTest,BreakingBeforeNonAssigmentOperators) TEST_F() argument 7500 TEST_F(FormatTest,AllowBinPackingInsideArguments) TEST_F() argument 7553 TEST_F(FormatTest,BreakBinaryOperatorsInPresenceOfTemplates) TEST_F() argument 7590 TEST_F(FormatTest,ConstructorInitializers) TEST_F() argument 7718 TEST_F(FormatTest,AllowAllConstructorInitializersOnNextLine) TEST_F() argument 7918 TEST_F(FormatTest,AllowAllArgumentsOnNextLine) TEST_F() argument 7970 TEST_F(FormatTest,AllowAllArgumentsOnNextLineDontAlign) TEST_F() argument 8031 TEST_F(FormatTest,BreakFunctionDefinitionParameters) TEST_F() argument 8066 TEST_F(FormatTest,BreakBeforeInlineASMColon) TEST_F() argument 8119 TEST_F(FormatTest,BreakConstructorInitializersAfterColon) TEST_F() argument 8343 TEST_F(FormatTest,MemoizationTests) TEST_F() argument 8424 TEST_F(FormatTest,BreaksAsHighAsPossible) TEST_F() argument 8435 TEST_F(FormatTest,BreaksFunctionDeclarations) TEST_F() argument 8534 TEST_F(FormatTest,DontBreakBeforeQualifiedOperator) TEST_F() argument 8546 TEST_F(FormatTest,TrailingReturnType) TEST_F() argument 8577 TEST_F(FormatTest,DeductionGuides) TEST_F() argument 8602 TEST_F(FormatTest,BreaksFunctionDeclarationsWithTrailingTokens) TEST_F() argument 8725 TEST_F(FormatTest,FunctionAnnotations) TEST_F() argument 8747 TEST_F(FormatTest,BreaksDesireably) TEST_F() argument 8830 TEST_F(FormatTest,FormatsDeclarationsOnePerLine) TEST_F() argument 8862 TEST_F(FormatTest,FormatsOneParameterPerLineIfNecessary) TEST_F() argument 8927 TEST_F(FormatTest,AdaptiveOnePerLineFormatting) TEST_F() argument 8951 TEST_F(FormatTest,FormatsBuilderPattern) TEST_F() argument 9095 TEST_F(FormatTest,BreaksAccordingToOperatorPrecedence) TEST_F() argument 9137 TEST_F(FormatTest,BreaksAfterAssignments) TEST_F() argument 9155 TEST_F(FormatTest,ConfigurableBreakAssignmentPenalty) TEST_F() argument 9167 TEST_F(FormatTest,AlignsAfterAssignments) TEST_F() argument 9186 TEST_F(FormatTest,AlignsAfterReturn) TEST_F() argument 9209 TEST_F(FormatTest,AlignsAfterOpenBracket) TEST_F() argument 9342 TEST_F(FormatTest,ParenthesesAndOperandAlignment) TEST_F() argument 9364 TEST_F(FormatTest,BreaksConditionalExpressions) TEST_F() argument 9653 TEST_F(FormatTest,BreaksConditionalExpressionsAfterOperator) TEST_F() argument 9872 TEST_F(FormatTest,DeclarationsOfMultipleVariables) TEST_F() argument 9922 TEST_F(FormatTest,ConditionalExpressionsInBrackets) TEST_F() argument 9929 TEST_F(FormatTest,AlignsStringLiterals) TEST_F() argument 9988 TEST_F(FormatTest,ReturnTypeBreakingStyle) TEST_F() argument 10359 TEST_F(FormatTest,AlwaysBreakBeforeMultilineStrings) TEST_F() argument 10433 TEST_F(FormatTest,AlignsPipes) TEST_F() argument 10523 TEST_F(FormatTest,KeepStringLabelValuePairsOnALine) TEST_F() argument 10582 TEST_F(FormatTest,WrapBeforeInsertionOperatorbetweenStringLiterals) TEST_F() argument 10593 TEST_F(FormatTest,UnderstandsEquals) TEST_F() argument 10611 TEST_F(FormatTest,WrapsAtFunctionCallsIfNecessary) TEST_F() argument 10707 TEST_F(FormatTest,WrapsTemplateDeclarations) TEST_F() argument 10901 TEST_F(FormatTest,WrapsTemplateDeclarationsWithComments) TEST_F() argument 10946 TEST_F(FormatTest,WrapsTemplateParameters) TEST_F() argument 10986 TEST_F(FormatTest,WrapsAtNestedNameSpecifiers) TEST_F() argument 11027 TEST_F(FormatTest,UnderstandsTemplateParameters) TEST_F() argument 11111 TEST_F(FormatTest,UnderstandsShiftOperators) TEST_F() argument 11125 TEST_F(FormatTest,BitshiftOperatorWidth) TEST_F() argument 11137 TEST_F(FormatTest,UnderstandsBinaryOperators) TEST_F() argument 11142 TEST_F(FormatTest,UnderstandsPointersToMembers) TEST_F() argument 11176 TEST_F(FormatTest,UnderstandsUnaryOperators) TEST_F() argument 11238 TEST_F(FormatTest,DoesNotIndentRelativeToUnaryOperators) TEST_F() argument 11248 TEST_F(FormatTest,UnderstandsOverloadedOperators) TEST_F() argument 11320 TEST_F(FormatTest,SpaceBeforeTemplateCloser) TEST_F() argument 11328 TEST_F(FormatTest,UnderstandsFunctionRefQualification) TEST_F() argument 11542 TEST_F(FormatTest,PointerAlignmentFallback) TEST_F() argument 11569 TEST_F(FormatTest,UnderstandsNewAndDelete) TEST_F() argument 11640 TEST_F(FormatTest,UnderstandsUsesOfStarAndAmp) TEST_F() argument 12088 TEST_F(FormatTest,UnderstandsAttributes) TEST_F() argument 12140 TEST_F(FormatTest,UnderstandsPointerQualifiersInCast) TEST_F() argument 12187 TEST_F(FormatTest,UnderstandsSquareAttributes) TEST_F() argument 12228 TEST_F(FormatTest,AttributeClass) TEST_F() argument 12252 TEST_F(FormatTest,AttributesAfterMacro) TEST_F() argument 12275 TEST_F(FormatTest,AttributePenaltyBreaking) TEST_F() argument 12288 TEST_F(FormatTest,UnderstandsEllipsis) TEST_F() argument 12305 TEST_F(FormatTest,AdaptivelyFormatsPointersAndReferences) TEST_F() argument 12338 TEST_F(FormatTest,UnderstandsRvalueReferences) TEST_F() argument 12363 TEST_F(FormatTest,FormatsBinaryOperatorsPrecedingEquals) TEST_F() argument 12371 TEST_F(FormatTest,FormatsCasts) TEST_F() argument 12507 TEST_F(FormatTest,FormatsFunctionTypes) TEST_F() argument 12539 TEST_F(FormatTest,FormatsPointersToArrayTypes) TEST_F() argument 12544 TEST_F(FormatTest,BreaksLongVariableDeclarations) TEST_F() argument 12568 TEST_F(FormatTest,BreaksLongDeclarations) TEST_F() argument 12669 TEST_F(FormatTest,FormatsAccessModifiers) TEST_F() argument 12972 TEST_F(FormatTest,FormatsAfterAccessModifiers) TEST_F() argument 13339 TEST_F(FormatTest,FormatsAfterAndBeforeAccessModifiersInteraction) TEST_F() argument 13501 TEST_F(FormatTest,FormatsArrays) TEST_F() argument 13536 TEST_F(FormatTest,LineStartsWithSpecialCharacter) TEST_F() argument 13541 TEST_F(FormatTest,HandlesIncludeDirectives) TEST_F() argument 13593 TEST_F(FormatTest,IncompleteParameterLists) TEST_F() argument 13606 TEST_F(FormatTest,IncorrectCodeTrailingStuff) TEST_F() argument 13621 TEST_F(FormatTest,IncorrectCodeMissingSemicolon) TEST_F() argument 13639 TEST_F(FormatTest,IndentationWithinColumnLimitNotPossible) TEST_F() argument 13650 TEST_F(FormatTest,IncorrectAccessSpecifier) TEST_F() argument 13667 TEST_F(FormatTest,IncorrectCodeUnbalancedBraces) TEST_F() argument 13679 TEST_F(FormatTest,IncorrectUnbalancedBracesInMacrosWithUnicode) TEST_F() argument 13691 TEST_F(FormatTest,IncorrectCodeDoNoWhile) TEST_F() argument 13702 TEST_F(FormatTest,IncorrectCodeMissingParens) TEST_F() argument 13711 TEST_F(FormatTest,DoesNotTouchUnwrappedLinesWithErrors) TEST_F() argument 13718 TEST_F(FormatTest,IncorrectCodeErrorDetection) TEST_F() argument 13757 TEST_F(FormatTest,LayoutCallsInsideBraceInitializers) TEST_F() argument 13764 TEST_F(FormatTest,LayoutBraceInitializersInReturnStatement) TEST_F() argument 13768 TEST_F(FormatTest,LayoutCxx11BraceInitializers) TEST_F() argument 14073 TEST_F(FormatTest,FormatsBracedListsInColumnLayout) TEST_F() argument 14268 TEST_F(FormatTest,PullTrivialFunctionDefinitionsIntoSingleLine) TEST_F() argument 14384 TEST_F(FormatTest,PullEmptyFunctionDefinitionsIntoSingleLine) TEST_F() argument 14413 TEST_F(FormatTest,PullInlineFunctionDefinitionsIntoSingleLine) TEST_F() argument 14517 TEST_F(FormatTest,PullInlineOnlyFunctionDefinitionsIntoSingleLine) TEST_F() argument 14563 TEST_F(FormatTest,SplitEmptyFunction) TEST_F() argument 14630 TEST_F(FormatTest,SplitEmptyFunctionButNotRecord) TEST_F() argument 14660 TEST_F(FormatTest,KeepShortFunctionAfterPPElse) TEST_F() argument 14671 TEST_F(FormatTest,SplitEmptyClass) TEST_F() argument 14777 TEST_F(FormatTest,SplitEmptyStruct) TEST_F() argument 14804 TEST_F(FormatTest,SplitEmptyUnion) TEST_F() argument 14827 TEST_F(FormatTest,SplitEmptyNamespace) TEST_F() argument 14855 TEST_F(FormatTest,NeverMergeShortRecords) TEST_F() argument 14929 TEST_F(FormatTest,UnderstandContextOfRecordTypeKeywords) TEST_F() argument 14993 TEST_F(FormatTest,DoNotInterfereWithErrorAndWarning) TEST_F() argument 15000 TEST_F(FormatTest,FormatHashIfExpressions) TEST_F() argument 15014 TEST_F(FormatTest,MergeHandlingInTheFaceOfPreprocessorDirectives) TEST_F() argument 15082 TEST_F(FormatTest,FormatStarDependingOnContext) TEST_F() argument 15097 TEST_F(FormatTest,SpecialTokensAtEndOfLine) TEST_F() argument 15102 TEST_F(FormatTest,SkipsDeeplyNestedLines) TEST_F() argument 15130 TEST_F(FormatTest,FormatForObjectiveCMethodDecls) TEST_F() argument 15195 TEST_F(FormatTest,BreaksStringLiterals) TEST_F() argument 15361 TEST_F(FormatTest,BreaksStringLiteralsAtColumnLimit) TEST_F() argument 15367 TEST_F(FormatTest,FullyRemoveEmptyLines) TEST_F() argument 15374 TEST_F(FormatTest,BreaksStringLiteralsWithTabs) TEST_F() argument 15385 TEST_F(FormatTest,BreaksWideAndNSStringLiterals) TEST_F() argument 15417 TEST_F(FormatTest,DoesNotBreakRawStringLiterals) TEST_F() argument 15426 TEST_F(FormatTest,BreaksStringLiteralsWithin_TMacro) TEST_F() argument 15473 TEST_F(FormatTest,BreaksStringLiteralOperands) TEST_F() argument 15561 TEST_F(FormatTest,DontSplitStringLiteralsWithEscapedNewlines) TEST_F() argument 15570 TEST_F(FormatTest,CountsCharactersInMultilineRawStringLiterals) TEST_F() argument 15619 TEST_F(FormatTest,SkipsUnknownStringLiterals) TEST_F() argument 15627 TEST_F(FormatTest,DoesNotTryToParseUDLiteralsInPreCpp11Code) TEST_F() argument 15634 TEST_F(FormatTest,CppLexVersion) TEST_F() argument 15647 TEST_F(FormatTest,UnderstandsCpp1y) TEST_F() argument 15649 TEST_F(FormatTest,BreakStringLiteralsBeforeUnbreakableTokenSequence) TEST_F() argument 15696 TEST_F(FormatTest,DoNotBreakStringLiteralsInEscapeSequence) TEST_F() argument 15735 TEST_F(FormatTest,DoNotCreateUnreasonableUnwrappedLines) TEST_F() argument 15744 TEST_F(FormatTest,DoNotPrematurelyEndUnwrappedLineForReturnStatements) TEST_F() argument 15749 TEST_F(FormatTest,FormatsClosingBracesInEmptyNestedBlocks) TEST_F() argument 15757 TEST_F(FormatTest,ConfigurableIndentWidth) TEST_F() argument 15779 TEST_F(FormatTest,ConfigurableFunctionDeclarationIndentAfterType) TEST_F() argument 15785 TEST_F(FormatTest,ConfigurableUseOfTab) TEST_F() argument 16533 TEST_F(FormatTest,ZeroTabWidth) TEST_F() argument 16623 TEST_F(FormatTest,CalculatesOriginalColumn) TEST_F() argument 16652 TEST_F(FormatTest,ConfigurableSpaceBeforeParens) TEST_F() argument 17089 TEST_F(FormatTest,SpaceAfterLogicalNot) TEST_F() argument 17100 TEST_F(FormatTest,ConfigurableSpacesInParens) TEST_F() argument 17428 TEST_F(FormatTest,ConfigurableSpacesInSquareBrackets) TEST_F() argument 17454 TEST_F(FormatTest,ConfigurableSpaceBeforeBrackets) TEST_F() argument 17489 TEST_F(FormatTest,ConfigurableSpaceBeforeAssignmentOperators) TEST_F() argument 17503 TEST_F(FormatTest,ConfigurableSpaceBeforeColon) TEST_F() argument 17773 TEST_F(FormatTest,ConfigurableSpaceAroundPointerQualifiers) TEST_F() argument 17868 TEST_F(FormatTest,AlignConsecutiveMacros) TEST_F() argument 18114 TEST_F(FormatTest,AlignConsecutiveAssignmentsAcrossEmptyLines) TEST_F() argument 18189 TEST_F(FormatTest,AlignConsecutiveDeclarationsAcrossEmptyLinesAndComments) TEST_F() argument 18253 TEST_F(FormatTest,AlignConsecutiveBitFieldsAcrossEmptyLinesAndComments) TEST_F() argument 18321 TEST_F(FormatTest,AlignConsecutiveAssignmentsAcrossComments) TEST_F() argument 18409 TEST_F(FormatTest,AlignConsecutiveAssignmentsAcrossEmptyLinesAndComments) TEST_F() argument 18725 TEST_F(FormatTest,AlignCompoundAssignments) TEST_F() argument 18852 TEST_F(FormatTest,AlignConsecutiveAssignments) TEST_F() argument 19189 TEST_F(FormatTest,AlignConsecutiveBitFields) TEST_F() argument 19246 TEST_F(FormatTest,AlignConsecutiveDeclarations) TEST_F() argument 19865 TEST_F(FormatTest,AlignConsecutiveShortCaseStatements) TEST_F() argument 20099 TEST_F(FormatTest,AlignWithLineBreaks) TEST_F() argument 20247 TEST_F(FormatTest,AlignWithInitializerPeriods) TEST_F() argument 20293 TEST_F(FormatTest,LinuxBraceBreaking) TEST_F() argument 20334 TEST_F(FormatTest,MozillaBraceBreaking) TEST_F() argument 20379 TEST_F(FormatTest,StroustrupBraceBreaking) TEST_F() argument 20441 TEST_F(FormatTest,AllmanBraceBreaking) TEST_F() argument 20729 TEST_F(FormatTest,WhitesmithsBraceBreaking) TEST_F() argument 21121 TEST_F(FormatTest,GNUBraceBreaking) TEST_F() argument 21245 TEST_F(FormatTest,WebKitBraceBreaking) TEST_F() argument 21284 TEST_F(FormatTest,CatchExceptionReferenceBinding) TEST_F() argument 21292 TEST_F(FormatTest,CatchAlignArrayOfStructuresRightAlignment) TEST_F() argument 21554 TEST_F(FormatTest,CatchAlignArrayOfStructuresLeftAlignment) TEST_F() argument 21813 TEST_F(FormatTest,UnderstandsPragmas) TEST_F() argument 21837 TEST_F(FormatTest,UnderstandsPragmaOmpTarget) TEST_F() argument 21857 TEST_F(FormatTest,UnderstandPragmaOption) TEST_F() argument 21863 TEST_F(FormatTest,UnderstandPragmaRegion) TEST_F() argument 21869 TEST_F(FormatTest,OptimizeBreakPenaltyVsExcess) TEST_F() argument 21983 TEST_F(FormatTest,BreakPenaltyAfterLParen) TEST_F() argument 21997 TEST_F(FormatTest,BreakPenaltyAfterCastLParen) TEST_F() argument 22013 TEST_F(FormatTest,BreakPenaltyAfterForLoopLParen) TEST_F() argument 22043 TEST_F(FormatTest,BreakPenaltyScopeResolution) TEST_F() argument 22056 TEST_F(FormatTest,WorksFor8bitEncodings) TEST_F() argument 22068 TEST_F(FormatTest,HandlesUTF8BOM) TEST_F() argument 22082 TEST_F(FormatTest,CountsUTF8CharactersProperly) TEST_F() argument 22096 TEST_F(FormatTest,SplitsUTF8Strings) TEST_F() argument 22141 TEST_F(FormatTest,HandlesDoubleWidthCharsInMultiLineStrings) TEST_F() argument 22150 TEST_F(FormatTest,SplitsUTF8LineComments) TEST_F() argument 22165 TEST_F(FormatTest,SplitsUTF8BlockComments) TEST_F() argument 22190 TEST_F(FormatTest,ConstructorInitializerIndentWidth) TEST_F() argument 22231 TEST_F(FormatTest,BreakConstructorInitializersBeforeComma) TEST_F() argument 22327 TEST_F(FormatTest,ConstructorInitializersWithPreprocessorDirective) TEST_F() argument 22399 TEST_F(FormatTest,Destructors) TEST_F() argument 22404 TEST_F(FormatTest,FormatsWithWebKitStyle) TEST_F() argument 22572 TEST_F(FormatTest,FormatsLambdas) TEST_F() argument 23541 TEST_F(FormatTest,LambdaWithLineComments) TEST_F() argument 23589 TEST_F(FormatTest,EmptyLinesInLambdas) TEST_F() argument 23600 TEST_F(FormatTest,FormatsBlocks) TEST_F() argument 23704 TEST_F(FormatTest,FormatsBlocksWithZeroColumnWidth) TEST_F() argument 23770 TEST_F(FormatTest,SupportsCRLF) TEST_F() argument 23900 TEST_F(FormatTest,MunchSemicolonAfterBlocks) TEST_F() argument 23907 TEST_F(FormatTest,ConfigurableContinuationIndentWidth) TEST_F() argument 23925 TEST_F(FormatTest,WrappedClosingParenthesisIndent) TEST_F() argument 23941 TEST_F(FormatTest,SpacesInAngles) TEST_F() argument 24013 TEST_F(FormatTest,SpaceAfterTemplateKeyword) TEST_F() argument 24019 TEST_F(FormatTest,TripleAngleBrackets) TEST_F() argument 24033 TEST_F(FormatTest,MergeLessLessAtEnd) TEST_F() argument 24042 TEST_F(FormatTest,HandleUnbalancedImplicitBracesAcrossPPBranches) TEST_F() argument 24056 TEST_F(FormatTest,HandleConflictMarkers) TEST_F() argument 24147 TEST_F(FormatTest,DisableRegions) TEST_F() argument 24218 TEST_F(FormatTest,DoNotCrashOnInvalidInput) TEST_F() argument 24223 TEST_F(FormatTest,FormatsTableGenCode) TEST_F() argument 24229 TEST_F(FormatTest,ArrayOfTemplates) TEST_F() argument 24239 TEST_F(FormatTest,ArrayAsTemplateType) TEST_F() argument 24249 TEST_F(FormatTest,NoSpaceAfterSuper) TEST_F() argument 24251 TEST_F(FormatTest,FormatSortsUsingDeclarations) TEST_F() argument 24259 TEST_F(FormatTest,UTF8CharacterLiteralCpp03) TEST_F() argument 24266 TEST_F(FormatTest,UTF8CharacterLiteralCpp11) TEST_F() argument 24272 TEST_F(FormatTest,DoNotFormatLikelyXml) TEST_F() argument 24277 TEST_F(FormatTest,StructuredBindings) TEST_F() argument 24340 TEST_F(FormatTest,FileAndCode) TEST_F() argument 24372 TEST_F(FormatTest,GuessLanguageWithCpp11AttributeSpecifiers) TEST_F() argument 24405 TEST_F(FormatTest,GuessLanguageWithCaret) TEST_F() argument 24421 TEST_F(FormatTest,GuessLanguageWithPragmas) TEST_F() argument 24430 TEST_F(FormatTest,FormatsInlineAsmSymbolicNames) TEST_F() argument 24454 TEST_F(FormatTest,GuessedLanguageWithInlineAsmClobbers) TEST_F() argument 24493 TEST_F(FormatTest,GuessLanguageWithChildLines) TEST_F() argument 24506 TEST_F(FormatTest,TypenameMacros) TEST_F() argument 24541 TEST_F(FormatTest,AtomicQualifier) TEST_F() argument 24580 TEST_F(FormatTest,C11Generic) TEST_F() argument 24624 TEST_F(FormatTest,AmbersandInLamda) TEST_F() argument 24633 TEST_F(FormatTest,TrailingReturnTypeAuto) TEST_F() argument 24643 TEST_F(FormatTest,SpacesInConditionalStatement) TEST_F() argument 24673 TEST_F(FormatTest,AlternativeOperators) TEST_F() argument 24724 TEST_F(FormatTest,STLWhileNotDefineChed) TEST_F() argument 24730 TEST_F(FormatTest,OperatorSpacing) TEST_F() argument 24884 TEST_F(FormatTest,OperatorPassedAsAFunctionPtr) TEST_F() argument 24895 TEST_F(FormatTest,WhitespaceSensitiveMacros) TEST_F() argument 24920 TEST_F(FormatTest,SkipMacroDefinitionBody) TEST_F() argument 25061 TEST_F(FormatTest,VeryLongNamespaceCommentSplit) TEST_F() argument 25128 TEST_F(FormatTest,LikelyUnlikely) TEST_F() argument 25231 TEST_F(FormatTest,PenaltyIndentedWhitespace) TEST_F() argument 25253 TEST_F(FormatTest,LLVMDefaultStyle) TEST_F() argument 25260 TEST_F(FormatTest,GNUDefaultStyle) TEST_F() argument 25268 TEST_F(FormatTest,MozillaDefaultStyle) TEST_F() argument 25276 TEST_F(FormatTest,GoogleDefaultStyle) TEST_F() argument 25283 TEST_F(FormatTest,ChromiumDefaultStyle) TEST_F() argument 25290 TEST_F(FormatTest,MicrosoftDefaultStyle) TEST_F() argument 25298 TEST_F(FormatTest,WebKitDefaultStyle) TEST_F() argument 25306 TEST_F(FormatTest,Concepts) TEST_F() argument 25723 TEST_F(FormatTest,RequiresClausesPositions) TEST_F() argument 25988 TEST_F(FormatTest,RequiresClauses) TEST_F() argument 26055 TEST_F(FormatTest,RequiresExpressionIndentation) TEST_F() argument 26172 TEST_F(FormatTest,StatementAttributeLikeMacros) TEST_F() argument 26202 TEST_F(FormatTest,IndentAccessModifiers) TEST_F() argument 26268 TEST_F(FormatTest,LimitlessStringsAndComments) TEST_F() argument 26295 TEST_F(FormatTest,FormatDecayCopy) TEST_F() argument 26319 TEST_F(FormatTest,Cpp20ModulesSupport) TEST_F() argument 26388 TEST_F(FormatTest,CoroutineForCoawait) TEST_F() argument 26402 TEST_F(FormatTest,CoroutineCoAwait) TEST_F() argument 26426 TEST_F(FormatTest,CoroutineCoYield) TEST_F() argument 26437 TEST_F(FormatTest,CoroutineCoReturn) TEST_F() argument 26446 TEST_F(FormatTest,EmptyShortBlock) TEST_F() argument 26463 TEST_F(FormatTest,ShortTemplatedArgumentLists) TEST_F() argument 26475 TEST_F(FormatTest,MultilineLambdaInConditional) TEST_F() argument 26523 TEST_F(FormatTest,AlignAfterOpenBracketBlockIndent) TEST_F() argument 26681 TEST_F(FormatTest,AlignAfterOpenBracketBlockIndentIfStatement) TEST_F() argument 26743 TEST_F(FormatTest,AlignAfterOpenBracketBlockIndentForStatement) TEST_F() argument 26773 TEST_F(FormatTest,AlignAfterOpenBracketBlockIndentInitializers) TEST_F() argument 26922 TEST_F(FormatTest,UnderstandsDigraphs) TEST_F() argument 26932 TEST_F(FormatTest,AlignArrayOfStructuresLeftAlignmentNonSquare) TEST_F() argument 26996 TEST_F(FormatTest,AlignArrayOfStructuresRightAlignmentNonSquare) TEST_F() argument 27060 TEST_F(FormatTest,FormatsVariableTemplates) TEST_F() argument 27066 TEST_F(FormatTest,RemoveSemicolon) TEST_F() argument 27133 TEST_F(FormatTest,BreakAfterAttributes) TEST_F() argument 27341 TEST_F(FormatTest,InsertNewlineAtEOF) TEST_F() argument 27349 TEST_F(FormatTest,KeepEmptyLinesAtEOF) TEST_F() argument 27358 TEST_F(FormatTest,SpaceAfterUDL) TEST_F() argument 27363 TEST_F(FormatTest,InterfaceAsClassMemberName) TEST_F() argument 27370 TEST_F(FormatTest,PreprocessorOverlappingRegions) TEST_F() argument 27382 TEST_F(FormatTest,RemoveParentheses) TEST_F() argument 27494 TEST_F(FormatTest,AllowBreakBeforeNoexceptSpecifier) TEST_F() argument 27540 TEST_F(FormatTest,PPBranchesInBracedInit) TEST_F() argument 27559 TEST_F(FormatTest,PPDirectivesAndCommentsInBracedInit) TEST_F() argument 27571 TEST_F(FormatTest,BreakAdjacentStringLiterals) TEST_F() argument 27586 TEST_F(FormatTest,AlignUTFCommentsAndStringLiterals) TEST_F() argument 27625 TEST_F(FormatTest,SpaceBetweenKeywordAndLiteral) TEST_F() argument [all...] |