Home
last modified time | relevance | path

Searched refs:BraceWrapping (Results 1 – 5 of 5) sorted by relevance

/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DFormat.cpp578 Expanded.BraceWrapping.AfterClass = true; in expandPresets()
583 Expanded.BraceWrapping.AfterClass = true; in expandPresets()
584 Expanded.BraceWrapping.AfterEnum = true; in expandPresets()
586 Expanded.BraceWrapping.AfterStruct = true; in expandPresets()
587 Expanded.BraceWrapping.AfterUnion = true; in expandPresets()
594 Expanded.BraceWrapping.BeforeCatch = true; in expandPresets()
595 Expanded.BraceWrapping.BeforeElse = true; in expandPresets()
598 Expanded.BraceWrapping.AfterClass = true; in expandPresets()
600 Expanded.BraceWrapping.AfterEnum = true; in expandPresets()
604 Expanded.BraceWrapping.AfterStruct = true; in expandPresets()
[all …]
H A DUnwrappedLineFormatter.cpp216 !Style.BraceWrapping.SplitEmptyFunction && in tryFitMultipleLinesInOne()
230 return !Style.BraceWrapping.SplitEmptyNamespace && EmptyBlock in tryFitMultipleLinesInOne()
238 return !Style.BraceWrapping.SplitEmptyRecord && EmptyBlock in tryFitMultipleLinesInOne()
299 return Style.BraceWrapping.AfterControlStatement in tryFitMultipleLinesInOne()
332 return !Style.BraceWrapping.AfterFunction || in tryFitMultipleLinesInOne()
334 !Style.BraceWrapping.SplitEmptyRecord) in tryFitMultipleLinesInOne()
340 Style.BraceWrapping.AfterFunction) { in tryFitMultipleLinesInOne()
402 if (Style.BraceWrapping.AfterControlStatement && in tryMergeSimpleControlStatement()
507 !Style.BraceWrapping.AfterControlStatement && in tryMergeSimpleBlock()
512 Style.BraceWrapping.AfterControlStatement && I + 2 != E && in tryMergeSimpleBlock()
[all …]
H A DUnwrappedLineParser.cpp179 if (Style.BraceWrapping.IndentBraces) in CompoundStatementIndenter()
629 return Style.BraceWrapping.AfterNamespace; in ShouldBreakBeforeBrace()
631 return Style.BraceWrapping.AfterClass; in ShouldBreakBeforeBrace()
633 return Style.BraceWrapping.AfterUnion; in ShouldBreakBeforeBrace()
635 return Style.BraceWrapping.AfterStruct; in ShouldBreakBeforeBrace()
1281 if (Style.BraceWrapping.AfterFunction) in parseStructuralElement()
1708 if (Style.BraceWrapping.BeforeElse) in parseIfThenElse()
1761 if (Style.BraceWrapping.BeforeCatch) { in parseTryCatch()
1799 if (Style.BraceWrapping.BeforeCatch) in parseTryCatch()
1885 if (Style.BraceWrapping.IndentBraces) in parseDoWhile()
[all …]
H A DTokenAnnotator.cpp2954 return (Line.startsWith(tok::kw_enum) && Style.BraceWrapping.AfterEnum) || in mustBreakBefore()
2956 Style.BraceWrapping.AfterEnum) || in mustBreakBefore()
2957 (Line.startsWith(tok::kw_class) && Style.BraceWrapping.AfterClass) || in mustBreakBefore()
2958 (Line.startsWith(tok::kw_struct) && Style.BraceWrapping.AfterStruct); in mustBreakBefore()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Format/
H A DFormat.h822 BraceWrappingFlags BraceWrapping; member