[all-commits] [llvm/llvm-project] c8554e: Turn `-Wdeprecated-literal-operator` on by default...

Erich Keane via All-commits all-commits at lists.llvm.org
Fri Oct 11 06:10:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8554e13eec048180d003af2aa7b2cc8498d4fba
      https://github.com/llvm/llvm-project/commit/c8554e13eec048180d003af2aa7b2cc8498d4fba
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2024-10-11 (Fri, 11 Oct 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Basic/IdentifierTable.cpp
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/CXX/drs/cwg14xx.cpp
    M clang/test/CXX/drs/cwg25xx.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p1.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p10.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p11.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p3.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p4.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p5.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p6.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p7.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p8.cpp
    M clang/test/CXX/lex/lex.literal/lex.ext/p9.cpp
    M clang/test/CXX/over/over.oper/over.literal/p2.cpp
    M clang/test/CXX/over/over.oper/over.literal/p3.cpp
    M clang/test/CXX/over/over.oper/over.literal/p5.cpp
    M clang/test/CXX/over/over.oper/over.literal/p6.cpp
    M clang/test/CXX/over/over.oper/over.literal/p7.cpp
    M clang/test/CXX/over/over.oper/over.literal/p8.cpp
    M clang/test/FixIt/fixit-c++11.cpp
    M clang/test/Parser/cxx11-user-defined-literals.cpp
    M clang/test/SemaCXX/cxx11-user-defined-literals-unused.cpp
    M clang/test/SemaCXX/cxx11-user-defined-literals.cpp
    M clang/test/SemaCXX/cxx2a-consteval.cpp
    M clang/test/SemaCXX/cxx98-compat.cpp
    M clang/test/SemaCXX/literal-operators.cpp
    M clang/test/SemaCXX/no-warn-user-defined-literals-in-system-headers.cpp
    M clang/test/SemaCXX/reserved-identifier.cpp
    M clang/test/SemaCXX/warn-xor-as-pow.cpp

  Log Message:
  -----------
  Turn `-Wdeprecated-literal-operator` on by default (#111027)

It would be nice to see what our users think about this change, as this
is something that WG21/EWG quite wants to fix a handful of questionable
issues with UB. Depending on the outcome of this after being committed,
we might instead suggest EWG undeprecate this, and require a bit of
'magic' from the lexer.

Additionally, this patch makes it so we emit this diagnostic ALSO in
cases where the literal name is reserved. It doesn't make sense to limit
that.

---------

Co-authored-by: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list