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

References

tools/clang/lib/Format/Format.cpp
  428     IO.mapOptional("BraceWrapping", Style.BraceWrapping);
  646   Expanded.BraceWrapping = {false, false, FormatStyle::BWACS_Never,
  654     Expanded.BraceWrapping.AfterClass = true;
  655     Expanded.BraceWrapping.AfterFunction = true;
  656     Expanded.BraceWrapping.AfterNamespace = true;
  659     Expanded.BraceWrapping.AfterClass = true;
  660     Expanded.BraceWrapping.AfterEnum = true;
  661     Expanded.BraceWrapping.AfterFunction = true;
  662     Expanded.BraceWrapping.AfterStruct = true;
  663     Expanded.BraceWrapping.AfterUnion = true;
  664     Expanded.BraceWrapping.AfterExternBlock = true;
  665     Expanded.BraceWrapping.SplitEmptyFunction = true;
  666     Expanded.BraceWrapping.SplitEmptyRecord = false;
  669     Expanded.BraceWrapping.AfterFunction = true;
  670     Expanded.BraceWrapping.BeforeCatch = true;
  671     Expanded.BraceWrapping.BeforeElse = true;
  674     Expanded.BraceWrapping.AfterCaseLabel = true;
  675     Expanded.BraceWrapping.AfterClass = true;
  676     Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
  677     Expanded.BraceWrapping.AfterEnum = true;
  678     Expanded.BraceWrapping.AfterFunction = true;
  679     Expanded.BraceWrapping.AfterNamespace = true;
  680     Expanded.BraceWrapping.AfterObjCDeclaration = true;
  681     Expanded.BraceWrapping.AfterStruct = true;
  682     Expanded.BraceWrapping.AfterUnion = true;
  683     Expanded.BraceWrapping.AfterExternBlock = true;
  684     Expanded.BraceWrapping.BeforeCatch = true;
  685     Expanded.BraceWrapping.BeforeElse = true;
  688     Expanded.BraceWrapping.AfterCaseLabel = true;
  689     Expanded.BraceWrapping.AfterClass = true;
  690     Expanded.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
  691     Expanded.BraceWrapping.AfterEnum = true;
  692     Expanded.BraceWrapping.AfterFunction = true;
  693     Expanded.BraceWrapping.AfterNamespace = true;
  694     Expanded.BraceWrapping.AfterObjCDeclaration = true;
  695     Expanded.BraceWrapping.AfterStruct = true;
  696     Expanded.BraceWrapping.AfterExternBlock = true;
  697     Expanded.BraceWrapping.BeforeCatch = true;
  698     Expanded.BraceWrapping.BeforeElse = true;
  701     Expanded.BraceWrapping = {true, true, FormatStyle::BWACS_Always,
  709     Expanded.BraceWrapping.AfterFunction = true;
  746   LLVMStyle.BraceWrapping = {false, false, FormatStyle::BWACS_Never,
 1093   Style.BraceWrapping.AfterClass = true;
 1094   Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
 1095   Style.BraceWrapping.AfterEnum = true;
 1096   Style.BraceWrapping.AfterFunction = true;
 1097   Style.BraceWrapping.AfterNamespace = true;
 1098   Style.BraceWrapping.AfterObjCDeclaration = true;
 1099   Style.BraceWrapping.AfterStruct = true;
 1100   Style.BraceWrapping.AfterExternBlock = true;
 1101   Style.BraceWrapping.BeforeCatch = true;
 1102   Style.BraceWrapping.BeforeElse = true;
 1529     if (Style.BraceWrapping.AfterNamespace) {
tools/clang/lib/Format/TokenAnnotator.cpp
 3110     return (Line.startsWith(tok::kw_enum) && Style.BraceWrapping.AfterEnum) ||
 3112             Style.BraceWrapping.AfterEnum) ||
 3113            (Line.startsWith(tok::kw_class) && Style.BraceWrapping.AfterClass) ||
 3114            (Line.startsWith(tok::kw_struct) && Style.BraceWrapping.AfterStruct);
tools/clang/lib/Format/UnwrappedLineFormatter.cpp
  224         !Style.BraceWrapping.SplitEmptyFunction &&
  238         return !Style.BraceWrapping.SplitEmptyNamespace && EmptyBlock
  246         return !Style.BraceWrapping.SplitEmptyRecord && EmptyBlock
  313         Style.BraceWrapping.AfterControlStatement ==
  325       return (Style.BraceWrapping.AfterControlStatement ==
  359       return !Style.BraceWrapping.AfterFunction ||
  361                       !Style.BraceWrapping.SplitEmptyRecord)
  367         Style.BraceWrapping.AfterFunction) {
  429     if (Style.BraceWrapping.AfterControlStatement ==
  538           !Style.BraceWrapping.AfterControlStatement &&
  543           Style.BraceWrapping.AfterControlStatement ==
  549           !Style.BraceWrapping.AfterControlStatement &&
  554           Style.BraceWrapping.AfterControlStatement ==
  626             Style.BraceWrapping.AfterControlStatement ==
tools/clang/lib/Format/UnwrappedLineParser.cpp
  176                                   Style.BraceWrapping.AfterControlStatement,
  177                                   Style.BraceWrapping.IndentBraces) {}
  633     return Style.BraceWrapping.AfterNamespace;
  635     return Style.BraceWrapping.AfterClass;
  637     return Style.BraceWrapping.AfterUnion;
  639     return Style.BraceWrapping.AfterStruct;
 1055         if (Style.BraceWrapping.AfterExternBlock) {
 1170           if (Style.BraceWrapping.AfterControlStatement ==
 1183           if (Style.BraceWrapping.AfterControlStatement ==
 1282         if (Style.BraceWrapping.AfterFunction)
 1294       if (Style.BraceWrapping.AfterFunction)
 1775     if (Style.BraceWrapping.BeforeElse)
 1828     if (Style.BraceWrapping.BeforeCatch) {
 1866     if (Style.BraceWrapping.BeforeCatch)
 1962     if (Style.BraceWrapping.IndentBraces)
 1990                                        Style.BraceWrapping.AfterCaseLabel,
 1991                                        Style.BraceWrapping.IndentBraces);
 1994       if (Style.BraceWrapping.AfterControlStatement ==
 2257       if (Style.BraceWrapping.AfterFunction)
 2347     if (Style.BraceWrapping.AfterObjCDeclaration)
tools/clang/unittests/Format/CleanupTest.cpp
  117   Style.BraceWrapping.AfterNamespace = true;
tools/clang/unittests/Format/FormatTest.cpp
  377   Style.BraceWrapping.AfterClass = true;
  378   Style.BraceWrapping.AfterFunction = true;
  572   AllowSimpleBracedStatements.BraceWrapping.AfterFunction = true;
  573   AllowSimpleBracedStatements.BraceWrapping.SplitEmptyRecord = false;
  647   AllowSimpleBracedStatements.BraceWrapping.AfterControlStatement =
 1171   Style.BraceWrapping.AfterCaseLabel = true;
 1172   Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
 1193   Style.BraceWrapping.AfterCaseLabel = false;
 1373   Style.BraceWrapping.AfterCaseLabel = true;
 1374   Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
 1448   Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_MultiLine;
 1910   Style.BraceWrapping.AfterEnum = true;
 2366   Style.BraceWrapping.AfterFunction = true;
 2376   Style.BraceWrapping.AfterExternBlock = true;
 2377   Style.BraceWrapping.SplitEmptyRecord = false;
 2557   Style.BraceWrapping.BeforeCatch = true;
 3069   Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
 3070   Style.BraceWrapping.AfterFunction = true;
 8558   MergeEmptyOnly.BraceWrapping.AfterFunction = true;
 8587   MergeInlineOnly.BraceWrapping.AfterFunction = true;
 8630   MergeInlineOnly.BraceWrapping.AfterFunction = true;
 8656   Style.BraceWrapping.AfterFunction = true;
 8657   Style.BraceWrapping.SplitEmptyFunction = false;
 8733   Style.BraceWrapping.AfterClass = true;
 8734   Style.BraceWrapping.SplitEmptyRecord = false;
 8759   Style.BraceWrapping.AfterStruct = true;
 8760   Style.BraceWrapping.SplitEmptyRecord = false;
 8786   Style.BraceWrapping.AfterUnion = true;
 8787   Style.BraceWrapping.SplitEmptyRecord = false;
 8809   Style.BraceWrapping.AfterNamespace = true;
 8810   Style.BraceWrapping.SplitEmptyNamespace = false;
 8867   Style.BraceWrapping.AfterClass = true;
 8868   Style.BraceWrapping.AfterStruct = true;
 8869   Style.BraceWrapping.AfterUnion = true;
 8870   Style.BraceWrapping.AfterNamespace = true;
12463   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterCaseLabel);
12464   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterClass);
12465   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterEnum);
12466   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterFunction);
12467   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterNamespace);
12468   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterObjCDeclaration);
12469   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterStruct);
12470   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterUnion);
12471   CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterExternBlock);
12472   CHECK_PARSE_NESTED_BOOL(BraceWrapping, BeforeCatch);
12473   CHECK_PARSE_NESTED_BOOL(BraceWrapping, BeforeElse);
12474   CHECK_PARSE_NESTED_BOOL(BraceWrapping, IndentBraces);
12475   CHECK_PARSE_NESTED_BOOL(BraceWrapping, SplitEmptyFunction);
12476   CHECK_PARSE_NESTED_BOOL(BraceWrapping, SplitEmptyRecord);
12477   CHECK_PARSE_NESTED_BOOL(BraceWrapping, SplitEmptyNamespace);
12672   Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Never;
12675               BraceWrapping.AfterControlStatement,
12679               BraceWrapping.AfterControlStatement, FormatStyle::BWACS_Always);
12682               BraceWrapping.AfterControlStatement, FormatStyle::BWACS_Never);
12686               BraceWrapping.AfterControlStatement, FormatStyle::BWACS_Always);
12689               BraceWrapping.AfterControlStatement, FormatStyle::BWACS_Never);
tools/clang/unittests/Format/FormatTestObjC.cpp
  210   Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
  240   Style.BraceWrapping.AfterControlStatement = FormatStyle::BWACS_Always;
  609   Style.BraceWrapping.AfterFunction = true;