[clang] [clang-format] Keep the ObjC selector name and `@selector` together (PR #160739)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 27 12:09:47 PDT 2025


================
@@ -763,6 +763,12 @@ TEST_F(FormatTestObjC, FormatObjCMethodExpr) {
       "                  backing:NSBackingStoreBuffered\n"
       "                    defer:NO]);\n"
       "}");
+  verifyFormat(R"(- (void)test {
----------------
owenca wrote:

Please don't use raw strings. Instead, reduce `ColumnLimit` and the selector name.

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


More information about the cfe-commits mailing list