[all-commits] [llvm/llvm-project] 1c5090: Revert "Pedantically warn about // comments in gnu...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu May 5 15:43:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c50909f6f8ac183b82e973457522439a8856e96
      https://github.com/llvm/llvm-project/commit/1c50909f6f8ac183b82e973457522439a8856e96
  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:
  -----------
  Revert "Pedantically warn about // comments in gnu89 mode"

This reverts commit f6dff93641b2259623e686eb13a1884b8b9f4a00.

This diagnostic is also in the -Wcomment group, which is in the -Wall
group, so the diagnostic is enabled in a wider context than GCC does.
That turns out to be disruptive for the Linux kernel builds still using
-std=gnu89 because the kernel requires C source files to start with //
comments: https://kernel.org/doc/html/v5.18-rc5/process/license-rules.html#license-identifier-syntax




More information about the All-commits mailing list