[PATCH] D122224: Allow -Wno-gnu to silence GNU extensions related to pointer arithmetic

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 22 05:55:18 PDT 2022


aaron.ballman created this revision.
aaron.ballman added reviewers: nickdesaulniers, andrew.w.kaylor, eli.friedman, erichkeane.
Herald added a project: All.
aaron.ballman requested review of this revision.
Herald added a project: clang.

These diagnostics were added to a diagnostic group, but that diagnostic group was not under `-Wgnu`. I've now split them into their own diagnostic group that is added both to the original group (so user's currently opting in or out of these should not see a change) and under the `-Wgnu` group so that `-Wno-gnu` can be used to disable all GNU extension diagnostics. This fixes Issue 54444.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122224

Files:
  clang/docs/ReleaseNotes.rst
  clang/include/clang/Basic/DiagnosticGroups.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/test/Sema/pointer-addition.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122224.417256.patch
Type: text/x-patch
Size: 9715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220322/86609357/attachment.bin>


More information about the cfe-commits mailing list