mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-30 17:21:10 +00:00
[clang-format] Add parse tests for SeparateDefinitionBlocks option (#78256)
Add config parse tests for SeparateDefinitionBlocks option.
This commit is contained in:
parent
4737959d91
commit
59a265311a
@ -996,6 +996,14 @@ TEST(ConfigParseTest, ParsesConfiguration) {
|
||||
FormatStyle::BBNSS_OnlyWithParen);
|
||||
CHECK_PARSE("AllowBreakBeforeNoexceptSpecifier: Never",
|
||||
AllowBreakBeforeNoexceptSpecifier, FormatStyle::BBNSS_Never);
|
||||
|
||||
Style.SeparateDefinitionBlocks = FormatStyle::SDS_Never;
|
||||
CHECK_PARSE("SeparateDefinitionBlocks: Always", SeparateDefinitionBlocks,
|
||||
FormatStyle::SDS_Always);
|
||||
CHECK_PARSE("SeparateDefinitionBlocks: Leave", SeparateDefinitionBlocks,
|
||||
FormatStyle::SDS_Leave);
|
||||
CHECK_PARSE("SeparateDefinitionBlocks: Never", SeparateDefinitionBlocks,
|
||||
FormatStyle::SDS_Never);
|
||||
}
|
||||
|
||||
TEST(ConfigParseTest, ParsesConfigurationWithLanguages) {
|
||||
|
Loading…
Reference in New Issue
Block a user