[all-commits] [llvm/llvm-project] f6dff9: Pedantically warn about // comments in gnu89 mode

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu May 5 11:36:04 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6dff93641b2259623e686eb13a1884b8b9f4a00
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/LangStandards.def
    M clang/test/Lexer/c90.c
    M clang/test/Sema/gnu89.c

  Log Message:
  Pedantically warn about // comments in gnu89 mode

GCC warns with a pedantic warning when -std=gnu89, but Clang would only
diagnose in -std=c89 mode. Clang now matches the GCC behavior in both

Fixes #18427

More information about the All-commits mailing list