MyDeveloperDay added a comment.
The following will show the issue
TEST_F(FormatTestJson, DisableJsonFormat) {
FormatStyle Style = getLLVMStyle(FormatStyle::LK_Json);
verifyFormat("{}", Style);
verifyFormat("{\n"
" \"name\": 1\n"
"}",
Style);
Style.DisableFormat = true;
verifyFormat("{}", Style);
verifyFormat("{\n"
" \"name\": 1\n"
"}",
Style);
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115769/new/
https://reviews.llvm.org/D115769
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits