[PATCH] D113393: [c++2b] Implement P0849R8 auto(x)

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 28 10:27:20 PST 2022


erichkeane accepted this revision.
erichkeane added a comment.

Just did a pass through, nothing suspicious, I think this looks good.

Mild preference to merge 2 or 3 diagnostics based on how similar they all are, but that can be done without further review, or as a separate commit (or not at all, if no one else cares).



================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:2327
   "initializer for variable %0 with type %1 contains multiple expressions">;
+def err_auto_expr_init_multiple_expressions : Error<
+  "initializer for functional-style cast to %0 contains multiple expressions">;
----------------
Mild preference to merge at least 2 of these 3 diagnostics.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113393



More information about the cfe-commits mailing list