зеркало из https://github.com/microsoft/clang-1.git
retain/release checker: More diagnostic refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2d1652e0f5
Коммит
a102c0c706
|
@ -606,8 +606,6 @@ public:
|
||||||
|
|
||||||
} // end anonymous namespace
|
} // end anonymous namespace
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Implementation of checker data structures.
|
// Implementation of checker data structures.
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
@ -2344,14 +2342,14 @@ PathDiagnosticPiece* CFRefReport::VisitNode(const ExplodedNode<GRState>* N,
|
||||||
os << "Call to function '" << FV->getDecl()->getNameAsString() <<'\'';
|
os << "Call to function '" << FV->getDecl()->getNameAsString() <<'\'';
|
||||||
else
|
else
|
||||||
os << "function call";
|
os << "function call";
|
||||||
|
|
||||||
os << " returns an object with a ";
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert (isa<ObjCMessageExpr>(S));
|
assert (isa<ObjCMessageExpr>(S));
|
||||||
os << "Method returns an object with a ";
|
os << "Method";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os << " returns an object with a ";
|
||||||
|
|
||||||
if (CurrV.isOwned())
|
if (CurrV.isOwned())
|
||||||
os << "+1 retain count (owning reference).";
|
os << "+1 retain count (owning reference).";
|
||||||
else {
|
else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче