suppress annoying textual repetition as 'aka'
llvm-svn: 112365
This commit is contained in:
parent
2e5c14713c
commit
e6523ea915
|
@ -151,10 +151,13 @@ ConvertTypeToDiagnosticString(ASTContext &Context, QualType Ty,
|
|||
bool ShouldAKA = false;
|
||||
QualType DesugaredTy = Desugar(Context, Ty, ShouldAKA);
|
||||
if (ShouldAKA) {
|
||||
S = "'"+S+"' (aka '";
|
||||
S += DesugaredTy.getAsString(Context.PrintingPolicy);
|
||||
S += "')";
|
||||
return S;
|
||||
std::string D = DesugaredTy.getAsString(Context.PrintingPolicy);
|
||||
if (D != S) {
|
||||
S = "'" + S + "' (aka '";
|
||||
S += D;
|
||||
S += "')";
|
||||
return S;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ I2 *operator+(I2_holder, int);
|
|||
return 0;
|
||||
}
|
||||
+ (void)method {
|
||||
[ivar method]; // expected-error{{receiver type 'ivar' (aka 'ivar') is not an Objective-C class}}
|
||||
[ivar method]; // expected-error{{receiver type 'ivar' is not an Objective-C class}}
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in New Issue