diff options
author | Backl1ght <backlight.zzk@gmail.com> | 2023-10-25 05:10:35 -0700 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2023-10-25 05:13:50 -0700 |
commit | 69209e30a7168b0493d8fb34989ddccd8c574670 (patch) | |
tree | ec02129fa944c725cc2e39012ef781e66851c410 /clang/unittests/Format/ConfigParseTest.cpp | |
parent | 66f4a1399d7de3d38312a5b251d4f8acd75237ca (diff) | |
download | llvm-69209e30a7168b0493d8fb34989ddccd8c574670.zip llvm-69209e30a7168b0493d8fb34989ddccd8c574670.tar.gz llvm-69209e30a7168b0493d8fb34989ddccd8c574670.tar.bz2 |
[clang-format] AllowShortCompoundRequirementOnASingleLine
clang-format brace wrapping did not take requires into consideration,
compound requirements will be affected by BraceWrapping.AfterFunction.
Closes #59412.
Differential Revision: https://reviews.llvm.org/D139834
Diffstat (limited to 'clang/unittests/Format/ConfigParseTest.cpp')
-rw-r--r-- | clang/unittests/Format/ConfigParseTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/ConfigParseTest.cpp b/clang/unittests/Format/ConfigParseTest.cpp index ba79c8d..f90ed17 100644 --- a/clang/unittests/Format/ConfigParseTest.cpp +++ b/clang/unittests/Format/ConfigParseTest.cpp @@ -154,6 +154,7 @@ TEST(ConfigParseTest, ParsesConfigurationBools) { CHECK_PARSE_BOOL(AllowAllArgumentsOnNextLine); CHECK_PARSE_BOOL(AllowAllParametersOfDeclarationOnNextLine); CHECK_PARSE_BOOL(AllowShortCaseLabelsOnASingleLine); + CHECK_PARSE_BOOL(AllowShortCompoundRequirementOnASingleLine); CHECK_PARSE_BOOL(AllowShortEnumsOnASingleLine); CHECK_PARSE_BOOL(AllowShortLoopsOnASingleLine); CHECK_PARSE_BOOL(BinPackArguments); |