This is an archive of the discontinued LLVM Phabricator instance.

[SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn
ClosedPublic

Authored by nickdesaulniers on Oct 3 2018, 3:05 PM.

Details

Summary

For types deduced from typedef's and typeof's, don't warn for duplicate
declaration specifiers in C90 unless -pedantic.

Create a third diagnostic type for duplicate declaration specifiers.
Previously, we had an ExtWarn and a Warning. This change adds a third,
Extension, which only warns when -pedantic is set, staying silent
otherwise.

Fixes PR32985.

Diff Detail

Repository
rL LLVM

Event Timeline

nickdesaulniers created this revision.Oct 3 2018, 3:05 PM
rsmith accepted this revision.Oct 3 2018, 3:40 PM

LGTM, thanks!

This revision is now accepted and ready to land.Oct 3 2018, 3:40 PM
This revision was automatically updated to reflect the committed changes.

Thanks for your suggestions and code review. I appreciate it.