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/CheckObjCUnusedIVars.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/CheckObjCUnusedIVars.cpp')
-rw-r--r-- | clang/lib/Analysis/CheckObjCUnusedIVars.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CheckObjCUnusedIVars.cpp b/clang/lib/Analysis/CheckObjCUnusedIVars.cpp index c2deeeff8fe..ef7b318b769 100644 --- a/clang/lib/Analysis/CheckObjCUnusedIVars.cpp +++ b/clang/lib/Analysis/CheckObjCUnusedIVars.cpp @@ -98,8 +98,8 @@ void clang::CheckObjCUnusedIvar(ObjCImplementationDecl* D, BugReporter& BR) { if (I->second == Unused) { std::ostringstream os; - os << "Instance variable '" << I->first->getName() - << "' in class '" << ID->getName() + os << "Instance variable '" << I->first->getNameAsString() + << "' in class '" << ID->getNameAsString() << "' is never used by the methods in its @implementation " "(although it may be used by category methods)."; |