summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-11-29 18:27:55 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-11-29 18:27:55 +0000
commit6341553c930ae33b5f3e3524eb524185e32eef9c (patch)
treebdc63404414ffe2ce5719c11f0a600bec1d4307f /clang/lib/Analysis/BugReporter.cpp
parent0a1f25b9278d738e2aa1907afe6ed9e4996fc825 (diff)
downloadbcm5719-llvm-6341553c930ae33b5f3e3524eb524185e32eef9c.tar.gz
bcm5719-llvm-6341553c930ae33b5f3e3524eb524185e32eef9c.zip
Port BugReporter and BugType to StringRef.
llvm-svn: 90086
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r--clang/lib/Analysis/BugReporter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index d531b525ea3..c26a60af9c8 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -1835,14 +1835,15 @@ void BugReporter::FlushReport(BugReportEquivClass& EQ) {
PD->HandlePathDiagnostic(D.take());
}
-void BugReporter::EmitBasicReport(const char* name, const char* str,
+void BugReporter::EmitBasicReport(llvm::StringRef name, llvm::StringRef str,
SourceLocation Loc,
SourceRange* RBeg, unsigned NumRanges) {
EmitBasicReport(name, "", str, Loc, RBeg, NumRanges);
}
-void BugReporter::EmitBasicReport(const char* name, const char* category,
- const char* str, SourceLocation Loc,
+void BugReporter::EmitBasicReport(llvm::StringRef name,
+ llvm::StringRef category,
+ llvm::StringRef str, SourceLocation Loc,
SourceRange* RBeg, unsigned NumRanges) {
// 'BT' will be owned by BugReporter as soon as we call 'EmitReport'.
OpenPOWER on IntegriCloud