Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DFormat.cpp269 IO.mapOptional("BraceWrapping", Style.BraceWrapping); in mapping()
419 Expanded.BraceWrapping = {false, false, false, false, false, false, in expandPresets()
423 Expanded.BraceWrapping.AfterClass = true; in expandPresets()
424 Expanded.BraceWrapping.AfterFunction = true; in expandPresets()
425 Expanded.BraceWrapping.AfterNamespace = true; in expandPresets()
428 Expanded.BraceWrapping.AfterClass = true; in expandPresets()
429 Expanded.BraceWrapping.AfterEnum = true; in expandPresets()
430 Expanded.BraceWrapping.AfterFunction = true; in expandPresets()
431 Expanded.BraceWrapping.AfterStruct = true; in expandPresets()
432 Expanded.BraceWrapping.AfterUnion = true; in expandPresets()
[all …]
DUnwrappedLineParser.cpp157 if (Style.BraceWrapping.AfterControlStatement) in CompoundStatementIndenter()
159 if (Style.BraceWrapping.IndentBraces) in CompoundStatementIndenter()
460 return Style.BraceWrapping.AfterNamespace; in ShouldBreakBeforeBrace()
462 return Style.BraceWrapping.AfterClass; in ShouldBreakBeforeBrace()
464 return Style.BraceWrapping.AfterUnion; in ShouldBreakBeforeBrace()
466 return Style.BraceWrapping.AfterStruct; in ShouldBreakBeforeBrace()
682 if (Style.BraceWrapping.AfterObjCDeclaration) in parseStructuralElement()
882 if (Style.BraceWrapping.AfterFunction) in parseStructuralElement()
1270 if (Style.BraceWrapping.BeforeElse) in parseIfThenElse()
1321 if (Style.BraceWrapping.BeforeCatch) { in parseTryCatch()
[all …]
DUnwrappedLineFormatter.cpp202 return !Style.BraceWrapping.AfterFunction in tryFitMultipleLinesInOne()
207 Style.BraceWrapping.AfterFunction) { in tryFitMultipleLinesInOne()
266 if (Style.BraceWrapping.AfterControlStatement && in tryMergeSimpleControlStatement()
DTokenAnnotator.cpp2213 return (Line.startsWith(tok::kw_enum) && Style.BraceWrapping.AfterEnum) || in mustBreakBefore()
2214 (Line.startsWith(tok::kw_class) && Style.BraceWrapping.AfterClass) || in mustBreakBefore()
2215 (Line.startsWith(tok::kw_struct) && Style.BraceWrapping.AfterStruct); in mustBreakBefore()
/external/parameter-framework/upstream/
D.clang-format54 # Configure each individual brace in BraceWrapping
58 BraceWrapping: {
/external/clang/unittests/Format/
DFormatTest.cpp2412 Style.BraceWrapping.BeforeCatch = true; in TEST_F()
9752 CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterClass); in TEST_F()
9753 CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterControlStatement); in TEST_F()
9754 CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterEnum); in TEST_F()
9755 CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterFunction); in TEST_F()
9756 CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterNamespace); in TEST_F()
9757 CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterObjCDeclaration); in TEST_F()
9758 CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterStruct); in TEST_F()
9759 CHECK_PARSE_NESTED_BOOL(BraceWrapping, AfterUnion); in TEST_F()
9760 CHECK_PARSE_NESTED_BOOL(BraceWrapping, BeforeCatch); in TEST_F()
[all …]
/external/clang/include/clang/Format/
DFormat.h276 BraceWrappingFlags BraceWrapping; member
/external/clang/docs/
DClangFormatStyleOptions.rst309 **BraceWrapping** (``BraceWrappingFlags``)
370 Configure each individual brace in ``BraceWrapping``.