Home | History | Annotate | Download | only in Format

Lines Matching refs:TEST_F

97 TEST_F(FormatTest, MessUp) {
109 TEST_F(FormatTest, DoesNotChangeCorrectlyFormattedCode) {
113 TEST_F(FormatTest, FormatsGlobalStatementsAt0) {
120 TEST_F(FormatTest, FormatsUnwrappedLinesAtFirstFormat) {
124 TEST_F(FormatTest, FormatsNestedBlockStatements) {
128 TEST_F(FormatTest, FormatsNestedCall) {
134 TEST_F(FormatTest, NestedNameSpecifiers) {
141 TEST_F(FormatTest, OnlyGeneratesNecessaryReplacements) {
163 TEST_F(FormatTest, RemovesEmptyLines) {
278 TEST_F(FormatTest, RecognizesBinaryOperatorKeywords) {
293 TEST_F(FormatTest, FormatIfWithoutCompoundStatement) {
348 TEST_F(FormatTest, FormatLoopsWithoutCompoundStatement) {
371 TEST_F(FormatTest, FormatShortBracedStatements) {
428 TEST_F(FormatTest, ParseIfElse) {
459 TEST_F(FormatTest, ElseIf) {
486 TEST_F(FormatTest, FormatsForLoop) {
559 TEST_F(FormatTest, RangeBasedForLoops) {
570 TEST_F(FormatTest, ForEachLoops) {
591 TEST_F(FormatTest, FormatsWhileLoop) {
601 TEST_F(FormatTest, FormatsDoWhile) {
610 TEST_F(FormatTest, FormatsSwitchStatement) {
754 TEST_F(FormatTest, CaseRanges) {
763 TEST_F(FormatTest, ShortCaseLabels) {
818 TEST_F(FormatTest, FormatsLabels) {
845 TEST_F(FormatTest, UnderstandsSingleLineComments) {
1089 TEST_F(FormatTest, KeepsParameterWithTrailingCommentsOnTheirOwnLine) {
1115 TEST_F(FormatTest, RemovesTrailingWhitespaceOfComments) {
1124 TEST_F(FormatTest, UnderstandsBlockComments) {
1163 TEST_F(FormatTest, AlignsBlockComments) {
1237 TEST_F(FormatTest, CommentReflowingCanBeTurnedOff) {
1244 TEST_F(FormatTest, CorrectlyHandlesLengthOfBlockComments) {
1268 TEST_F(FormatTest, DontBreakNonTrailingBlockComments) {
1275 TEST_F(FormatTest, SplitsLongCxxComments) {
1358 TEST_F(FormatTest, PreservesHangingIndentInCxxComments) {
1373 TEST_F(FormatTest, DontSplitLineCommentsWithEscapedNewlines) {
1399 TEST_F(FormatTest, DontSplitLineCommentsWithPragmas) {
1410 TEST_F(FormatTest, PriorityOfCommentBreaking) {
1440 TEST_F(FormatTest, MultiLineCommentsInDefines) {
1463 TEST_F(FormatTest, ParsesCommentsAdjacentToPPDirectives) {
1472 TEST_F(FormatTest, SplitsLongLinesInComments) {
1650 TEST_F(FormatTest, SplitsLongLinesInCommentsInPreprocessor) {
1687 TEST_F(FormatTest, CommentsInStaticInitializers) {
1753 TEST_F(FormatTest, IgnoresIf0Contents) {
1894 TEST_F(FormatTest, DoesNotBreakSemiAfterClassDecl) {
1898 TEST_F(FormatTest, UnderstandsAccessSpecifiers) {
1939 TEST_F(FormatTest, SeparatesLogicalBlocks) {
1997 TEST_F(FormatTest, FormatsClasses) {
2032 TEST_F(FormatTest, FormatsVariableDeclarationsAfterStructOrClass) {
2038 TEST_F(FormatTest, FormatsEnum) {
2107 TEST_F(FormatTest, FormatsEnumsWithErrors) {
2121 TEST_F(FormatTest, FormatsEnumStruct) {
2138 TEST_F(FormatTest, FormatsEnumClass) {
2155 TEST_F(FormatTest, FormatsEnumTypes) {
2164 TEST_F(FormatTest, FormatsNSEnums) {
2191 TEST_F(FormatTest, FormatsBitfields) {
2208 TEST_F(FormatTest, FormatsNamespaces) {
2288 TEST_F(FormatTest, FormatsExternC) { verifyFormat("extern \"C\" {\nint a;"); }
2290 TEST_F(FormatTest, FormatsInlineASM) {
2334 TEST_F
2359 TEST_F(FormatTest, FormatSEHTryCatch) {
2379 TEST_F(FormatTest, IncompleteTryCatchBlocks) {
2394 TEST_F(FormatTest, FormatTryCatchBraceStyles) {
2459 TEST_F(FormatTest, FormatObjCTryCatch) {
2474 TEST_F(FormatTest, FormatObjCAutoreleasepool) {
2495 TEST_F(FormatTest, StaticInitializers) {
2522 TEST_F(FormatTest, DesignatedInitializers) {
2539 TEST_F(FormatTest, NestedStaticInitializers) {
2593 TEST_F(FormatTest, FormatsSmallMacroDefinitionsInSingleLine) {
2599 TEST_F(FormatTest, DoesNotBreakPureVirtualFunctionDefinition) {
2612 TEST_F(FormatTest, BreaksStringLiteralsOnlyInDefine) {
2624 TEST_F(FormatTest, UnderstandsLinePPDirective) {
2629 TEST_F(FormatTest, LayoutUnknownPPDirective) {
2634 TEST_F(FormatTest, UnescapedEndOfLineEndsPPDirective) {
2641 TEST_F(FormatTest, EndOfFileEndsPPDirective) {
2647 TEST_F(FormatTest, DoesntRemoveUnknownTokens) {
2665 TEST_F(FormatTest, IndentsPPDirectiveInReducedSpace) {
2679 TEST_F(FormatTest, HandlePreprocessorDirectiveContext) {
2695 TEST_F(FormatTest, LayoutSingleHash) { EXPECT_EQ("#\na;", format("#\na;")); }
2697 TEST_F(FormatTest, LayoutCodeInMacroDefinitions) {
2707 TEST_F(FormatTest, LayoutRemainingTokens) { EXPECT_EQ("{}", format("{}")); }
2709 TEST_F(FormatTest, MacroDefinitionInsideStatement) {
2716 TEST_F(FormatTest, HashInMacroDefinition) {
2736 TEST_F(FormatTest, RespectWhitespaceInMacroDefinitions) {
2741 TEST_F(FormatTest, EmptyLinesInMacroDefinitions) {
2766 TEST_F(FormatTest, MacroDefinitionsWithIncompleteCode) {
2805 TEST_F
2851 TEST_F(FormatTest, MacroCallsWithoutTrailingSemicolon) {
2994 TEST_F(FormatTest, LayoutMacroDefinitionsStatementsSpanningBlocks) {
3002 TEST_F(FormatTest, IndentPreprocessorDirectivesAtZero) {
3006 TEST_F(FormatTest, FormatHashIfNotAtStartOfLine) {
3010 TEST_F(FormatTest, FormatUnbalancedStructuralElements) {
3017 TEST_F(FormatTest, EscapedNewlines) {
3027 TEST_F(FormatTest, DontCrashOnBlockComments) {
3038 TEST_F(FormatTest, CalculateSpaceOnConsecutiveLinesInMacro) {
3046 TEST_F(FormatTest, MixingPreprocessorDirectivesAndNormalCode) {
3062 TEST_F(FormatTest, LayoutStatementsAroundPreprocessorDirectives) {
3137 TEST_F(FormatTest, GraciouslyHandleIncorrectPreprocessorConditions) {
3142 TEST_F(FormatTest, FormatsJoinedLinesOnSubsequentRuns) {
3154 TEST_F(FormatTest, LayoutBlockInsideParens) {
3202 TEST_F(FormatTest, LayoutBlockInsideStatement) {
3208 TEST_F(FormatTest, LayoutNestedBlocks) {
3284 TEST_F(FormatTest, FormatNestedBlocksInMacros) {
3305 TEST_F(FormatTest, PutEmptyBlocksIntoOneLine) {
3311 TEST_F(FormatTest, FormatBeginBlockEndMacros) {
3333 TEST_F(FormatTest, PreventConfusingIndents) {
3360 TEST_F(FormatTest, LineBreakingInBinaryExpressions) {
3442 TEST_F(FormatTest, ExpressionIndentation) {
3478 TEST_F(FormatTest, ExpressionIndentationBreakingBeforeOperators) {
3551 TEST_F(FormatTest, NoOperandAlignment) {
3583 TEST_F(FormatTest, BreakingBeforeNonAssigmentOperators) {
3592 TEST_F(FormatTest, ConstructorInitializers) {
3701 TEST_F(FormatTest, MemoizationTests) {
3780 TEST_F(FormatTest, BreaksAsHighAsPossible) {
3791 TEST_F(FormatTest, BreaksFunctionDeclarations) {
3895 TEST_F(FormatTest, TrailingReturnType) {
3914 TEST_F(FormatTest, BreaksFunctionDeclarationsWithTrailingTokens) {
4007 TEST_F(FormatTest, FunctionAnnotations) {
4019 verifyFormat("TEST_F(ThisIsATestFixtureeeeeeeeeeeee,\n"
4029 TEST_F(FormatTest, BreaksDesireably) {
4106 TEST_F(FormatTest, FormatsDeclarationsOnePerLine) {
4138 TEST_F(FormatTest, FormatsOneParameterPerLineIfNecessary) {
4203 TEST_F(FormatTest, AdaptiveOnePerLineFormatting) {
4227 TEST_F(FormatTest, FormatsBuilderPattern) {
4338 TEST_F(FormatTest, BreaksAccordingToOperatorPrecedence) {
4380 TEST_F(FormatTest, BreaksAfterAssignments) {
4398 TEST_F(FormatTest, AlignsAfterAssignments) {
4417 TEST_F(FormatTest, AlignsAfterReturn) {
4440 TEST_F(FormatTest, AlignsAfterOpenBracket) {
4519 TEST_F(FormatTest, ParenthesesAndOperandAlignment) {
4541 TEST_F(FormatTest, BreaksConditionalExpressions) {
4672 TEST_F(FormatTest, BreaksConditionalExpressionsAfterOperator) {
4768 TEST_F(FormatTest, DeclarationsOfMultipleVariables) {
4800 TEST_F(FormatTest, ConditionalExpressionsInBrackets) {
4807 TEST_F(FormatTest, AlignsStringLiterals) {
4866 TEST_F(FormatTest, ReturnTypeBreakingStyle) {
5000 TEST_F(FormatTest, AlwaysBreakBeforeMultilineStrings) {
5077 TEST_F(FormatTest, AlignsPipes) {
5200 TEST_F(FormatTest, UnderstandsEquals) {
5218 TEST_F(FormatTest, WrapsAtFunctionCallsIfNecessary) {
5314 TEST_F(FormatTest, WrapsTemplateDeclarations) {
5399 TEST_F(FormatTest, WrapsAtNestedNameSpecifiers) {
5434 TEST_F(FormatTest, UnderstandsTemplateParameters) {
5495 TEST_F(FormatTest, UnderstandsBinaryOperators) {
5500 TEST_F(FormatTest, UnderstandsPointersToMembers) {
5524 TEST_F(FormatTest, UnderstandsUnaryOperators) {
5562 TEST_F(FormatTest, DoesNotIndentRelativeToUnaryOperators) {
5572 TEST_F(FormatTest, UnderstandsOverloadedOperators) {
5618 TEST_F(FormatTest, UnderstandsFunctionRefQualification) {
5661 TEST_F(FormatTest, UnderstandsNewAndDelete) {
5676 TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
5909 TEST_F(FormatTest, UnderstandsAttributes) {
5920 TEST_F(FormatTest, UnderstandsEllipsis) {
5930 TEST_F(FormatTest, AdaptivelyFormatsPointersAndReferences) {
5963 TEST_F(FormatTest, UnderstandsRvalueReferences) {
5984 TEST_F(FormatTest, FormatsBinaryOperatorsPrecedingEquals) {
5992 TEST_F(FormatTest, FormatsCasts) {
6078 TEST_F(FormatTest, FormatsFunctionTypes) {
6104 TEST_F(FormatTest, FormatsPointersToArrayTypes) {
6109 TEST_F(FormatTest, BreaksLongVariableDeclarations) {
6128 TEST_F(FormatTest, BreaksLongDeclarations) {
6219 TEST_F(FormatTest, FormatsArrays) {
6254 TEST_F(FormatTest, LineStartsWithSpecialCharacter) {
6259 TEST_F(FormatTest, HandlesIncludeDirectives) {
6304 TEST_F(FormatTest, IncompleteParameterLists) {
6317 TEST_F(FormatTest, IncorrectCodeTrailingStuff) {
6332 TEST_F(FormatTest, IncorrectCodeMissingSemicolon) {
6350 TEST_F(FormatTest, IndentationWithinColumnLimitNotPossible) {
6361 TEST_F(FormatTest, IncorrectAccessSpecifier) {
6377 TEST_F(FormatTest, IncorrectCodeUnbalancedBraces) {
6383 TEST_F(FormatTest, IncorrectCodeDoNoWhile) {
6394 TEST_F(FormatTest, IncorrectCodeMissingParens) {
6402 TEST_F(FormatTest, DoesNotTouchUnwrappedLinesWithErrors) {
6409 TEST_F(FormatTest, IncorrectCodeErrorDetection) {
6427 TEST_F(FormatTest, LayoutCallsInsideBraceInitializers) {
6434 TEST_F(FormatTest, LayoutBraceInitializersInReturnStatement) {
6438 TEST_F(FormatTest, LayoutCxx11BraceInitializers) {
6614 TEST_F(FormatTest, FormatsBracedListsInColumnLayout) {
6738 TEST_F(FormatTest, PullTrivialFunctionDefinitionsIntoSingleLine) {
6829 TEST_F(FormatTest, PullInlineFunctionDefinitionsIntoSingleLine) {
6842 TEST_F(FormatTest, UnderstandContextOfRecordTypeKeywords) {
6902 TEST_F(FormatTest, DoNotInterfereWithErrorAndWarning) {
6912 TEST_F(FormatTest, FormatHashIfExpressions) {
6926 TEST_F(FormatTest, MergeHandlingInTheFaceOfPreprocessorDirectives) {
6971 TEST_F(FormatTest, BlockCommentsInControlLoops) {
6991 TEST_F(FormatTest, BlockComments) {
7102 TEST_F(FormatTest, BlockCommentsInMacros) {
7123 TEST_F(FormatTest, BlockCommentsAtEndOfLine) {
7147 TEST_F(FormatTest, IndentLineCommentsInStartOfBlockAtEndOfFile) {
7153 TEST_F(FormatTest, FormatStarDependingOnContext) {
7168 TEST_F(FormatTest, SpecialTokensAtEndOfLine) {
7177 TEST_F(FormatTest, FormatForObjectiveCMethodDecls) {
7243 TEST_F(FormatTest, FormatObjCInterface) {
7356 TEST_F(FormatTest, FormatObjCImplementation) {
7432 TEST_F(FormatTest, FormatObjCProtocol) {
7474 TEST_F(FormatTest, FormatObjCMethodDeclarations) {
7511 TEST_F(FormatTest, FormatObjCMethodExpr) {
7713 TEST_F(FormatTest, ObjCAt) {
7747 TEST_F(FormatTest, ObjCSnippets) {
7780 TEST_F(FormatTest, ObjCForIn) {
7793 TEST_F(FormatTest, ObjCLiterals) {
7811 TEST_F(FormatTest, ObjCDictLiterals) {
7874 TEST_F(FormatTest, ObjCArrayLiterals) {
7922 TEST_F(FormatTest, BreaksStringLiterals) {
8083 TEST_F(FormatTest, FullyRemoveEmptyLines) {
8090 TEST_F(FormatTest, BreaksStringLiteralsWithTabs) {
8100 TEST_F(FormatTest, BreaksWideAndNSStringLiterals) {
8127 TEST_F(FormatTest, DoesNotBreakRawStringLiterals) {
8137 TEST_F(FormatTest, BreaksStringLiteralsWithin_TMacro) {
8177 TEST_F(FormatTest, DontSplitStringLiteralsWithEscapedNewlines) {
8187 TEST_F(FormatTest, CountsCharactersInMultilineRawStringLiterals) {
8236 TEST_F(FormatTest, SkipsUnknownStringLiterals) {
8244 TEST_F(FormatTest, DoesNotTryToParseUDLiteralsInPreCpp11Code) {
8251 TEST_F(FormatTest, UnderstandsCpp1y) { verifyFormat("int bi{1'000'000};"); }
8253 TEST_F(FormatTest, BreakStringLiteralsBeforeUnbreakableTokenSequence) {
8301 TEST_F(FormatTest, DoNotBreakStringLiteralsInEscapeSequence) {
8336 TEST_F(FormatTest, DoNotCreateUnreasonableUnwrappedLines) {
8345 TEST_F(FormatTest, DoNotPrematurelyEndUnwrappedLineForReturnStatements) {
8350 TEST_F(FormatTest, FormatsClosingBracesInEmptyNestedBlocks) {
8358 TEST_F(FormatTest, ConfigurableIndentWidth) {
8380 TEST_F(FormatTest, ConfigurableFunctionDeclarationIndentAfterType) {
8386 TEST_F(FormatTest, ConfigurableUseOfTab) {
8835 TEST_F(FormatTest, CalculatesOriginalColumn) {
8868 TEST_F(FormatTest, ConfigurableSpaceBeforeParens) {
8952 TEST_F(FormatTest, ConfigurableSpacesInParentheses) {
9058 TEST_F(FormatTest, ConfigurableSpacesInSquareBrackets) {
9080 TEST_F(FormatTest, ConfigurableSpaceBeforeAssignmentOperators) {
9092 TEST_F(FormatTest, AlignConsecutiveAssignments) {
9268 TEST_F(FormatTest, AlignConsecutiveDeclarations) {
9509 TEST_F(FormatTest, LinuxBraceBreaking) {
9550 TEST_F(FormatTest, MozillaBraceBreaking) {
9594 TEST_F(FormatTest, StroustrupBraceBreaking) {
9656 TEST_F(FormatTest, AllmanBraceBreaking) {
9842 TEST_F(FormatTest, GNUBraceBreaking) {
9966 TEST_F(FormatTest, WebKitBraceBreaking) {
10004 TEST_F(FormatTest, CatchExceptionReferenceBinding) {
10013 TEST_F(FormatTest, UnderstandsPragmas) {
10023 TEST_F(FormatTest, UnderstandPragmaOption) {
10034 TEST_F(FormatTest, GetsPredefinedStyleByName) {
10078 TEST_F(FormatTest, GetsCorrectBasedOnStyle) {
10148 TEST_F(FormatTest, ParsesConfigurationBools) {
10204 TEST_F(FormatTest, ParsesConfiguration) {
10386 TEST_F(FormatTest, ParsesConfigurationWithLanguages) {
10488 TEST_F(FormatTest, UsesLanguageForBasedOnStyle) {
10509 TEST_F(FormatTest, ConfigurationRoundTripTest) {
10518 TEST_F(FormatTest, WorksFor8bitEncodings) {
10529 TEST_F(FormatTest, HandlesUTF8BOM) {
10540 TEST_F(FormatTest, CountsUTF8CharactersProperly) {
10554 TEST_F(FormatTest, SplitsUTF8Strings) {
10591 TEST_F(FormatTest, HandlesDoubleWidthCharsInMultiLineStrings) {
10600 TEST_F(FormatTest, SplitsUTF8LineComments) {
10616 TEST_F(FormatTest, SplitsUTF8BlockComments) {
10642 TEST_F(FormatTest, ConstructorInitializerIndentWidth) {
10676 TEST_F(FormatTest, BreakConstructorInitializersBeforeComma) {
10753 TEST_F(FormatTest, Destructors) {
10758 TEST_F(FormatTest, FormatsWithWebKitStyle) {
10916 TEST_F(FormatTest, FormatsLambdas) {
11058 TEST_F(FormatTest, FormatsBlocks) {
11159 TEST_F(FormatTest, FormatsBlocksWithZeroColumnWidth) {
11226 TEST_F(FormatTest, SupportsCRLF) {
11272 TEST_F(FormatTest, MunchSemicolonAfterBlocks) {
11279 TEST_F(FormatTest, ConfigurableContinuationIndentWidth) {
11297 TEST_F(FormatTest, SpacesInAngles) {
11325 TEST_F(FormatTest, TripleAngleBrackets) {
11337 TEST_F(FormatTest, MergeLessLessAtEnd) {
11346 TEST_F(FormatTest, HandleUnbalancedImplicitBracesAcrossPPBranches) {
11360 TEST_F(FormatTest, HandleConflictMarkers) {
11452 TEST_F(FormatTest, DisableRegions) {
11475 TEST_F(FormatTest, DoNotCrashOnInvalidInput) {
11480 TEST_F(FormatTest, FormatsTableGenCode) {
11530 TEST_F(ReplacementTest, FormatCodeAfterReplacements) {
11564 TEST_F(ReplacementTest, SortIncludesAfterReplacement) {