This is an archive of the discontinued LLVM Phabricator instance.

Reusing an existing attribute diagnostic
ClosedPublic

Authored by oren_ben_simhon on May 1 2017, 1:43 AM.

Details

Summary

In a previous patch, I added a new generic error diagnostic for inconsistent attributes.
In this patch I reuse this diagnostic for ns_returns_retained attribute check.

Diff Detail

Repository
rL LLVM

Event Timeline

oren_ben_simhon created this revision.May 1 2017, 1:43 AM
aaron.ballman added inline comments.May 1 2017, 6:35 AM
lib/Sema/SemaDecl.cpp
2955 ↗(On Diff #97271)

You should manually quote the ns_returns_retained string literal with single quotes. The old diagnostic didn't do this, but that was inconsistent with the way we usually try to handle diagnostics.

oren_ben_simhon marked an inline comment as done.
oren_ben_simhon edited the summary of this revision. (Show Details)

Implemented comments posted until 05/02 (Thanks Aaron)

This revision is now accepted and ready to land.May 3 2017, 5:19 AM
This revision was automatically updated to reflect the committed changes.