diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-11-24 05:29:24 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-11-24 05:29:24 +0000 |
| commit | f3d3faeca60a7fab63ee03bf2b04d65d8640374e (patch) | |
| tree | 7288d8712306cc3bace620f54a12e161892f65c4 /clang/lib/Analysis/CheckObjCDealloc.cpp | |
| parent | a7c5eb72a0c7f8dd0fbc6c0d1abb3bd4b439e312 (diff) | |
| download | bcm5719-llvm-f3d3faeca60a7fab63ee03bf2b04d65d8640374e.tar.gz bcm5719-llvm-f3d3faeca60a7fab63ee03bf2b04d65d8640374e.zip | |
Rename NamedDecl::getName() to getNameAsString(). Replace a bunch of
uses of getName() with uses of getDeclName(). This upgrades a bunch of
diags to take DeclNames instead of std::strings.
This also tweaks a couple of diagnostics to be cleaner and changes
CheckInitializerTypes/PerformInitializationByConstructor to pass
around DeclarationNames instead of std::strings.
llvm-svn: 59947
Diffstat (limited to 'clang/lib/Analysis/CheckObjCDealloc.cpp')
| -rw-r--r-- | clang/lib/Analysis/CheckObjCDealloc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/lib/Analysis/CheckObjCDealloc.cpp b/clang/lib/Analysis/CheckObjCDealloc.cpp index 6fba9aeea9a..a9e5675ce21 100644 --- a/clang/lib/Analysis/CheckObjCDealloc.cpp +++ b/clang/lib/Analysis/CheckObjCDealloc.cpp @@ -149,7 +149,7 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D, std::string buf; llvm::raw_string_ostream os(buf); - os << "Objective-C class '" << D->getName() + os << "Objective-C class '" << D->getNameAsString() << "' lacks a 'dealloc' instance method"; BR.EmitBasicReport(name, os.str().c_str(), D->getLocStart()); @@ -165,7 +165,8 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D, std::string buf; llvm::raw_string_ostream os(buf); - os << "The 'dealloc' instance method in Objective-C class '" << D->getName() + os << "The 'dealloc' instance method in Objective-C class '" + << D->getNameAsString() << "' does not send a 'dealloc' message to its super class" " (missing [super dealloc])"; @@ -220,7 +221,7 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D, ? "missing ivar release (leak)" : "missing ivar release (Hybrid MM, non-GC)"; - os << "The '" << ID->getName() + os << "The '" << ID->getNameAsString() << "' instance variable was retained by a synthesized property but " "wasn't released in 'dealloc'"; } else { @@ -228,7 +229,7 @@ void clang::CheckObjCDealloc(ObjCImplementationDecl* D, ? "extra ivar release (use-after-release)" : "extra ivar release (Hybrid MM, non-GC)"; - os << "The '" << ID->getName() + os << "The '" << ID->getNameAsString() << "' instance variable was not retained by a synthesized property " "but was released in 'dealloc'"; } |

