[PATCH] D129048: Rewording the "static_assert" to static assertion

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 13 10:11:15 PDT 2022


erichkeane added inline comments.


================
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:995
   DeclEnd = Tok.getLocation();
-  ExpectAndConsumeSemi(diag::err_expected_semi_after_static_assert);
+  ExpectAndConsumeSemi(diag::err_expected_semi_after_static_assert , SavedTok.getName()); //passing the token used to the error message.
 
----------------
aaron.ballman wrote:
> My suggestion is slightly different from Erich's (mine has whitespace and capitalization fixes), also, this is definitely over the 80 col limit, so you should format the patch.
Ah, missed that <3


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129048



More information about the cfe-commits mailing list