[PATCH] D147377: [clang-format] Don't allow variable decls to have trailing return arrows

Emilia Dreamer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 2 01:16:19 PDT 2023


rymiel marked an inline comment as done.
rymiel added inline comments.


================
Comment at: clang/unittests/Format/TokenAnnotatorTest.cpp:1493
+
+  Tokens = annotate("auto foo() -> auto { return Val; }");
+  ASSERT_EQ(Tokens.size(), 12u) << Tokens;
----------------
owenpan wrote:
> Can this be valid C++?
Yes! (https://godbolt.org/z/bnYahK4cz) (also I copied it from FormatTest)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147377



More information about the cfe-commits mailing list