[PATCH] D152632: [Clang] Add warnings for CWG2521

PoYao Chang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 10 14:13:54 PDT 2023


rZhBoYao created this revision.
rZhBoYao added a reviewer: serge-sans-paille.
Herald added a project: All.
rZhBoYao requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

1. Teach -Wuser-defined-literals to warn on using double underscores in literal suffix identifiers.
2. Add -Wdeprecated-literal-operator to warn about the use of the first grammar production of literal-operator-id, which defaults to off.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152632

Files:
  clang/docs/ReleaseNotes.rst
  clang/include/clang/Basic/DiagnosticGroups.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaDeclCXX.cpp
  clang/lib/Sema/SemaExprCXX.cpp
  clang/test/CXX/drs/dr17xx.cpp
  clang/test/CXX/lex/lex.literal/lex.ext/p1.cpp
  clang/test/CXX/lex/lex.literal/lex.ext/p10.cpp
  clang/test/Parser/cxx0x-literal-operators.cpp
  clang/test/SemaCXX/deprecated-literal-operator.cpp
  clang/test/SemaCXX/no-warn-user-defined-literals-in-system-headers.cpp
  clang/www/cxx_dr_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152632.530251.patch
Type: text/x-patch
Size: 11773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230610/ca0561a1/attachment-0001.bin>


More information about the cfe-commits mailing list