This is an archive of the discontinued LLVM Phabricator instance.

[clang] Add '-Wundef-prefix' warning option
AbandonedPublic

Authored by zixuw on May 28 2020, 11:28 AM.

Details

Reviewers
None
Summary

Add an -Wundef-prefix=<arg1>,<arg2>... option, which is similar to
-Wundef, but only give warnings for undefined macros with the given
prefixes.
Make -Wundef an alias of -Wundef-prefix="" so that when the two
options are given together, -Wundef takes precedence over
-Wundef-prefix, as all strings are prefixed by the empty string.

rdar://55684778

Diff Detail

Unit TestsFailed

Event Timeline

zixuw created this revision.May 28 2020, 11:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 28 2020, 11:28 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
zixuw abandoned this revision.May 28 2020, 11:30 AM