parent
f303bdabdf
commit
f0b0f2edfe
|
@ -32,7 +32,7 @@ using namespace clang;
|
||||||
// Utility functions.
|
// Utility functions.
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
static inline Selector GetUnarySelector(const char* name, ASTContext& Ctx) {
|
static inline Selector GetNullarySelector(const char* name, ASTContext& Ctx) {
|
||||||
IdentifierInfo* II = &Ctx.Idents.get(name);
|
IdentifierInfo* II = &Ctx.Idents.get(name);
|
||||||
return Ctx.Selectors.getSelector(0, &II);
|
return Ctx.Selectors.getSelector(0, &II);
|
||||||
}
|
}
|
||||||
|
@ -677,9 +677,9 @@ public:
|
||||||
: Summaries(Ctx, gcenabled),
|
: Summaries(Ctx, gcenabled),
|
||||||
GCEnabled(gcenabled),
|
GCEnabled(gcenabled),
|
||||||
LOpts(lopts),
|
LOpts(lopts),
|
||||||
RetainSelector(GetUnarySelector("retain", Ctx)),
|
RetainSelector(GetNullarySelector("retain", Ctx)),
|
||||||
ReleaseSelector(GetUnarySelector("release", Ctx)),
|
ReleaseSelector(GetNullarySelector("release", Ctx)),
|
||||||
AutoreleaseSelector(GetUnarySelector("autorelease", Ctx)) {}
|
AutoreleaseSelector(GetNullarySelector("autorelease", Ctx)) {}
|
||||||
|
|
||||||
virtual ~CFRefCount() {
|
virtual ~CFRefCount() {
|
||||||
for (LeaksTy::iterator I = Leaks.begin(), E = Leaks.end(); I!=E; ++I)
|
for (LeaksTy::iterator I = Leaks.begin(), E = Leaks.end(); I!=E; ++I)
|
||||||
|
|
Loading…
Reference in New Issue