Skip to content

Commit a254f65

Browse files
authored
[WebKit checkers] fix a typo in a message in one of the checkers (#159593)
1 parent 61166a9 commit a254f65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefCallArgsChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class RawPtrRefCallArgsChecker
384384

385385
SmallString<100> Buf;
386386
llvm::raw_svector_ostream Os(Buf);
387-
Os << "Reciever is " << ptrKind() << " and unsafe.";
387+
Os << "Receiver is " << ptrKind() << " and unsafe.";
388388

389389
PathDiagnosticLocation BSLoc(SrcLocToReport, BR->getSourceManager());
390390
auto Report = std::make_unique<BasicBugReport>(Bug, Os.str(), BSLoc);

clang/test/Analysis/Checkers/WebKit/unretained-call-args.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void foo() {
279279

280280
void foo() {
281281
[provide() doWork];
282-
// expected-warning@-1{{Reciever is unretained and unsafe}}
282+
// expected-warning@-1{{Receiver is unretained and unsafe}}
283283
[protectedProvide().get() doWork];
284284

285285
CFArrayAppendValue(provide_cf(), nullptr);

0 commit comments

Comments
 (0)