[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 08:55:24 PDT 2022
erichkeane added a comment.
A couple of comment suggestions, our comments use a full-stop.
================
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:929
+ // saving the token used for static assertion
+ Token SavedTok = Tok;
----------------
================
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
----------------
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