reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Derived Classes

tools/clang/unittests/Format/FormatTest.cpp
  111 TEST_F(FormatTest, MessUp) {
  119 TEST_F(FormatTest, DefaultLLVMStyleIsCpp) {
  123 TEST_F(FormatTest, LLVMStyleOverride) {
  132 TEST_F(FormatTest, DoesNotChangeCorrectlyFormattedCode) {
  136 TEST_F(FormatTest, FormatsGlobalStatementsAt0) {
  143 TEST_F(FormatTest, FormatsUnwrappedLinesAtFirstFormat) {
  147 TEST_F(FormatTest, FormatsNestedBlockStatements) {
  151 TEST_F(FormatTest, FormatsNestedCall) {
  157 TEST_F(FormatTest, NestedNameSpecifiers) {
  166 TEST_F(FormatTest, OnlyGeneratesNecessaryReplacements) {
  188 TEST_F(FormatTest, RemovesEmptyLines) {
  398 TEST_F(FormatTest, RecognizesBinaryOperatorKeywords) {
  409 TEST_F(FormatTest, RecognizesUnaryOperatorKeywords) {
  423 TEST_F(FormatTest, FormatIfWithoutCompoundStatement) {
  503 TEST_F(FormatTest, FormatIfWithoutCompoundStatementButElseWith) {
  538 TEST_F(FormatTest, FormatLoopsWithoutCompoundStatement) {
  561 TEST_F(FormatTest, FormatShortBracedStatements) {
  717 TEST_F(FormatTest, ShortBlocksInMacrosDontMergeWithCodeAfterMacro) {
  734 TEST_F(FormatTest, ParseIfElse) {
  791 TEST_F(FormatTest, ElseIf) {
  848 TEST_F(FormatTest, FormatsForLoop) {
  932 TEST_F(FormatTest, RangeBasedForLoops) {
  943 TEST_F(FormatTest, ForEachLoops) {
  964 TEST_F(FormatTest, FormatsWhileLoop) {
  974 TEST_F(FormatTest, FormatsDoWhile) {
  983 TEST_F(FormatTest, FormatsSwitchStatement) {
 1216 TEST_F(FormatTest, CaseRanges) {
 1225 TEST_F(FormatTest, ShortCaseLabels) {
 1398 TEST_F(FormatTest, FormatsLabels) {
 1445 TEST_F(FormatTest, MultiLineControlStatements) {
 1574 TEST_F(FormatTest, DoesNotBreakSemiAfterClassDecl) {
 1578 TEST_F(FormatTest, UnderstandsAccessSpecifiers) {
 1636 TEST_F(FormatTest, SeparatesLogicalBlocks) {
 1694 TEST_F(FormatTest, FormatsClasses) {
 1729 TEST_F(FormatTest, BreakInheritanceStyle) {
 1765 TEST_F(FormatTest, FormatsVariableDeclarationsAfterStructOrClass) {
 1771 TEST_F(FormatTest, FormatsEnum) {
 1840 TEST_F(FormatTest, FormatsEnumsWithErrors) {
 1854 TEST_F(FormatTest, FormatsEnumStruct) {
 1871 TEST_F(FormatTest, FormatsEnumClass) {
 1888 TEST_F(FormatTest, FormatsEnumTypes) {
 1897 TEST_F(FormatTest, FormatsTypedefEnum) {
 1923 TEST_F(FormatTest, FormatsNSEnums) {
 1965 TEST_F(FormatTest, FormatsBitfields) {
 1982 TEST_F(FormatTest, FormatsNamespaces) {
 2108 TEST_F(FormatTest, NamespaceMacros) {
 2215 TEST_F(FormatTest, FormatsCompactNamespaces) {
 2351 TEST_F(FormatTest, FormatsExternC) {
 2388 TEST_F(FormatTest, FormatsInlineASM) {
 2432 TEST_F(FormatTest, FormatTryCatch) {
 2457 TEST_F(FormatTest, FormatSEHTryCatch) {
 2477 TEST_F(FormatTest, IncompleteTryCatchBlocks) {
 2492 TEST_F(FormatTest, FormatTryCatchBraceStyles) {
 2567 TEST_F(FormatTest, StaticInitializers) {
 2594 TEST_F(FormatTest, DesignatedInitializers) {
 2624 TEST_F(FormatTest, NestedStaticInitializers) {
 2678 TEST_F(FormatTest, FormatsSmallMacroDefinitionsInSingleLine) {
 2684 TEST_F(FormatTest, DoesNotBreakPureVirtualFunctionDefinition) {
 2697 TEST_F(FormatTest, BreaksStringLiteralsOnlyInDefine) {
 2709 TEST_F(FormatTest, UnderstandsLinePPDirective) {
 2714 TEST_F(FormatTest, LayoutUnknownPPDirective) {
 2719 TEST_F(FormatTest, UnescapedEndOfLineEndsPPDirective) {
 2726 TEST_F(FormatTest, EndOfFileEndsPPDirective) {
 2732 TEST_F(FormatTest, DoesntRemoveUnknownTokens) {
 2750 TEST_F(FormatTest, IndentsPPDirectiveInReducedSpace) {
 2764 TEST_F(FormatTest, HandlePreprocessorDirectiveContext) {
 2780 TEST_F(FormatTest, LayoutSingleHash) { EXPECT_EQ("#\na;", format("#\na;")); }
 2782 TEST_F(FormatTest, LayoutCodeInMacroDefinitions) {
 2792 TEST_F(FormatTest, LayoutRemainingTokens) { EXPECT_EQ("{}", format("{}")); }
 2794 TEST_F(FormatTest, MacroDefinitionInsideStatement) {
 2801 TEST_F(FormatTest, HashInMacroDefinition) {
 2821 TEST_F(FormatTest, RespectWhitespaceInMacroDefinitions) {
 2832 TEST_F(FormatTest, EmptyLinesInMacroDefinitions) {
 2857 TEST_F(FormatTest, MacroDefinitionsWithIncompleteCode) {
 2896 TEST_F(FormatTest, MacrosWithoutTrailingSemicolon) {
 2948 TEST_F(FormatTest, MacroCallsWithoutTrailingSemicolon) {
 3141 TEST_F(FormatTest, LayoutMacroDefinitionsStatementsSpanningBlocks) {
 3149 TEST_F(FormatTest, IndentPreprocessorDirectives) {
 3520 TEST_F(FormatTest, FormatHashIfNotAtStartOfLine) {
 3524 TEST_F(FormatTest, FormatUnbalancedStructuralElements) {
 3531 TEST_F(FormatTest, EscapedNewlines) {
 3591 TEST_F(FormatTest, CalculateSpaceOnConsecutiveLinesInMacro) {
 3599 TEST_F(FormatTest, MixingPreprocessorDirectivesAndNormalCode) {
 3615 TEST_F(FormatTest, LayoutStatementsAroundPreprocessorDirectives) {
 3690 TEST_F(FormatTest, GraciouslyHandleIncorrectPreprocessorConditions) {
 3695 TEST_F(FormatTest, FormatsJoinedLinesOnSubsequentRuns) {
 3707 TEST_F(FormatTest, LayoutBlockInsideParens) {
 3755 TEST_F(FormatTest, LayoutBlockInsideStatement) {
 3761 TEST_F(FormatTest, LayoutNestedBlocks) {
 3838 TEST_F(FormatTest, FormatNestedBlocksInMacros) {
 3859 TEST_F(FormatTest, PutEmptyBlocksIntoOneLine) {
 3870 TEST_F(FormatTest, FormatBeginBlockEndMacros) {
 3895 TEST_F(FormatTest, PreventConfusingIndents) {
 3923 TEST_F(FormatTest, LineBreakingInBinaryExpressions) {
 4025 TEST_F(FormatTest, ExpressionIndentation) {
 4074 TEST_F(FormatTest, ExpressionIndentationBreakingBeforeOperators) {
 4161 TEST_F(FormatTest, EnforcedOperatorWraps) {
 4170 TEST_F(FormatTest, NoOperandAlignment) {
 4206 TEST_F(FormatTest, BreakingBeforeNonAssigmentOperators) {
 4215 TEST_F(FormatTest, AllowBinPackingInsideArguments) {
 4269 TEST_F(FormatTest, ConstructorInitializers) {
 4378 TEST_F(FormatTest, AllowAllConstructorInitializersOnNextLine) {
 4511 TEST_F(FormatTest, AllowAllArgumentsOnNextLine) {
 4563 TEST_F(FormatTest, BreakConstructorInitializersAfterColon) {
 4751 TEST_F(FormatTest, MemoizationTests) {
 4831 TEST_F(FormatTest, BreaksAsHighAsPossible) {
 4842 TEST_F(FormatTest, BreaksFunctionDeclarations) {
 4945 TEST_F(FormatTest, DontBreakBeforeQualifiedOperator) {
 4957 TEST_F(FormatTest, TrailingReturnType) {
 4980 TEST_F(FormatTest, BreaksFunctionDeclarationsWithTrailingTokens) {
 5080 TEST_F(FormatTest, FunctionAnnotations) {
 5102 TEST_F(FormatTest, BreaksDesireably) {
 5185 TEST_F(FormatTest, FormatsDeclarationsOnePerLine) {
 5217 TEST_F(FormatTest, FormatsOneParameterPerLineIfNecessary) {
 5282 TEST_F(FormatTest, AdaptiveOnePerLineFormatting) {
 5306 TEST_F(FormatTest, FormatsBuilderPattern) {
 5450 TEST_F(FormatTest, BreaksAccordingToOperatorPrecedence) {
 5492 TEST_F(FormatTest, BreaksAfterAssignments) {
 5510 TEST_F(FormatTest, ConfigurableBreakAssignmentPenalty) {
 5522 TEST_F(FormatTest, AlignsAfterAssignments) {
 5541 TEST_F(FormatTest, AlignsAfterReturn) {
 5564 TEST_F(FormatTest, AlignsAfterOpenBracket) {
 5643 TEST_F(FormatTest, ParenthesesAndOperandAlignment) {
 5665 TEST_F(FormatTest, BreaksConditionalExpressions) {
 5803 TEST_F(FormatTest, BreaksConditionalExpressionsAfterOperator) {
 5908 TEST_F(FormatTest, DeclarationsOfMultipleVariables) {
 5942 TEST_F(FormatTest, ConditionalExpressionsInBrackets) {
 5949 TEST_F(FormatTest, AlignsStringLiterals) {
 6008 TEST_F(FormatTest, ReturnTypeBreakingStyle) {
 6198 TEST_F(FormatTest, AlwaysBreakBeforeMultilineStrings) {
 6275 TEST_F(FormatTest, AlignsPipes) {
 6365 TEST_F(FormatTest, KeepStringLabelValuePairsOnALine) {
 6424 TEST_F(FormatTest, UnderstandsEquals) {
 6442 TEST_F(FormatTest, WrapsAtFunctionCallsIfNecessary) {
 6538 TEST_F(FormatTest, WrapsTemplateDeclarations) {
 6652 TEST_F(FormatTest, WrapsTemplateDeclarationsWithComments) {
 6703 TEST_F(FormatTest, WrapsTemplateParameters) {
 6743 TEST_F(FormatTest, WrapsAtNestedNameSpecifiers) {
 6778 TEST_F(FormatTest, UnderstandsTemplateParameters) {
 6849 TEST_F(FormatTest, BitshiftOperatorWidth) {
 6861 TEST_F(FormatTest, UnderstandsBinaryOperators) {
 6866 TEST_F(FormatTest, UnderstandsPointersToMembers) {
 6890 TEST_F(FormatTest, UnderstandsUnaryOperators) {
 6931 TEST_F(FormatTest, DoesNotIndentRelativeToUnaryOperators) {
 6941 TEST_F(FormatTest, UnderstandsOverloadedOperators) {
 6988 TEST_F(FormatTest, UnderstandsFunctionRefQualification) {
 7123 TEST_F(FormatTest, UnderstandsNewAndDelete) {
 7138 TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
 7393 TEST_F(FormatTest, UnderstandsAttributes) {
 7404 TEST_F(FormatTest, UnderstandsSquareAttributes) {
 7437 TEST_F(FormatTest, UnderstandsEllipsis) {
 7447 TEST_F(FormatTest, AdaptivelyFormatsPointersAndReferences) {
 7480 TEST_F(FormatTest, UnderstandsRvalueReferences) {
 7501 TEST_F(FormatTest, FormatsBinaryOperatorsPrecedingEquals) {
 7509 TEST_F(FormatTest, FormatsCasts) {
 7620 TEST_F(FormatTest, FormatsFunctionTypes) {
 7652 TEST_F(FormatTest, FormatsPointersToArrayTypes) {
 7657 TEST_F(FormatTest, BreaksLongVariableDeclarations) {
 7681 TEST_F(FormatTest, BreaksLongDeclarations) {
 7777 TEST_F(FormatTest, FormatsArrays) {
 7812 TEST_F(FormatTest, LineStartsWithSpecialCharacter) {
 7817 TEST_F(FormatTest, HandlesIncludeDirectives) {
 7868 TEST_F(FormatTest, IncompleteParameterLists) {
 7881 TEST_F(FormatTest, IncorrectCodeTrailingStuff) {
 7896 TEST_F(FormatTest, IncorrectCodeMissingSemicolon) {
 7914 TEST_F(FormatTest, IndentationWithinColumnLimitNotPossible) {
 7925 TEST_F(FormatTest, IncorrectAccessSpecifier) {
 7941 TEST_F(FormatTest, IncorrectCodeUnbalancedBraces) {
 7947 TEST_F(FormatTest, IncorrectUnbalancedBracesInMacrosWithUnicode) {
 7959 TEST_F(FormatTest, IncorrectCodeDoNoWhile) {
 7970 TEST_F(FormatTest, IncorrectCodeMissingParens) {
 7978 TEST_F(FormatTest, DoesNotTouchUnwrappedLinesWithErrors) {
 7985 TEST_F(FormatTest, IncorrectCodeErrorDetection) {
 8003 TEST_F(FormatTest, LayoutCallsInsideBraceInitializers) {
 8010 TEST_F(FormatTest, LayoutBraceInitializersInReturnStatement) {
 8014 TEST_F(FormatTest, LayoutCxx11BraceInitializers) {
 8291 TEST_F(FormatTest, FormatsBracedListsInColumnLayout) {
 8446 TEST_F(FormatTest, PullTrivialFunctionDefinitionsIntoSingleLine) {
 8537 TEST_F(FormatTest, PullEmptyFunctionDefinitionsIntoSingleLine) {
 8566 TEST_F(FormatTest, PullInlineFunctionDefinitionsIntoSingleLine) {
 8606 TEST_F(FormatTest, PullInlineOnlyFunctionDefinitionsIntoSingleLine) {
 8652 TEST_F(FormatTest, SplitEmptyFunction) {
 8719 TEST_F(FormatTest, KeepShortFunctionAfterPPElse) {
 8730 TEST_F(FormatTest, SplitEmptyClass) {
 8756 TEST_F(FormatTest, SplitEmptyStruct) {
 8783 TEST_F(FormatTest, SplitEmptyUnion) {
 8806 TEST_F(FormatTest, SplitEmptyNamespace) {
 8834 TEST_F(FormatTest, NeverMergeShortRecords) {
 8908 TEST_F(FormatTest, UnderstandContextOfRecordTypeKeywords) {
 8968 TEST_F(FormatTest, DoNotInterfereWithErrorAndWarning) {
 8978 TEST_F(FormatTest, FormatHashIfExpressions) {
 8992 TEST_F(FormatTest, MergeHandlingInTheFaceOfPreprocessorDirectives) {
 9055 TEST_F(FormatTest, FormatStarDependingOnContext) {
 9070 TEST_F(FormatTest, SpecialTokensAtEndOfLine) {
 9075 TEST_F(FormatTest, SkipsDeeplyNestedLines) {
 9103 TEST_F(FormatTest, FormatForObjectiveCMethodDecls) {
 9171 TEST_F(FormatTest, BreaksStringLiterals) {
 9331 TEST_F(FormatTest, BreaksStringLiteralsAtColumnLimit) {
 9337 TEST_F(FormatTest, FullyRemoveEmptyLines) {
 9344 TEST_F(FormatTest, BreaksStringLiteralsWithTabs) {
 9354 TEST_F(FormatTest, BreaksWideAndNSStringLiterals) {
 9382 TEST_F(FormatTest, DoesNotBreakRawStringLiterals) {
 9392 TEST_F(FormatTest, BreaksStringLiteralsWithin_TMacro) {
 9433 TEST_F(FormatTest, BreaksStringLiteralOperands) {
 9516 TEST_F(FormatTest, DontSplitStringLiteralsWithEscapedNewlines) {
 9526 TEST_F(FormatTest, CountsCharactersInMultilineRawStringLiterals) {
 9578 TEST_F(FormatTest, SkipsUnknownStringLiterals) {
 9586 TEST_F(FormatTest, DoesNotTryToParseUDLiteralsInPreCpp11Code) {
 9593 TEST_F(FormatTest, CppLexVersion) {
 9606 TEST_F(FormatTest, UnderstandsCpp1y) { verifyFormat("int bi{1'000'000};"); }
 9608 TEST_F(FormatTest, BreakStringLiteralsBeforeUnbreakableTokenSequence) {
 9655 TEST_F(FormatTest, DoNotBreakStringLiteralsInEscapeSequence) {
 9690 TEST_F(FormatTest, DoNotCreateUnreasonableUnwrappedLines) {
 9699 TEST_F(FormatTest, DoNotPrematurelyEndUnwrappedLineForReturnStatements) {
 9704 TEST_F(FormatTest, FormatsClosingBracesInEmptyNestedBlocks) {
 9712 TEST_F(FormatTest, ConfigurableIndentWidth) {
 9734 TEST_F(FormatTest, ConfigurableFunctionDeclarationIndentAfterType) {
 9740 TEST_F(FormatTest, ConfigurableUseOfTab) {
10192 TEST_F(FormatTest, ZeroTabWidth) {
10265 TEST_F(FormatTest, CalculatesOriginalColumn) {
10298 TEST_F(FormatTest, ConfigurableSpaceBeforeParens) {
10438 TEST_F(FormatTest, SpaceAfterLogicalNot) {
10449 TEST_F(FormatTest, ConfigurableSpacesInParentheses) {
10556 TEST_F(FormatTest, ConfigurableSpacesInSquareBrackets) {
10577 TEST_F(FormatTest, ConfigurableSpaceBeforeAssignmentOperators) {
10589 TEST_F(FormatTest, ConfigurableSpaceBeforeColon) {
10720 TEST_F(FormatTest, AlignConsecutiveMacros) {
10815 TEST_F(FormatTest, AlignConsecutiveAssignments) {
11005 TEST_F(FormatTest, AlignConsecutiveDeclarations) {
11350 TEST_F(FormatTest, LinuxBraceBreaking) {
11391 TEST_F(FormatTest, MozillaBraceBreaking) {
11436 TEST_F(FormatTest, StroustrupBraceBreaking) {
11498 TEST_F(FormatTest, AllmanBraceBreaking) {
11734 TEST_F(FormatTest, WhitesmithsBraceBreaking) {
11981 TEST_F(FormatTest, GNUBraceBreaking) {
12105 TEST_F(FormatTest, WebKitBraceBreaking) {
12144 TEST_F(FormatTest, CatchExceptionReferenceBinding) {
12153 TEST_F(FormatTest, UnderstandsPragmas) {
12163 TEST_F(FormatTest, UnderstandPragmaOption) {
12169 TEST_F(FormatTest, OptimizeBreakPenaltyVsExcess) {
12300 TEST_F(FormatTest, GetsPredefinedStyleByName) {
12344 TEST_F(FormatTest, GetsCorrectBasedOnStyle) {
12414 TEST_F(FormatTest, ParsesConfigurationBools) {
12482 TEST_F(FormatTest, ParsesConfiguration) {
12820 TEST_F(FormatTest, ParsesConfigurationWithLanguages) {
12922 TEST_F(FormatTest, UsesLanguageForBasedOnStyle) {
12943 TEST_F(FormatTest, ConfigurationRoundTripTest) {
12952 TEST_F(FormatTest, WorksFor8bitEncodings) {
12963 TEST_F(FormatTest, HandlesUTF8BOM) {
12974 TEST_F(FormatTest, CountsUTF8CharactersProperly) {
12988 TEST_F(FormatTest, SplitsUTF8Strings) {
13027 TEST_F(FormatTest, HandlesDoubleWidthCharsInMultiLineStrings) {
13036 TEST_F(FormatTest, SplitsUTF8LineComments) {
13052 TEST_F(FormatTest, SplitsUTF8BlockComments) {
13078 TEST_F(FormatTest, ConstructorInitializerIndentWidth) {
13119 TEST_F(FormatTest, BreakConstructorInitializersBeforeComma) {
13196 TEST_F(FormatTest, Destructors) {
13201 TEST_F(FormatTest, FormatsWithWebKitStyle) {
13368 TEST_F(FormatTest, FormatsLambdas) {
13757 TEST_F(FormatTest, EmptyLinesInLambdas) {
13768 TEST_F(FormatTest, FormatsBlocks) {
13871 TEST_F(FormatTest, FormatsBlocksWithZeroColumnWidth) {
13938 TEST_F(FormatTest, SupportsCRLF) {
13990 TEST_F(FormatTest, MunchSemicolonAfterBlocks) {
13997 TEST_F(FormatTest, ConfigurableContinuationIndentWidth) {
14015 TEST_F(FormatTest, WrappedClosingParenthesisIndent) {
14031 TEST_F(FormatTest, SpacesInAngles) {
14059 TEST_F(FormatTest, SpaceAfterTemplateKeyword) {
14065 TEST_F(FormatTest, TripleAngleBrackets) {
14079 TEST_F(FormatTest, MergeLessLessAtEnd) {
14088 TEST_F(FormatTest, HandleUnbalancedImplicitBracesAcrossPPBranches) {
14102 TEST_F(FormatTest, HandleConflictMarkers) {
14194 TEST_F(FormatTest, DisableRegions) {
14236 TEST_F(FormatTest, DoNotCrashOnInvalidInput) {
14241 TEST_F(FormatTest, FormatsTableGenCode) {
14247 TEST_F(FormatTest, ArrayOfTemplates) {
14257 TEST_F(FormatTest, ArrayAsTemplateType) {
14267 TEST_F(FormatTest, NoSpaceAfterSuper) { verifyFormat("__super::FooBar();"); }
14418 TEST_F(FormatTest, FormatSortsUsingDeclarations) {
14426 TEST_F(FormatTest, UTF8CharacterLiteralCpp03) {
14433 TEST_F(FormatTest, UTF8CharacterLiteralCpp11) {
14439 TEST_F(FormatTest, DoNotFormatLikelyXml) {
14444 TEST_F(FormatTest, StructuredBindings) {
14516 TEST_F(FormatTest, FileAndCode) {
14543 TEST_F(FormatTest, GuessLanguageWithCpp11AttributeSpecifiers) {
14576 TEST_F(FormatTest, GuessLanguageWithCaret) {
14592 TEST_F(FormatTest, GuessedLanguageWithInlineAsmClobbers) {
14631 TEST_F(FormatTest, GuessLanguageWithChildLines) {
14644 TEST_F(FormatTest, TypenameMacros) {
14674 TEST_F(FormatTest, AmbersandInLamda) {
14683 TEST_F(FormatTest, AlternativeOperators) {
14725 TEST_F(FormatTest, STLWhileNotDefineChed) {

References

utils/unittest/googletest/include/gtest/internal/gtest-internal.h
  452   return &(TypeIdHelper<T>::dummy_);