[clang] [clang-format] Add an option to control indentation of `export { ... }` (PR #110381)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 4 05:14:25 PDT 2024


================
@@ -26588,10 +26613,7 @@ TEST_F(FormatTest, Cpp20ModulesSupport) {
                "  int foo;\n"
                "};",
                Style);
-  verifyFormat("export {\n"
-               "  int foo;\n"
-               "};",
-               Style);
+  verifyFormat("export { int foo; };", Style);
----------------
mydeveloperday wrote:

You can't fix the tests by changing them... here you make the decision that people want a collapsed export {} what makes you say thats what everyone wants?

https://github.com/llvm/llvm-project/pull/110381


More information about the cfe-commits mailing list