Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/clang/lib/Format/
DFormat.cpp598 IO.mapOptional("BraceWrapping", Style.BraceWrapping); in mapping()
874 Expanded.BraceWrapping = {/*AfterCaseLabel=*/false, in expandPresets()
894 Expanded.BraceWrapping.AfterClass = true; in expandPresets()
895 Expanded.BraceWrapping.AfterFunction = true; in expandPresets()
896 Expanded.BraceWrapping.AfterNamespace = true; in expandPresets()
899 Expanded.BraceWrapping.AfterClass = true; in expandPresets()
900 Expanded.BraceWrapping.AfterEnum = true; in expandPresets()
901 Expanded.BraceWrapping.AfterFunction = true; in expandPresets()
902 Expanded.BraceWrapping.AfterStruct = true; in expandPresets()
903 Expanded.BraceWrapping.AfterUnion = true; in expandPresets()
[all …]
DUnwrappedLineFormatter.cpp233 !Style.BraceWrapping.SplitEmptyFunction && in tryFitMultipleLinesInOne()
247 return !Style.BraceWrapping.SplitEmptyNamespace && EmptyBlock in tryFitMultipleLinesInOne()
255 return !Style.BraceWrapping.SplitEmptyRecord && EmptyBlock in tryFitMultipleLinesInOne()
260 Style.BraceWrapping.SplitEmptyRecord && EmptyBlock) { in tryFitMultipleLinesInOne()
328 Style.BraceWrapping.AfterControlStatement == in tryFitMultipleLinesInOne()
340 return (Style.BraceWrapping.AfterControlStatement == in tryFitMultipleLinesInOne()
346 Style.BraceWrapping.AfterControlStatement == in tryFitMultipleLinesInOne()
373 if (Style.BraceWrapping.SplitEmptyRecord && in tryFitMultipleLinesInOne()
396 return !Style.BraceWrapping.AfterFunction || in tryFitMultipleLinesInOne()
398 !Style.BraceWrapping.SplitEmptyRecord) in tryFitMultipleLinesInOne()
[all …]
DUnwrappedLineParser.cpp177 Style.BraceWrapping.AfterControlStatement, in CompoundStatementIndenter()
178 Style.BraceWrapping.IndentBraces) {} in CompoundStatementIndenter()
702 return Style.BraceWrapping.AfterNamespace; in ShouldBreakBeforeBrace()
704 return Style.BraceWrapping.AfterClass; in ShouldBreakBeforeBrace()
706 return Style.BraceWrapping.AfterUnion; in ShouldBreakBeforeBrace()
708 return Style.BraceWrapping.AfterStruct; in ShouldBreakBeforeBrace()
1184 if (Style.BraceWrapping.AfterExternBlock) { in parseStructuralElement()
1187 unsigned AddLevels = Style.BraceWrapping.AfterExternBlock ? 1u : 0u; in parseStructuralElement()
1303 if (Style.BraceWrapping.AfterControlStatement == in parseStructuralElement()
1316 if (Style.BraceWrapping.AfterControlStatement == in parseStructuralElement()
[all …]
DTokenAnnotator.cpp3789 return (Line.startsWith(tok::kw_enum) && Style.BraceWrapping.AfterEnum) || in mustBreakBefore()
3791 Style.BraceWrapping.AfterEnum) || in mustBreakBefore()
3792 (Line.startsWith(tok::kw_class) && Style.BraceWrapping.AfterClass) || in mustBreakBefore()
3793 (Line.startsWith(tok::kw_struct) && Style.BraceWrapping.AfterStruct); in mustBreakBefore()
3810 if (Style.BraceWrapping.BeforeLambdaBody && Right.is(TT_LambdaLBrace) && in mustBreakBefore()
4219 if (Style.BraceWrapping.BeforeLambdaBody && Right.is(TT_LambdaLBrace)) { in canBreakBefore()
DContinuationIndenter.cpp332 if (Style.BraceWrapping.BeforeLambdaBody && Current.CanBreakBefore && in mustBreak()
1171 return (Style.BraceWrapping.BeforeLambdaBody && Current.is(TT_LambdaLSquare)); in hasNestedBlockInlined()
1555 if (Style.BraceWrapping.BeforeLambdaBody && Current.Next != nullptr && in moveStatePastScopeOpener()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Format/
DFormat.h1741 BraceWrappingFlags BraceWrapping; member