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

References

tools/clang/unittests/Format/FormatTest.cpp
12485   CHECK_PARSE("AccessModifierOffset: -1234", AccessModifierOffset, -1234);
12486   CHECK_PARSE("ConstructorInitializerIndentWidth: 1234",
12488   CHECK_PARSE("ObjCBlockIndentWidth: 1234", ObjCBlockIndentWidth, 1234u);
12489   CHECK_PARSE("ColumnLimit: 1234", ColumnLimit, 1234u);
12490   CHECK_PARSE("MaxEmptyLinesToKeep: 1234", MaxEmptyLinesToKeep, 1234u);
12491   CHECK_PARSE("PenaltyBreakAssignment: 1234", PenaltyBreakAssignment, 1234u);
12492   CHECK_PARSE("PenaltyBreakBeforeFirstCallParameter: 1234",
12494   CHECK_PARSE("PenaltyBreakTemplateDeclaration: 1234",
12496   CHECK_PARSE("PenaltyExcessCharacter: 1234", PenaltyExcessCharacter, 1234u);
12497   CHECK_PARSE("PenaltyReturnTypeOnItsOwnLine: 1234",
12499   CHECK_PARSE("SpacesBeforeTrailingComments: 1234",
12501   CHECK_PARSE("IndentWidth: 32", IndentWidth, 32u);
12502   CHECK_PARSE("ContinuationIndentWidth: 11", ContinuationIndentWidth, 11u);
12503   CHECK_PARSE("CommentPragmas: '// abc$'", CommentPragmas, "// abc$");
12506   CHECK_PARSE("PointerAlignment: Left", PointerAlignment,
12508   CHECK_PARSE("PointerAlignment: Right", PointerAlignment,
12510   CHECK_PARSE("PointerAlignment: Middle", PointerAlignment,
12513   CHECK_PARSE("PointerBindsToType: Left", PointerAlignment,
12515   CHECK_PARSE("PointerBindsToType: Right", PointerAlignment,
12517   CHECK_PARSE("PointerBindsToType: Middle", PointerAlignment,
12521   CHECK_PARSE("Standard: c++03", Standard, FormatStyle::LS_Cpp03);
12522   CHECK_PARSE("Standard: c++11", Standard, FormatStyle::LS_Cpp11);
12523   CHECK_PARSE("Standard: c++14", Standard, FormatStyle::LS_Cpp14);
12524   CHECK_PARSE("Standard: c++17", Standard, FormatStyle::LS_Cpp17);
12525   CHECK_PARSE("Standard: c++20", Standard, FormatStyle::LS_Cpp20);
12526   CHECK_PARSE("Standard: Auto", Standard, FormatStyle::LS_Auto);
12527   CHECK_PARSE("Standard: Latest", Standard, FormatStyle::LS_Latest);
12529   CHECK_PARSE("Standard: Cpp03", Standard, FormatStyle::LS_Cpp03);
12530   CHECK_PARSE("Standard: Cpp11", Standard, FormatStyle::LS_Latest);
12531   CHECK_PARSE("Standard: C++03", Standard, FormatStyle::LS_Cpp03);
12532   CHECK_PARSE("Standard: C++11", Standard, FormatStyle::LS_Cpp11);
12535   CHECK_PARSE("BreakBeforeBinaryOperators: NonAssignment",
12537   CHECK_PARSE("BreakBeforeBinaryOperators: None", BreakBeforeBinaryOperators,
12539   CHECK_PARSE("BreakBeforeBinaryOperators: All", BreakBeforeBinaryOperators,
12542   CHECK_PARSE("BreakBeforeBinaryOperators: false", BreakBeforeBinaryOperators,
12544   CHECK_PARSE("BreakBeforeBinaryOperators: true", BreakBeforeBinaryOperators,
12548   CHECK_PARSE("BreakConstructorInitializers: BeforeComma",
12550   CHECK_PARSE("BreakConstructorInitializers: AfterColon",
12552   CHECK_PARSE("BreakConstructorInitializers: BeforeColon",
12555   CHECK_PARSE("BreakConstructorInitializersBeforeComma: true",
12559   CHECK_PARSE("BreakInheritanceList: BeforeComma", BreakInheritanceList,
12561   CHECK_PARSE("BreakInheritanceList: AfterColon", BreakInheritanceList,
12563   CHECK_PARSE("BreakInheritanceList: BeforeColon", BreakInheritanceList,
12566   CHECK_PARSE("BreakBeforeInheritanceComma: true", BreakInheritanceList,
12570   CHECK_PARSE("AlignAfterOpenBracket: Align", AlignAfterOpenBracket,
12572   CHECK_PARSE("AlignAfterOpenBracket: DontAlign", AlignAfterOpenBracket,
12574   CHECK_PARSE("AlignAfterOpenBracket: AlwaysBreak", AlignAfterOpenBracket,
12577   CHECK_PARSE("AlignAfterOpenBracket: false", AlignAfterOpenBracket,
12579   CHECK_PARSE("AlignAfterOpenBracket: true", AlignAfterOpenBracket,
12583   CHECK_PARSE("AlignEscapedNewlines: DontAlign", AlignEscapedNewlines,
12585   CHECK_PARSE("AlignEscapedNewlines: Left", AlignEscapedNewlines,
12587   CHECK_PARSE("AlignEscapedNewlines: Right", AlignEscapedNewlines,
12590   CHECK_PARSE("AlignEscapedNewlinesLeft: true", AlignEscapedNewlines,
12592   CHECK_PARSE("AlignEscapedNewlinesLeft: false", AlignEscapedNewlines,
12596   CHECK_PARSE("UseTab: Never", UseTab, FormatStyle::UT_Never);
12597   CHECK_PARSE("UseTab: ForIndentation", UseTab, FormatStyle::UT_ForIndentation);
12598   CHECK_PARSE("UseTab: Always", UseTab, FormatStyle::UT_Always);
12599   CHECK_PARSE("UseTab: ForContinuationAndIndentation", UseTab,
12602   CHECK_PARSE("UseTab: false", UseTab, FormatStyle::UT_Never);
12603   CHECK_PARSE("UseTab: true", UseTab, FormatStyle::UT_Always);
12606   CHECK_PARSE("AllowShortBlocksOnASingleLine: Never",
12608   CHECK_PARSE("AllowShortBlocksOnASingleLine: Empty",
12610   CHECK_PARSE("AllowShortBlocksOnASingleLine: Always",
12613   CHECK_PARSE("AllowShortBlocksOnASingleLine: false",
12615   CHECK_PARSE("AllowShortBlocksOnASingleLine: true",
12619   CHECK_PARSE("AllowShortFunctionsOnASingleLine: None",
12621   CHECK_PARSE("AllowShortFunctionsOnASingleLine: Inline",
12623   CHECK_PARSE("AllowShortFunctionsOnASingleLine: Empty",
12625   CHECK_PARSE("AllowShortFunctionsOnASingleLine: All",
12628   CHECK_PARSE("AllowShortFunctionsOnASingleLine: false",
12630   CHECK_PARSE("AllowShortFunctionsOnASingleLine: true",
12634   CHECK_PARSE("SpaceBeforeParens: Never", SpaceBeforeParens,
12636   CHECK_PARSE("SpaceBeforeParens: Always", SpaceBeforeParens,
12638   CHECK_PARSE("SpaceBeforeParens: ControlStatements", SpaceBeforeParens,
12640   CHECK_PARSE("SpaceBeforeParens: NonEmptyParentheses", SpaceBeforeParens,
12643   CHECK_PARSE("SpaceAfterControlStatementKeyword: false", SpaceBeforeParens,
12645   CHECK_PARSE("SpaceAfterControlStatementKeyword: true", SpaceBeforeParens,
12650   CHECK_PARSE("BasedOnStyle: LLVM", ColumnLimit, BaseStyle.ColumnLimit);
12651   CHECK_PARSE("BasedOnStyle: LLVM\nColumnLimit: 1234", ColumnLimit, 1234u);
12654   CHECK_PARSE("BreakBeforeBraces: Attach", BreakBeforeBraces,
12656   CHECK_PARSE("BreakBeforeBraces: Linux", BreakBeforeBraces,
12658   CHECK_PARSE("BreakBeforeBraces: Mozilla", BreakBeforeBraces,
12660   CHECK_PARSE("BreakBeforeBraces: Stroustrup", BreakBeforeBraces,
12662   CHECK_PARSE("BreakBeforeBraces: Allman", BreakBeforeBraces,
12664   CHECK_PARSE("BreakBeforeBraces: Whitesmiths", BreakBeforeBraces,
12666   CHECK_PARSE("BreakBeforeBraces: GNU", BreakBeforeBraces, FormatStyle::BS_GNU);
12667   CHECK_PARSE("BreakBeforeBraces: WebKit", BreakBeforeBraces,
12669   CHECK_PARSE("BreakBeforeBraces: Custom", BreakBeforeBraces,
12673   CHECK_PARSE("BraceWrapping:\n"
12677   CHECK_PARSE("BraceWrapping:\n"
12680   CHECK_PARSE("BraceWrapping:\n"
12684   CHECK_PARSE("BraceWrapping:\n"
12687   CHECK_PARSE("BraceWrapping:\n"
12692   CHECK_PARSE("AlwaysBreakAfterReturnType: None", AlwaysBreakAfterReturnType,
12694   CHECK_PARSE("AlwaysBreakAfterReturnType: All", AlwaysBreakAfterReturnType,
12696   CHECK_PARSE("AlwaysBreakAfterReturnType: TopLevel",
12698   CHECK_PARSE("AlwaysBreakAfterReturnType: AllDefinitions",
12700   CHECK_PARSE("AlwaysBreakAfterReturnType: TopLevelDefinitions",
12705   CHECK_PARSE("AlwaysBreakTemplateDeclarations: No",
12707   CHECK_PARSE("AlwaysBreakTemplateDeclarations: MultiLine",
12709   CHECK_PARSE("AlwaysBreakTemplateDeclarations: Yes",
12711   CHECK_PARSE("AlwaysBreakTemplateDeclarations: false",
12713   CHECK_PARSE("AlwaysBreakTemplateDeclarations: true",
12717   CHECK_PARSE("AlwaysBreakAfterDefinitionReturnType: None",
12719   CHECK_PARSE("AlwaysBreakAfterDefinitionReturnType: All",
12721   CHECK_PARSE("AlwaysBreakAfterDefinitionReturnType: TopLevel",
12726   CHECK_PARSE("NamespaceIndentation: None", NamespaceIndentation,
12728   CHECK_PARSE("NamespaceIndentation: Inner", NamespaceIndentation,
12730   CHECK_PARSE("NamespaceIndentation: All", NamespaceIndentation,
12734   CHECK_PARSE("AllowShortIfStatementsOnASingleLine: Never",
12736   CHECK_PARSE("AllowShortIfStatementsOnASingleLine: WithoutElse",
12739   CHECK_PARSE("AllowShortIfStatementsOnASingleLine: Always",
12741   CHECK_PARSE("AllowShortIfStatementsOnASingleLine: false",
12743   CHECK_PARSE("AllowShortIfStatementsOnASingleLine: true",
12752   CHECK_PARSE("ForEachMacros: [BOOST_FOREACH]", ForEachMacros, BoostForeach);
12756   CHECK_PARSE("ForEachMacros: [BOOST_FOREACH, Q_FOREACH]", ForEachMacros,
12760   CHECK_PARSE("StatementMacros: [QUNUSED]", StatementMacros,
12762   CHECK_PARSE("StatementMacros: [QUNUSED, QT_REQUIRE_VERSION]", StatementMacros,
12766   CHECK_PARSE("NamespaceMacros: [TESTSUITE]", NamespaceMacros,
12768   CHECK_PARSE("NamespaceMacros: [TESTSUITE, SUITE]", NamespaceMacros,
12774   CHECK_PARSE("IncludeCategories:\n"
12780   CHECK_PARSE("IncludeIsMainRegex: 'abc$'", IncludeStyle.IncludeIsMainRegex,
12801   CHECK_PARSE("RawStringFormats:\n"
12823   CHECK_PARSE("Language: Cpp\n"
12831   CHECK_PARSE("IndentWidth: 56", IndentWidth, 56u);
12835   CHECK_PARSE("Language: JavaScript\n"
12838   CHECK_PARSE("IndentWidth: 23", IndentWidth, 23u);
12844   CHECK_PARSE("IndentWidth: 56", IndentWidth, 56u);
12847   CHECK_PARSE("BasedOnStyle: LLVM\n"
12851   CHECK_PARSE("---\n"
12861   CHECK_PARSE("---\n"
12869   CHECK_PARSE("---\n"