Do not warn on reserved identifiers resulting from expansion of system macros.
Also properly test -Wreserved-identifier wrt. system headers.
Should fix #49592
Paths 
  |  Differential  D118532  
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. Should fix #49592 
Diff Detail 
 Event Timelineserge-sans-paille created this revision. 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 Closed by commit rGb8290ffa9fd9: Fix -Wreserved-identifier in presence of system macro (authored by serge-sans-paille).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 404450 clang/lib/Sema/SemaDecl.cpp
 
 clang/test/Sema/Inputs/reserved-identifier.h
 
 clang/test/Sema/reserved-identifier.c
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||