This is an archive of the discontinued LLVM Phabricator instance.

Fix -Wreserved-identifier in presence of system macro
ClosedPublic

Authored by serge-sans-paille on Jan 29 2022, 12:22 AM.

Details

Summary

Do not warn on reserved identifiers resulting from expansion of system macros.
Also properly test -Wreserved-identifier wrt. system headers.

Should fix #49592

Diff Detail

Event Timeline

serge-sans-paille requested review of this revision.Jan 29 2022, 12:22 AM
serge-sans-paille created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 29 2022, 12:22 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Jan 29 2022, 5:34 AM

LGTM with a minor nit

clang/lib/Sema/SemaDecl.cpp
5720
This revision is now accepted and ready to land.Jan 29 2022, 5:34 AM
This revision was landed with ongoing or failed builds.Jan 31 2022, 2:16 AM
This revision was automatically updated to reflect the committed changes.