[PATCH] D104299: Handle interactions between reserved identifier and user-defined suffixes
serge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 18 01:51:07 PDT 2021
serge-sans-paille updated this revision to Diff 352938.
serge-sans-paille added a comment.
Reviews taken into account, I'm just not 100% sure of the fixit part. The out is the following:
a.cpp:4:16: warning: identifier '_Bye' is reserved because it starts with '_' followed by a capital letter [-Wreserved-identifier]
int operator"" _Bye(const char* s) {
~~~~~~~~~~~^~~~
operator""_Bye
1 warning generated.
Does that look good to you?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104299/new/
https://reviews.llvm.org/D104299
Files:
clang/include/clang/Sema/Sema.h
clang/lib/AST/Decl.cpp
clang/lib/Parse/ParseExprCXX.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/test/Sema/reserved-identifier.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104299.352938.patch
Type: text/x-patch
Size: 4871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210618/76228fe8/attachment-0001.bin>
More information about the cfe-commits
mailing list