[all-commits] [llvm/llvm-project] 49e049: [Clang] Produce a warning instead of an error in u...

cor3ntin via All-commits all-commits at lists.llvm.org
Thu Aug 10 00:43:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49e0495febec5b88dcbc3c0a8814441e207bd608
      https://github.com/llvm/llvm-project/commit/49e0495febec5b88dcbc3c0a8814441e207bd608
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2023-08-10 (Thu, 10 Aug 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticLexKinds.td
    M clang/lib/Lex/LiteralSupport.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/test/CXX/dcl.dcl/dcl.link/p2.cpp
    M clang/test/CXX/dcl.dcl/p4-0x.cpp
    A clang/test/FixIt/unevaluated-strings.cpp
    M clang/test/Sema/static-assert.c
    M clang/test/SemaCXX/static-assert.cpp

  Log Message:
  -----------
  [Clang] Produce a warning instead of an error in unevaluated strings before C++26

Emiting an error on unexpected encoding prefix - which was allowed before C++26 -
caused build errors for a few users.
This downgrade the error to a warning on older language modes and C.

Reviewed By: aaron.ballman, hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D156596




More information about the All-commits mailing list