[PATCH] D56879: [Sema] Suppress a warning about a forward-declared fixed enum in C mode

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 18 11:08:00 PST 2019


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM!



================
Comment at: clang/test/Sema/fixed-enum.c:4
 // RUN: %clang_cc1 -Weverything -xobjective-c -DOBJC -verify %s
 // RUN: %clang_cc1 -Weverything -std=c11 -xc -DC11 -verify %s
 // RUN: %clang_cc1 -Weverything -std=c11 -xc -fms-extensions -DMS -verify %s
----------------
aaron.ballman wrote:
> Can you add a RUN line with `-pedantic` to ensure that we still warn on the forward declare of the enum even when it's fixed?
This was meant to say "don't warn" but I see you figured that out. :-)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56879/new/

https://reviews.llvm.org/D56879





More information about the cfe-commits mailing list