This is an archive of the discontinued LLVM Phabricator instance.

[Clang][AST] Temporarily undefine IBAction/IBOutlet ObjC macros in attribute headers
AbandonedPublic

Authored by gAlfonso-bit on Oct 23 2021, 9:36 AM.

Details

Summary

Taken from a downstream fork: https://github.com/apple/llvm-project/pull/3461/files.

IBAction and IBOutlet are defined when compiling with ObjC/ObjC++ enabled. This can cause issues due to macro expansion when we look through these header files while compiling in ObjC++ mode. This patch temporarily undefs these macros so that the compiler doesn't try to expand them when looking through these attribute headers.

Diff Detail

Event Timeline

gAlfonso-bit requested review of this revision.Oct 23 2021, 9:36 AM
gAlfonso-bit created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 23 2021, 9:36 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
gAlfonso-bit abandoned this revision.May 21 2022, 8:39 AM

This change is no longer necessary.

Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2022, 8:39 AM
Herald added a subscriber: StephenFan. · View Herald Transcript