[all-commits] [llvm/llvm-project] 8f777e: [Clang][C++23][WIP] P2071 Named universal characte...

cor3ntin via All-commits all-commits at lists.llvm.org
Tue Apr 5 07:53:54 PDT 2022


  Branch: refs/heads/corentin/named_escapes2
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f777e24ad391babeb5104d8775b0b4c47560ef2
      https://github.com/llvm/llvm-project/commit/8f777e24ad391babeb5104d8775b0b4c47560ef2
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticLexKinds.td
    M clang/include/clang/Lex/Lexer.h
    M clang/lib/Lex/Lexer.cpp
    M clang/lib/Lex/LiteralSupport.cpp
    M clang/test/Lexer/char-escapes-delimited.c
    M clang/test/Parser/cxx11-user-defined-literals.cpp
    M clang/test/Preprocessor/ucn-pp-identifier.c
    M clang/test/Sema/ucn-identifiers.c
    M llvm/CMakeLists.txt
    M llvm/include/llvm/ADT/StringExtras.h
    M llvm/include/llvm/Support/ScopedPrinter.h
    M llvm/include/llvm/Support/Unicode.h
    M llvm/lib/Support/CMakeLists.txt
    M llvm/lib/Support/ScopedPrinter.cpp
    M llvm/lib/Support/StringExtras.cpp
    A llvm/lib/Support/UnicodeNameToCodepoint.cpp
    A llvm/lib/Support/UnicodeNameToCodepointGenerated.cpp
    M llvm/unittests/Support/UnicodeTest.cpp
    A llvm/utils/UnicodeData/CMakeLists.txt
    A llvm/utils/UnicodeData/UnicodeNameMappingGenerator.cpp

  Log Message:
  -----------
  [Clang][C++23][WIP] P2071 Named universal character escapes

! Missing tests, some cleanup still needed.

* Add a function in LLVM to map a name to a codepoint.
This using a try to minimize memory usage,
while allowing fast access.

* Add an utility to regenerate this data.

* Support named escape sequences with an extension warning.
I have not yet dealt with C++23 conformance extension warning,

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




More information about the All-commits mailing list