[all-commits] [llvm/llvm-project] 9cf46f: [C2y] Add octal prefixes, deprecate unprefixed oct...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Mar 18 04:29:20 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cf46fb2303627fd2c74ed88dcd9f3f8cbfe0c93
      https://github.com/llvm/llvm-project/commit/9cf46fb2303627fd2c74ed88dcd9f3f8cbfe0c93
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticGroups.td
    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
    A clang/test/C/C2y/n3353.c
    M clang/www/c_status.html

  Log Message:
  -----------
  [C2y] Add octal prefixes, deprecate unprefixed octals (#131626)

WG14 N3353 added support for 0o and 0O as octal literal prefixes. It
also deprecates use of octal literals without a prefix, except for the
literal 0.

This feature is being exposed as an extension in older C language modes
as well as in all C++ language modes.



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