================ @@ -1180,16 +1183,47 @@ TEST_F(FormatTestJS, InliningFunctionLiterals) { "}", Style); - Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty; + Style.AllowShortFunctionsOnASingleLine = + FormatStyle::ShortFunctionStyle::setEmptyOnly(); verifyFormat("var func = function() {\n" " return 1;\n" "};", Style); } +TEST_F(FormatTestJS, InliningFunctionLiteralsNew) { ---------------- owenca wrote:
Can you also move this test for `Other` to a future patch? https://github.com/llvm/llvm-project/pull/134337 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits