[PATCH] D111175: [Clang] Extend init-statement to allow alias-declaration

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 7 11:26:15 PDT 2021


erichkeane added inline comments.


================
Comment at: clang/test/Parser/cxx2b-init-statement.cpp:19
+
+    if (using enum ns::e; false){}  // expected-error {{expected '='}}
+
----------------
Is there any way to have this elaborate more?  The 'expected 'TOKEN'' is my least favorite type of error.   Could we change this to be something like, 'expected '=' in type alias' or something?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111175



More information about the cfe-commits mailing list