|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h 50 class ObjCMethodCall;
References
include/llvm/Support/Casting.h 58 return To::classof(&Val);
77 return isa_impl<To, From>::doit(Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
168 using ret_type = const To &; // Normal case, return Ty&
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
218 static typename cast_retty<To, From>::ret_type doit(From &Val) {
219 return cast_convert_val<To, SimpleFrom,
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
248 typename cast_retty<X, const Y>::ret_type>::type
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
258 return cast_convert_val<X, Y,
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
331 typename cast_retty<X, const Y>::ret_type>::type
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/StaticAnalyzer/Core/Checker.h 121 static void _checkObjCMessage(void *checker, const ObjCMethodCall &msg,
136 static void _checkObjCMessage(void *checker, const ObjCMethodCall &msg,
151 static void _checkObjCMessage(void *checker, const ObjCMethodCall &msg,
tools/clang/include/clang/StaticAnalyzer/Core/CheckerManager.h 235 const ObjCMethodCall &msg,
243 const ObjCMethodCall &msg,
253 const ObjCMethodCall &msg,
263 const ObjCMethodCall &msg, ExprEngine &Eng,
445 CheckerFn<void (const ObjCMethodCall &, CheckerContext &)>;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 77 class CallEventRef : public IntrusiveRefCntPtr<const T> {
79 CallEventRef(const T *Call) : IntrusiveRefCntPtr<const T>(Call) {}
82 CallEventRef<T> cloneWithState(ProgramStateRef State) const {
83 return this->get()->template cloneWithState<T>(State);
950 ObjCMethodCall(const ObjCMethodCall &Other) = default;
952 void cloneTo(void *Dest) const override { new (Dest) ObjCMethodCall(*this); }
1169 T *create(Arg A, ProgramStateRef St, const LocationContext *LCtx) {
1170 static_assert(sizeof(T) == sizeof(CallEventTemplateTy),
1172 return new (allocate()) T(A, St, LCtx);
1216 CallEventRef<ObjCMethodCall>
1219 return create<ObjCMethodCall>(E, State, LCtx);
1243 CallEventRef<T> CallEvent::cloneWithState(ProgramStateRef NewState) const {
1245 static_assert(sizeof(T) == sizeof(CallEvent),
1249 return cast<T>(this);
1252 T *Copy = static_cast<T *>(Mgr.allocate());
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp 52 static StringRef GetReceiverInterfaceName(const ObjCMethodCall &msg) {
118 const ObjCMethodCall &msg, unsigned Arg,
129 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
150 const ObjCMethodCall &msg,
220 void NilArgChecker::checkPreObjCMessage(const ObjCMethodCall &msg,
602 void checkPreObjCMessage(const ObjCMethodCall &msg, CheckerContext &C) const;
606 void ClassReleaseChecker::checkPreObjCMessage(const ObjCMethodCall &msg,
659 bool isVariadicMessage(const ObjCMethodCall &msg) const;
662 void checkPreObjCMessage(const ObjCMethodCall &msg, CheckerContext &C) const;
669 VariadicMethodTypeChecker::isVariadicMessage(const ObjCMethodCall &msg) const {
714 void VariadicMethodTypeChecker::checkPreObjCMessage(const ObjCMethodCall &msg,
815 bool isCollectionCountMethod(const ObjCMethodCall &M,
821 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
999 bool ObjCLoopChecker::isCollectionCountMethod(const ObjCMethodCall &M,
1011 void ObjCLoopChecker::checkPostObjCMessage(const ObjCMethodCall &M,
1054 const ObjCMethodCall *Message = dyn_cast_or_null<ObjCMethodCall>(Call);
1054 const ObjCMethodCall *Message = dyn_cast_or_null<ObjCMethodCall>(Call);
1171 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
1185 void ObjCNonNilReturnValueChecker::checkPostObjCMessage(const ObjCMethodCall &M,
tools/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp 56 void checkPreObjCMessage(const ObjCMethodCall &msg, CheckerContext &C) const;
61 void checkObjCMessageNil(const ObjCMethodCall &msg, CheckerContext &C) const;
73 void emitNilReceiverBug(CheckerContext &C, const ObjCMethodCall &msg,
78 const ObjCMethodCall &msg) const;
113 const ObjCMethodCall &Msg = cast<ObjCMethodCall>(Call);
113 const ObjCMethodCall &Msg = cast<ObjCMethodCall>(Call);
436 if (isa<ObjCMethodCall>(Call))
456 void CallAndMessageChecker::checkPreObjCMessage(const ObjCMethodCall &msg,
498 void CallAndMessageChecker::checkObjCMessageNil(const ObjCMethodCall &msg,
504 const ObjCMethodCall &msg,
546 const ObjCMethodCall &Msg) const {
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp 116 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
118 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
133 bool diagnoseExtraRelease(SymbolRef ReleasedValue, const ObjCMethodCall &M,
137 const ObjCMethodCall &M,
140 SymbolRef getValueReleasedByNillingOut(const ObjCMethodCall &M,
159 bool isSuperDeallocMessage(const ObjCMethodCall &M) const;
329 const ObjCMethodCall &M, CheckerContext &C) const {
381 const ObjCMethodCall &M, CheckerContext &C) const {
458 auto *OMC = dyn_cast_or_null<ObjCMethodCall>(Call);
636 const ObjCMethodCall &M,
714 const ObjCMethodCall &M,
788 const ObjCMethodCall &M) const {
925 ObjCDeallocChecker::getValueReleasedByNillingOut(const ObjCMethodCall &M,
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp 106 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
107 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
191 if (const ObjCMethodCall *Msg = dyn_cast<ObjCMethodCall>(&Call)) {
191 if (const ObjCMethodCall *Msg = dyn_cast<ObjCMethodCall>(&Call)) {
704 void DynamicTypePropagation::checkPreObjCMessage(const ObjCMethodCall &M,
814 void DynamicTypePropagation::checkPostObjCMessage(const ObjCMethodCall &M,
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp 97 void checkPreObjCMessage(const ObjCMethodCall &msg, CheckerContext &C) const;
98 void checkPostObjCMessage(const ObjCMethodCall &msg, CheckerContext &C) const;
799 void NonLocalizedStringChecker::checkPreObjCMessage(const ObjCMethodCall &msg,
969 void NonLocalizedStringChecker::checkPostObjCMessage(const ObjCMethodCall &msg,
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 365 void checkPostObjCMessage(const ObjCMethodCall &Call, CheckerContext &C) const;
1437 static bool isKnownDeallocObjCMethodName(const ObjCMethodCall &Call) {
1449 static Optional<bool> getFreeWhenDoneArg(const ObjCMethodCall &Call) {
1460 void MallocChecker::checkPostObjCMessage(const ObjCMethodCall &Call,
2936 if (!(isa<SimpleFunctionCall>(Call) || isa<ObjCMethodCall>(Call)))
2940 if (const ObjCMethodCall *Msg = dyn_cast<ObjCMethodCall>(Call)) {
2940 if (const ObjCMethodCall *Msg = dyn_cast<ObjCMethodCall>(Call)) {
tools/clang/lib/StaticAnalyzer/Checkers/NSAutoreleasePoolChecker.cpp 38 void checkPreObjCMessage(const ObjCMethodCall &msg, CheckerContext &C) const;
43 void NSAutoreleasePoolChecker::checkPreObjCMessage(const ObjCMethodCall &msg,
tools/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp 35 void checkPostObjCMessage(const ObjCMethodCall &msg, CheckerContext &C) const;
87 void NoReturnFunctionChecker::checkPostObjCMessage(const ObjCMethodCall &Msg,
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 99 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
784 static Nullability getReceiverNullability(const ObjCMethodCall &M,
816 void NullabilityChecker::checkPostObjCMessage(const ObjCMethodCall &M,
tools/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp 53 static bool isInitMessage(const ObjCMethodCall &Msg);
71 void checkPostObjCMessage(const ObjCMethodCall &Msg, CheckerContext &C) const;
165 void ObjCSelfInitChecker::checkPostObjCMessage(const ObjCMethodCall &Msg,
428 static bool isInitMessage(const ObjCMethodCall &Call) {
tools/clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp 37 bool isSuperDeallocMessage(const ObjCMethodCall &M) const;
41 void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
42 void checkPreObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
82 void ObjCSuperDeallocChecker::checkPreObjCMessage(const ObjCMethodCall &M,
112 void ObjCSuperDeallocChecker::checkPostObjCMessage(const ObjCMethodCall &M,
235 ObjCSuperDeallocChecker::isSuperDeallocMessage(const ObjCMethodCall &M) const {
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp 339 if (const auto *MC = dyn_cast<ObjCMethodCall>(&Call)) {
339 if (const auto *MC = dyn_cast<ObjCMethodCall>(&Call)) {
369 if (const auto *MC = dyn_cast<ObjCMethodCall>(&Call)) {
369 if (const auto *MC = dyn_cast<ObjCMethodCall>(&Call)) {
469 if (const auto *MsgInvocation = dyn_cast<ObjCMethodCall>(&CallOrMsg)) {
469 if (const auto *MsgInvocation = dyn_cast<ObjCMethodCall>(&CallOrMsg)) {
644 if (const auto *MsgInvocation = dyn_cast<ObjCMethodCall>(&CallOrMsg)) {
644 if (const auto *MsgInvocation = dyn_cast<ObjCMethodCall>(&CallOrMsg)) {
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp 237 CallEventRef<ObjCMethodCall> Call =
tools/clang/lib/StaticAnalyzer/Checkers/TrustNonnullChecker.cpp 95 void checkPostObjCMessage(const ObjCMethodCall &Msg,
167 if (!isa<ObjCMethodCall>(&Call))
170 const auto *MCall = cast<ObjCMethodCall>(&Call);
170 const auto *MCall = cast<ObjCMethodCall>(&Call);
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 562 if (const auto *MC = dyn_cast<ObjCMethodCall>(Call)) {
562 if (const auto *MC = dyn_cast<ObjCMethodCall>(Call)) {
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp 203 const ObjCMethodCall &Msg;
208 const ObjCMethodCall &msg, ExprEngine &eng,
233 checkFn(*Msg.cloneWithState<ObjCMethodCall>(Pred->getState()), C);
243 const ObjCMethodCall &msg,
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp 345 if (const ObjCMethodCall *Msg = dyn_cast<ObjCMethodCall>(Call)) {
345 if (const ObjCMethodCall *Msg = dyn_cast<ObjCMethodCall>(Call)) {
608 if (const ObjCMethodCall *Msg = dyn_cast<ObjCMethodCall>(&Call)) {
608 if (const ObjCMethodCall *Msg = dyn_cast<ObjCMethodCall>(&Call)) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp 154 CallEventRef<ObjCMethodCall> Msg =
248 CallEventRef<ObjCMethodCall> UpdatedMsg = Msg.cloneWithState(State);