[PATCH] D130417: [clang-format] Missing space between trailing return type 'auto' and left brace

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 23 20:54:32 PDT 2022


owenpan accepted this revision.
owenpan added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:23555-23556
+  FormatStyle Style = getLLVMStyle();
+  verifyFormat("[]() -> auto { return Val; }", Style);
+  verifyFormat("auto foo() -> auto { return Val; }", Style);
+}
----------------
Should we add test cases with an `&` between `auto` and `{`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130417/new/

https://reviews.llvm.org/D130417



More information about the cfe-commits mailing list