File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
clang/lib/StaticAnalyzer/Checkers/WebKit Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ std::optional<bool> isGetterOfSafePtr(const CXXMethodDecl *M) {
372372 auto QT = maybeRefToRawOperator->getConversionType ();
373373 auto *T = QT.getTypePtrOrNull ();
374374 return T && (T->isPointerType () || T->isReferenceType () ||
375- T->isObjCObjectPointerType ());
375+ T->isObjCObjectPointerType ());
376376 }
377377 }
378378 }
Original file line number Diff line number Diff line change @@ -168,9 +168,9 @@ class RawPtrRefCallArgsChecker
168168 if (IsUnsafe && *IsUnsafe && !isPtrOriginSafe (Receiver)) {
169169 if (auto *InnerMsg = dyn_cast<ObjCMessageExpr>(Receiver)) {
170170 auto InnerSelector = InnerMsg->getSelector ();
171- if (InnerSelector.getNameForSlot (0 ) == " alloc"
172- && Selector.getNameForSlot (0 ).starts_with (" init" ))
173- return ;
171+ if (InnerSelector.getNameForSlot (0 ) == " alloc" &&
172+ Selector.getNameForSlot (0 ).starts_with (" init" ))
173+ return ;
174174 }
175175 reportBugOnReceiver (Receiver, D);
176176 }
@@ -360,7 +360,8 @@ class RawPtrRefCallArgsChecker
360360 BR->emitReport (std::move (Report));
361361 }
362362
363- void reportBugOnReceiver (const Expr *CallArg, const Decl *DeclWithIssue) const {
363+ void reportBugOnReceiver (const Expr *CallArg,
364+ const Decl *DeclWithIssue) const {
364365 assert (CallArg);
365366
366367 const SourceLocation SrcLocToReport = CallArg->getSourceRange ().getBegin ();
You can’t perform that action at this time.
0 commit comments