如何为 clang-format 指定子选项?

How to specify suboptions for clang-format?

在 .clang-format 文件中我可以说:

BasedOnStyle: LLVM
BreakBeforeBraces: Custom
BraceWrapping:
    AfterClass: false
    AfterFunction: true 

如何在命令行中指定相同的内容? (出于某种原因,不能使用 .clang-format。)

我试过了:

--style="{BasedOnStyle: LLVM, BreakBeforeBraces: Custom, BraceWrapping:, AfterClass: false, AfterFunction: true}"

--style="{BasedOnStyle: LLVM, BreakBeforeBraces: Custom, BraceWrapping: AfterClass: false, BraceWrapping: AfterFunction: true}"

以及使用 BraceWrapping.Afterclass、BraceWrapping:AfterClass、BraceWrappingAfterClass 等的其他变体

我也试过:

--style="{BreakBeforeBraces: Custom, BraceWrapping: [{AfterClass: false}, {AfterFunction: true}]}"

哪个尝试基于:

以及它的一些其他变体。到目前为止运气不好...

进一步尝试导致:

--style="{BasedOnStyle: LLVM, BreakBeforeBraces: Custom, BraceWrapping: {AfterClass: false, AfterFunction: true}}"