[all-commits] [llvm/llvm-project] 25c1d7: [clang] Don't warn on zero literals with -std=c2y ...

Timothy Herchen via All-commits all-commits at lists.llvm.org
Tue Jul 22 01:43:29 PDT 2025


  Branch: refs/heads/release/21.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 25c1d7a3578c837f71b44fce1318e4c272b0845f
      https://github.com/llvm/llvm-project/commit/25c1d7a3578c837f71b44fce1318e4c272b0845f
  Author: Timothy Herchen <timothy.herchen at gmail.com>
  Date:   2025-07-22 (Tue, 22 Jul 2025)

  Changed paths:
    M clang/lib/Lex/LiteralSupport.cpp
    M clang/test/C/C2y/n3353.c

  Log Message:
  -----------
  [clang] Don't warn on zero literals with -std=c2y (#149688)

Fixes #149669; the old check compared with the end of the literal, but
we can just check that after parsing digits, we're pointing to one
character past the token start.

(cherry picked from commit 8366dc207a2e6b50cb8afe2d98fca68bd78bd0fa)



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