Home | History | Annotate | Download | only in Format

Lines Matching full:test_f

101 TEST_F(FormatTest, MessUp) {
113 TEST_F(FormatTest, DoesNotChangeCorrectlyFormatedCode) {
117 TEST_F(FormatTest, FormatsGlobalStatementsAt0) {
124 TEST_F(FormatTest, FormatsUnwrappedLinesAtFirstFormat) {
128 TEST_F(FormatTest, FormatsNestedBlockStatements) {
132 TEST_F(FormatTest, FormatsNestedCall) {
138 TEST_F(FormatTest, NestedNameSpecifiers) {
143 TEST_F(FormatTest, OnlyGeneratesNecessaryReplacements) {
158 TEST_F(FormatTest, RemovesTrailingWhitespaceOfFormattedLine) {
166 TEST_F(FormatTest, FormatsCorrectRegionForLeadingWhitespace) {
188 TEST_F(FormatTest, RemovesWhitespaceWhenTriggeredOnEmptyLine) {
195 TEST_F(FormatTest, RemovesEmptyLines) {
242 TEST_F(FormatTest, ReformatsMovedLines) {
259 TEST_F(FormatTest, FormatIfWithoutCompoundStatement) {
306 TEST_F(FormatTest, FormatLoopsWithoutCompoundStatement) {
329 TEST_F(FormatTest, ParseIfElse) {
355 TEST_F(FormatTest, ElseIf) {
365 TEST_F(FormatTest, FormatsForLoop) {
427 TEST_F(FormatTest, RangeBasedForLoops) {
436 TEST_F(FormatTest, FormatsWhileLoop) {
446 TEST_F(FormatTest, FormatsDoWhile) {
455 TEST_F(FormatTest, FormatsSwitchStatement) {
564 TEST_F(FormatTest, FormatsLabels) {
584 TEST_F(FormatTest, UnderstandsSingleLineComments) {
749 TEST_F(FormatTest, CanFormatCommentsLocally) {
771 TEST_F(FormatTest, RemovesTrailingWhitespaceOfComments) {
778 TEST_F(FormatTest, UnderstandsBlockComments) {
809 TEST_F(FormatTest, AlignsBlockComments) {
859 TEST_F(FormatTest, CorrectlyHandlesLengthOfBlockComments) {
883 TEST_F(FormatTest, DontBreakNonTrailingBlockComments) {
890 TEST_F(FormatTest, SplitsLongCxxComments) {
945 TEST_F(FormatTest, DontSplitLineCommentsWithEscapedNewlines) {
971 TEST_F(FormatTest, PriorityOfCommentBreaking) {
1001 TEST_F(FormatTest, MultiLineCommentsInDefines) {
1024 TEST_F(FormatTest, ParsesCommentsAdjacentToPPDirectives) {
1033 TEST_F(FormatTest, SplitsLongLinesInComments) {
1184 TEST_F(FormatTest, SplitsLongLinesInCommentsInPreprocessor) {
1221 TEST_F(FormatTest, CommentsInStaticInitializers) {
1290 TEST_F(FormatTest, IgnoresIf0Contents) {
1432 TEST_F(FormatTest, DoesNotBreakSemiAfterClassDecl) {
1436 TEST_F(FormatTest, UnderstandsAccessSpecifiers) {
1452 TEST_F(FormatTest, SeparatesLogicalBlocks) {
1474 TEST_F(FormatTest, FormatsClasses) {
1498 TEST_F(FormatTest, FormatsVariableDeclarationsAfterStructOrClass) {
1504 TEST_F(FormatTest, FormatsEnum) {
1521 TEST_F(FormatTest, FormatsBitfields) {
1528 TEST_F(FormatTest, FormatsNamespaces) {
1601 TEST_F(FormatTest, FormatsExternC) { verifyFormat("extern \"C\" {\nint a;"); }
1603 TEST_F(FormatTest, FormatsInlineASM) {
1613 TEST_F(FormatTest, FormatTryCatch) {
1640 TEST_F(FormatTest, FormatObjCTryCatch) {
1652 TEST_F(FormatTest, StaticInitializers) {
1689 TEST_F(FormatTest, DesignatedInitializers) {
1707 TEST_F(FormatTest, NestedStaticInitializers) {
1755 TEST_F(FormatTest, FormatsSmallMacroDefinitionsInSingleLine) {
1761 TEST_F(FormatTest, DoesNotBreakPureVirtualFunctionDefinition) {
1767 TEST_F(FormatTest, LayoutUnknownPPDirective) {
1774 TEST_F(FormatTest, UnescapedEndOfLineEndsPPDirective) {
1781 TEST_F(FormatTest, EndOfFileEndsPPDirective) {
1787 TEST_F(FormatTest, IndentsPPDirectiveInReducedSpace) {
1801 TEST_F(FormatTest, HandlePreprocessorDirectiveContext) {
1817 TEST_F(FormatTest, LayoutSingleHash) { EXPECT_EQ("#\na;", format("#\na;")); }
1819 TEST_F(FormatTest, LayoutCodeInMacroDefinitions) {
1829 TEST_F(FormatTest, LayoutRemainingTokens) { EXPECT_EQ("{}", format("{}")); }
1831 TEST_F(FormatTest, AlwaysFormatsEntireMacroDefinitions) {
1856 TEST_F(FormatTest, MacroDefinitionInsideStatement) {
1863 TEST_F(FormatTest, HashInMacroDefinition) {
1882 TEST_F(FormatTest, RespectWhitespaceInMacroDefinitions) {
1886 TEST_F(FormatTest, EmptyLinesInMacroDefinitions) {
1911 TEST_F(FormatTest, MacroDefinitionsWithIncompleteCode) {
1922 TEST_F(FormatTest, MacrosWithoutTrailingSemicolon) {
1958 TEST_F(FormatTest, MacroCallsWithoutTrailingSemicolon) {
2066 TEST_F(FormatTest, LayoutMacroDefinitionsStatementsSpanningBlocks) {
2073 TEST_F(FormatTest, IndentPreprocessorDirectivesAtZero) {
2077 TEST_F(FormatTest, FormatHashIfNotAtStartOfLine) {
2081 TEST_F(FormatTest, FormatUnbalancedStructuralElements) {
2088 TEST_F(FormatTest, EscapedNewlineAtStartOfToken) {
2095 TEST_F(FormatTest, NoEscapedNewlineHandlingInBlockComments) {
2099 TEST_F(FormatTest, CalculateSpaceOnConsecutiveLinesInMacro) {
2107 TEST_F(FormatTest, MixingPreprocessorDirectivesAndNormalCode) {
2123 TEST_F(FormatTest, LayoutStatementsAroundPreprocessorDirectives) {
2140 TEST_F(FormatTest, LayoutBlockInsideParens) {
2160 TEST_F(FormatTest, LayoutBlockInsideStatement) {
2166 TEST_F(FormatTest, LayoutNestedBlocks) {
2177 TEST_F(FormatTest, PutEmptyBlocksIntoOneLine) {
2187 TEST_F(FormatTest, FormatsAwesomeMethodCall) {
2194 TEST_F(FormatTest, PreventConfusingIndents) {
2215 TEST_F(FormatTest, LineBreakingInBinaryExpressions) {
2280 TEST_F(FormatTest, ExpressionIndentation) {
2315 TEST_F(FormatTest, ExpressionIndentationBreakingBeforeOperators) {
2356 TEST_F(FormatTest, ConstructorInitializers) {
2431 TEST_F(FormatTest, MemoizationTests) {
2510 TEST_F(FormatTest, BreaksAsHighAsPossible) {
2521 TEST_F(FormatTest, BreaksFunctionDeclarations) {
2589 TEST_F(FormatTest, TrailingReturnType) {
2602 TEST_F(FormatTest, BreaksFunctionDeclarationsWithTrailingTokens) {
2652 TEST_F(FormatTest, BreaksDesireably) {
2722 TEST_F(FormatTest, FormatsOneParameterPerLineIfNecessary) {
2783 TEST_F(FormatTest, AdaptiveOnePerLineFormatting) {
2807 TEST_F(FormatTest, FormatsBuilderPattern) {
2831 TEST_F(FormatTest, BreaksAccordingToOperatorPrecedence) {
2851 TEST_F(FormatTest, BreaksAfterAssignments) {
2869 TEST_F(FormatTest, AlignsAfterAssignments) {
2888 TEST_F(FormatTest, AlignsAfterReturn) {
2908 TEST_F(FormatTest, BreaksConditionalExpressions) {
2999 TEST_F(FormatTest, DeclarationsOfMultipleVariables) {
3031 TEST_F(FormatTest, ConditionalExpressionsInBrackets) {
3038 TEST_F(FormatTest, AlignsStringLiterals) {
3081 TEST_F(FormatTest, AlwaysBreakBeforeMultilineStrings) {
3131 TEST_F(FormatTest, AlignsPipes) {
3201 TEST_F(FormatTest, UnderstandsEquals) {
3219 TEST_F(FormatTest, WrapsAtFunctionCallsIfNecessary) {
3300 TEST_F(FormatTest, WrapsTemplateDeclarations) {
3355 TEST_F(FormatTest, WrapsAtNestedNameSpecifiers) {
3390 TEST_F(FormatTest, UnderstandsTemplateParameters) {
3426 TEST_F(FormatTest, UnderstandsBinaryOperators) {
3430 TEST_F(FormatTest, UnderstandsPointersToMembers) {
3451 TEST_F(FormatTest, UnderstandsUnaryOperators) {
3489 TEST_F(FormatTest, UndestandsOverloadedOperators) {
3526 TEST_F(FormatTest, UnderstandsNewAndDelete) {
3535 TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
3657 TEST_F(FormatTest, UnderstandsAttributes) {
3661 TEST_F(FormatTest, UnderstandsEllipsis) {
3671 TEST_F(FormatTest, AdaptivelyFormatsPointersAndReferences) {
3695 TEST_F(FormatTest, UnderstandsRvalueReferences) {
3713 TEST_F(FormatTest, FormatsBinaryOperatorsPrecedingEquals) {
3721 TEST_F(FormatTest, FormatsCasts) {
3792 TEST_F(FormatTest, FormatsFunctionTypes) {
3811 TEST_F(FormatTest, BreaksLongDeclarations) {
3871 TEST_F(FormatTest, FormatsArrays) {
3887 TEST_F(FormatTest, LineStartsWithSpecialCharacter) {
3892 TEST_F(FormatTest, HandlesIncludeDirectives) {
3916 TEST_F(FormatTest, IncompleteParameterLists) {
3929 TEST_F(FormatTest, IncorrectCodeTrailingStuff) {
3944 TEST_F(FormatTest, IncorrectCodeMissingSemicolon) {
3962 TEST_F(FormatTest, IndentationWithinColumnLimitNotPossible) {
3973 TEST_F(FormatTest, IncorrectAccessSpecifier) {
3989 TEST_F(FormatTest, IncorrectCodeUnbalancedBraces) {
3994 TEST_F(FormatTest, IncorrectCodeDoNoWhile) {
4005 TEST_F(FormatTest, IncorrectCodeMissingParens) {
4013 TEST_F(FormatTest, DoesNotTouchUnwrappedLinesWithErrors) {
4020 TEST_F(FormatTest, IncorrectCodeErrorDetection) {
4038 TEST_F(FormatTest, LayoutCallsInsideBraceInitializers) {
4046 TEST_F(FormatTest, LayoutBraceInitializersInReturnStatement) {
4050 TEST_F(FormatTest, LayoutCxx11ConstructorBraceInitializers) {
4099 TEST_F(FormatTest, PullTrivialFunctionDefinitionsIntoSingleLine) {
4125 TEST_F(FormatTest, UnderstandContextOfRecordTypeKeywords) {
4181 TEST_F(FormatTest, DoNotInterfereWithErrorAndWarning) {
4188 TEST_F(FormatTest, FormatHashIfExpressions) {
4199 TEST_F(FormatTest, MergeHandlingInTheFaceOfPreprocessorDirectives) {
4232 TEST_F(FormatTest, BlockCommentsInControlLoops) {
4252 TEST_F(FormatTest, BlockComments) {
4355 TEST_F(FormatTest, BlockCommentsInMacros) {
4376 TEST_F(FormatTest, BlockCommentsAtEndOfLine) {
4400 TEST_F(FormatTest, IndentLineCommentsInStartOfBlockAtEndOfFile) {
4407 TEST_F(FormatTest, FormatStarDependingOnContext) {
4422 TEST_F(FormatTest, SpecialTokensAtEndOfLine) {
4431 TEST_F(FormatTest, FormatForObjectiveCMethodDecls) {
4480 TEST_F(FormatTest, FormatObjCBlocks) {
4485 TEST_F(FormatTest, FormatObjCInterface) {
4588 TEST_F(FormatTest, FormatObjCImplementation) {
4656 TEST_F(FormatTest, FormatObjCProtocol) {
4694 TEST_F(FormatTest, FormatObjCMethodDeclarations) {
4706 TEST_F(FormatTest, FormatObjCMethodExpr) {
4843 TEST_F(FormatTest, ObjCAt) {
4877 TEST_F(FormatTest, ObjCSnippets) {
4904 TEST_F(FormatTest, ObjCLiterals) {
4953 TEST_F(FormatTest, ReformatRegionAdjustsIndent) {
5038 TEST_F(FormatTest, BreakStringLiterals) {
5186 TEST_F(FormatTest, DontSplitStringLiteralsWithEscapedNewlines) {
5196 TEST_F(FormatTest, SkipsUnknownStringLiterals) {
5215 TEST_F(FormatTest, DoesNotTryToParseUDLiteralsInPreCpp11Code) {
5220 TEST_F(FormatTest, BreakStringLiteralsBeforeUnbreakableTokenSequence) {
5262 TEST_F(FormatTest, DoNotBreakStringLiteralsInEscapeSequence) {
5302 TEST_F(FormatTest, DoNotCreateUnreasonableUnwrappedLines) {
5314 TEST_F(FormatTest, FormatsClosingBracesInEmptyNestedBlocks) {
5322 TEST_F(FormatTest, ConfigurableIndentWidth) {
5344 TEST_F(FormatTest, ConfigurableFunctionDeclarationIndentAfterType) {
5350 TEST_F(FormatTest, ConfigurableUseOfTab) {
5413 TEST_F(FormatTest, LinuxBraceBreaking) {
5436 TEST_F(FormatTest, StroustrupBraceBreaking) {
5457 TEST_F(FormatTest, AllmanBraceBreaking) {
5566 TEST_F(FormatTest, UnderstandsPragmas) {
5578 TEST_F(FormatTest, GetsPredefinedStyleByName) {
5609 TEST_F(FormatTest, ParsesConfiguration) {
5681 TEST_F(FormatTest, ConfigurationRoundTripTest) {
5689 TEST_F(FormatTest, WorksFor8bitEncodings) {
5703 TEST_F(FormatTest, CountsUTF8CharactersProperly) {
5718 TEST_F(FormatTest, SplitsUTF8Strings) {
5733 TEST_F(FormatTest, SplitsUTF8LineComments) {
5747 TEST_F(FormatTest, SplitsUTF8BlockComments) {
5771 TEST_F(FormatTest, FormatsWithWebKitStyle) {