r198052 - s/getter_setter/accessor No functional changes intended.
Aaron Ballman
aaron at aaronballman.com
Thu Dec 26 08:35:04 PST 2013
Author: aaronballman
Date: Thu Dec 26 10:35:04 2013
New Revision: 198052
URL: http://llvm.org/viewvc/llvm-project?rev=198052&view=rev
Log:
s/getter_setter/accessor No functional changes intended.
Thanks to Alp Toker for the naming suggestion!
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/SemaPseudoObject.cpp
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=198052&r1=198051&r2=198052&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Thu Dec 26 10:35:04 2013
@@ -1950,9 +1950,9 @@ 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_no_getter_setter_for_property : Error<
+def err_no_accessor_for_property : Error<
"no %select{getter|setter}0 defined for property '%1'">;
-def error_cannot_find_suitable_getter_setter : Error<
+def error_cannot_find_suitable_accessor : Error<
"cannot find suitable %select{getter|setter}0 for property '%1'">;
def err_attribute_aligned_not_power_of_two : Error<
Modified: cfe/trunk/lib/Sema/SemaPseudoObject.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaPseudoObject.cpp?rev=198052&r1=198051&r2=198052&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaPseudoObject.cpp (original)
+++ cfe/trunk/lib/Sema/SemaPseudoObject.cpp Thu Dec 26 10:35:04 2013
@@ -1393,7 +1393,7 @@ Expr *MSPropertyOpBuilder::rebuildAndCap
ExprResult MSPropertyOpBuilder::buildGet() {
if (!RefExpr->getPropertyDecl()->hasGetter()) {
- S.Diag(RefExpr->getMemberLoc(), diag::err_no_getter_setter_for_property)
+ S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property)
<< 0 /* getter */ << RefExpr->getPropertyDecl()->getName();
return ExprError();
}
@@ -1409,7 +1409,7 @@ ExprResult MSPropertyOpBuilder::buildGet
GetterName, 0, true);
if (GetterExpr.isInvalid()) {
S.Diag(RefExpr->getMemberLoc(),
- diag::error_cannot_find_suitable_getter_setter) << 0 /* getter */
+ diag::error_cannot_find_suitable_accessor) << 0 /* getter */
<< RefExpr->getPropertyDecl()->getName();
return ExprError();
}
@@ -1423,7 +1423,7 @@ ExprResult MSPropertyOpBuilder::buildGet
ExprResult MSPropertyOpBuilder::buildSet(Expr *op, SourceLocation sl,
bool captureSetValueAsResult) {
if (!RefExpr->getPropertyDecl()->hasSetter()) {
- S.Diag(RefExpr->getMemberLoc(), diag::err_no_getter_setter_for_property)
+ S.Diag(RefExpr->getMemberLoc(), diag::err_no_accessor_for_property)
<< 1 /* setter */ << RefExpr->getPropertyDecl()->getName();
return ExprError();
}
@@ -1439,7 +1439,7 @@ ExprResult MSPropertyOpBuilder::buildSet
SetterName, 0, true);
if (SetterExpr.isInvalid()) {
S.Diag(RefExpr->getMemberLoc(),
- diag::error_cannot_find_suitable_getter_setter) << 1 /* setter */
+ diag::error_cannot_find_suitable_accessor) << 1 /* setter */
<< RefExpr->getPropertyDecl()->getName();
return ExprError();
}
More information about the cfe-commits
mailing list