forked from OSchip/llvm-project
Removing some more unnecessary manual quotes from diagnostics.
llvm-svn: 198416
This commit is contained in:
parent
4a97967b5f
commit
5dff61d322
|
@ -713,11 +713,11 @@ def warn_auto_synthesizing_protocol_property :Warning<
|
||||||
InGroup<DiagGroup<"objc-protocol-property-synthesis">>;
|
InGroup<DiagGroup<"objc-protocol-property-synthesis">>;
|
||||||
def warn_no_autosynthesis_shared_ivar_property : Warning <
|
def warn_no_autosynthesis_shared_ivar_property : Warning <
|
||||||
"auto property synthesis will not synthesize property "
|
"auto property synthesis will not synthesize property "
|
||||||
"'%0' because it cannot share an ivar with another synthesized property">,
|
"%0 because it cannot share an ivar with another synthesized property">,
|
||||||
InGroup<ObjCNoPropertyAutoSynthesis>;
|
InGroup<ObjCNoPropertyAutoSynthesis>;
|
||||||
def warn_no_autosynthesis_property : Warning<
|
def warn_no_autosynthesis_property : Warning<
|
||||||
"auto property synthesis will not synthesize property "
|
"auto property synthesis will not synthesize property "
|
||||||
"'%0' because it is 'readwrite' but it will be synthesized 'readonly' "
|
"%0 because it is 'readwrite' but it will be synthesized 'readonly' "
|
||||||
"via another property">,
|
"via another property">,
|
||||||
InGroup<ObjCNoPropertyAutoSynthesis>;
|
InGroup<ObjCNoPropertyAutoSynthesis>;
|
||||||
def warn_autosynthesis_property_ivar_match :Warning<
|
def warn_autosynthesis_property_ivar_match :Warning<
|
||||||
|
|
|
@ -1544,7 +1544,7 @@ void Sema::DefaultSynthesizeProperties(Scope *S, ObjCImplDecl* IMPDecl,
|
||||||
!IMPDecl->getInstanceMethod(Prop->getSetterName()) &&
|
!IMPDecl->getInstanceMethod(Prop->getSetterName()) &&
|
||||||
!IDecl->HasUserDeclaredSetterMethod(Prop)) {
|
!IDecl->HasUserDeclaredSetterMethod(Prop)) {
|
||||||
Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property)
|
Diag(Prop->getLocation(), diag::warn_no_autosynthesis_property)
|
||||||
<< Prop->getIdentifier()->getName();
|
<< Prop->getIdentifier();
|
||||||
Diag(PropInSuperClass->getLocation(), diag::note_property_declare);
|
Diag(PropInSuperClass->getLocation(), diag::note_property_declare);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
@ -1553,7 +1553,7 @@ void Sema::DefaultSynthesizeProperties(Scope *S, ObjCImplDecl* IMPDecl,
|
||||||
IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) {
|
IMPDecl->FindPropertyImplIvarDecl(Prop->getIdentifier())) {
|
||||||
if (PID->getPropertyDecl() != Prop) {
|
if (PID->getPropertyDecl() != Prop) {
|
||||||
Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property)
|
Diag(Prop->getLocation(), diag::warn_no_autosynthesis_shared_ivar_property)
|
||||||
<< Prop->getIdentifier()->getName();
|
<< Prop->getIdentifier();
|
||||||
if (!PID->getLocation().isInvalid())
|
if (!PID->getLocation().isInvalid())
|
||||||
Diag(PID->getLocation(), diag::note_property_synthesize);
|
Diag(PID->getLocation(), diag::note_property_synthesize);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue