diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-02 02:44:03 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-02 02:44:03 +0000 |
commit | 13493ea1583f39d62a66e2b2a0802f08d8ec32ca (patch) | |
tree | 0224b1c6c62cb619294d972d1b5991092810e98e /lib/Analysis/CheckObjCInstMethSignature.cpp | |
parent | 4188409d2905931291ee9bd23de0c271d5cb358a (diff) |
More title-casing of bug type names.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckObjCInstMethSignature.cpp')
-rw-r--r-- | lib/Analysis/CheckObjCInstMethSignature.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Analysis/CheckObjCInstMethSignature.cpp b/lib/Analysis/CheckObjCInstMethSignature.cpp index 2d100793c2..a59ed884d4 100644 --- a/lib/Analysis/CheckObjCInstMethSignature.cpp +++ b/lib/Analysis/CheckObjCInstMethSignature.cpp @@ -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 @@ static void CompareReturnTypes(ObjCMethodDecl* MethDerived, 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 @@ static void CompareReturnTypes(ObjCMethodDecl* MethDerived, << "'. 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()); } } |