[cfe-commits] r68275 - in /cfe/trunk/lib/Analysis: CheckObjCInstMethSignature.cpp CheckObjCUnusedIVars.cpp
Ted Kremenek
kremenek at apple.com
Wed Apr 1 19:44:04 PDT 2009
Author: kremenek
Date: Wed Apr 1 21:44:03 2009
New Revision: 68275
URL: http://llvm.org/viewvc/llvm-project?rev=68275&view=rev
Log:
More title-casing of bug type names.
Modified:
cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp
cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp
Modified: cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp?rev=68275&r1=68274&r2=68275&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp Wed Apr 1 21:44:03 2009
@@ -21,7 +21,7 @@
#include "clang/AST/ASTContext.h"
#include "llvm/ADT/DenseMap.h"
-#include <sstream>
+#include "llvm/Support/raw_ostream.h"
using namespace clang;
@@ -46,7 +46,8 @@
QualType ResAncestor = MethAncestor->getResultType();
if (!AreTypesCompatible(ResDerived, ResAncestor, Ctx)) {
- std::ostringstream os;
+ std::string sbuf;
+ llvm::raw_string_ostream os(sbuf);
os << "The Objective-C class '"
<< MethDerived->getClassInterface()->getNameAsString()
@@ -64,7 +65,7 @@
<< "'. These two types are incompatible, and may result in undefined "
"behavior for clients of these classes.";
- BR.EmitBasicReport("incompatible instance method return type",
+ BR.EmitBasicReport("Incompatible instance method return type",
os.str().c_str(), MethDerived->getLocStart());
}
}
Modified: cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp?rev=68275&r1=68274&r2=68275&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckObjCUnusedIVars.cpp Wed Apr 1 21:44:03 2009
@@ -103,7 +103,7 @@
<< "' is never used by the methods in its @implementation "
"(although it may be used by category methods).";
- BR.EmitBasicReport("unused ivar", "Optimization",
+ BR.EmitBasicReport("Unused instance variable", "Optimization",
os.str().c_str(), I->first->getLocation());
}
}
More information about the cfe-commits
mailing list