forked from OSchip/llvm-project
Removing some more unnecessary manual quotes from attribute diagnostics.
llvm-svn: 198387
This commit is contained in:
parent
ca7887d729
commit
1bda4596b6
|
@ -1952,12 +1952,12 @@ def warn_mismatched_section : Warning<
|
|||
|
||||
def err_anonymous_property: Error<
|
||||
"anonymous property is not supported">;
|
||||
def err_property_is_variably_modified: Error<
|
||||
"property '%0' has a variably modified type">;
|
||||
def err_property_is_variably_modified : Error<
|
||||
"property %0 has a variably modified type">;
|
||||
def err_no_accessor_for_property : Error<
|
||||
"no %select{getter|setter}0 defined for property '%1'">;
|
||||
"no %select{getter|setter}0 defined for property %1">;
|
||||
def error_cannot_find_suitable_accessor : Error<
|
||||
"cannot find suitable %select{getter|setter}0 for property '%1'">;
|
||||
"cannot find suitable %select{getter|setter}0 for property %1">;
|
||||
|
||||
def err_attribute_aligned_not_power_of_two : Error<
|
||||
"requested alignment is not a power of 2">;
|
||||
|
|
|
@ -1394,7 +1394,7 @@ Expr *MSPropertyOpBuilder::rebuildAndCaptureObject(Expr *syntacticBase) {
|
|||
ExprResult MSPropertyOpBuilder::buildGet() {
|
||||
if (!RefExpr->getPropertyDecl()->hasGetter()) {
|
||||
S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property)
|
||||
<< 0 /* getter */ << RefExpr->getPropertyDecl()->getName();
|
||||
<< 0 /* getter */ << RefExpr->getPropertyDecl();
|
||||
return ExprError();
|
||||
}
|
||||
|
||||
|
@ -1410,7 +1410,7 @@ ExprResult MSPropertyOpBuilder::buildGet() {
|
|||
if (GetterExpr.isInvalid()) {
|
||||
S.Diag(RefExpr->getMemberLoc(),
|
||||
diag::error_cannot_find_suitable_accessor) << 0 /* getter */
|
||||
<< RefExpr->getPropertyDecl()->getName();
|
||||
<< RefExpr->getPropertyDecl();
|
||||
return ExprError();
|
||||
}
|
||||
|
||||
|
@ -1424,7 +1424,7 @@ ExprResult MSPropertyOpBuilder::buildSet(Expr *op, SourceLocation sl,
|
|||
bool captureSetValueAsResult) {
|
||||
if (!RefExpr->getPropertyDecl()->hasSetter()) {
|
||||
S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property)
|
||||
<< 1 /* setter */ << RefExpr->getPropertyDecl()->getName();
|
||||
<< 1 /* setter */ << RefExpr->getPropertyDecl();
|
||||
return ExprError();
|
||||
}
|
||||
|
||||
|
@ -1440,7 +1440,7 @@ ExprResult MSPropertyOpBuilder::buildSet(Expr *op, SourceLocation sl,
|
|||
if (SetterExpr.isInvalid()) {
|
||||
S.Diag(RefExpr->getMemberLoc(),
|
||||
diag::error_cannot_find_suitable_accessor) << 1 /* setter */
|
||||
<< RefExpr->getPropertyDecl()->getName();
|
||||
<< RefExpr->getPropertyDecl();
|
||||
return ExprError();
|
||||
}
|
||||
|
||||
|
|
|
@ -476,7 +476,7 @@ Decl *TemplateDeclInstantiator::VisitMSPropertyDecl(MSPropertyDecl *D) {
|
|||
|
||||
if (DI->getType()->isVariablyModifiedType()) {
|
||||
SemaRef.Diag(D->getLocation(), diag::err_property_is_variably_modified)
|
||||
<< D->getName();
|
||||
<< D;
|
||||
Invalid = true;
|
||||
} else if (DI->getType()->isInstantiationDependentType()) {
|
||||
DI = SemaRef.SubstType(DI, TemplateArgs,
|
||||
|
|
Loading…
Reference in New Issue