Expose a warning flag for warn_duplicate_protocol_def. This allows control
over the severity of duplicate protocol definitions.
For example -Werror=duplicate-protocol or
#pragma clang diagnostic ignored "-Wduplicate-protocol".
Differential D26406
Add -Wduplicate-protocol for existing diagnostic kastiglione on Nov 8 2016, 10:30 AM. Authored by
Details Expose a warning flag for warn_duplicate_protocol_def. This allows control For example -Werror=duplicate-protocol or
Diff Detail
Event TimelineComment Actions I'm not sure that it's required, but shouldn't we have also have a test that checks for the usage of this flag as well? Adding a test case with #pragma clang diagnostic ignored "-Wduplicate-protocol" and some code to a file like "test/SemaObjC/check-dup-objc-decls-1.m" should be sufficient. Comment Actions @arphaman I wondered whether this called for a test. I'm happy to add one just like that. Comment Actions @arphaman Thank you. Is the summary here sufficient, or should I elaborate in some way? I'm fine with this summary if you are. |