Home
last modified time | relevance | path

Searched refs:AllowShortBlocksOnASingleLine (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/Format/
H A DFormat.h466 ShortBlockStyle AllowShortBlocksOnASingleLine; member
3864 AllowShortBlocksOnASingleLine == R.AllowShortBlocksOnASingleLine &&
/llvm-project-15.0.7/clang/lib/Format/
H A DUnwrappedLineFormatter.cpp403 return Style.AllowShortBlocksOnASingleLine != FormatStyle::SBS_Never in tryFitMultipleLinesInOne()
596 Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Never) { in tryMergeSimpleControlStatement()
716 if (Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Never) in tryMergeSimpleBlock()
718 if (Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Empty && in tryMergeSimpleBlock()
833 if (Style.AllowShortBlocksOnASingleLine != FormatStyle::SBS_Never || in tryMergeSimpleBlock()
H A DFormat.cpp657 Style.AllowShortBlocksOnASingleLine); in mapping()
1198 LLVMStyle.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never; in getLLVMStyle()
1590 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Empty; in getWebKitStyle()
H A DTokenAnnotator.cpp4445 Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Never) { in mustBreakBefore()
/llvm-project-15.0.7/clang/unittests/Format/
H A DFormatTestCSharp.cpp1053 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never; in TEST_F()
1541 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Empty; in TEST_F()
H A DFormatTest.cpp1576 AllowSimpleBracedStatements.AllowShortBlocksOnASingleLine = in TEST_F()
1592 AllowSimpleBracedStatements.AllowShortBlocksOnASingleLine = in TEST_F()
1922 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Always; in TEST_F()
2343 ShortBlocks.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Always; in TEST_F()
2667 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never; in TEST_F()
6092 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Empty; in TEST_F()
15415 EXPECT_EQ(SpaceForeachMacros.AllowShortBlocksOnASingleLine, in TEST_F()
20380 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Empty; in TEST_F()
22395 ZeroColumn.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never; in TEST_F()
24875 Style.AllowShortBlocksOnASingleLine = FormatStyle::SBS_Never; in TEST_F()
[all …]
/llvm-project-15.0.7/clang/docs/
H A DClangFormatStyleOptions.rst897 **AllowShortBlocksOnASingleLine** (``ShortBlockStyle``) :versionbadge:`clang-format 3.5`