[all-commits] [llvm/llvm-project] 274adc: Implement delimited escape sequences.

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed Sep 15 06:55:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 274adcb866343cb505408d8f401840ea814522c8
      https://github.com/llvm/llvm-project/commit/274adcb866343cb505408d8f401840ea814522c8
  Author: Corentin Jabot <corentin.jabot at gmail.com>
  Date:   2021-09-15 (Wed, 15 Sep 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticLexKinds.td
    M clang/lib/Lex/Lexer.cpp
    M clang/lib/Lex/LiteralSupport.cpp
    A 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

  Log Message:
  -----------
  Implement delimited escape sequences.

\x{XXXX} \u{XXXX} and \o{OOOO} are accepted in all languages mode
in characters and string literals.

This is a feature proposed for both C++ (P2290R1) and C (N2785). The
papers have been seen by both committees but are not yet adopted into
either standard. However, they do have support from both committees.




More information about the All-commits mailing list