Lines Matching refs:BT
69 std::unique_ptr<BugType> &BT,
72 static void emitBadCall(BugType *BT, CheckerContext &C, const Expr *BadE);
80 void LazyInit_BT(const char *desc, std::unique_ptr<BugType> &BT) const { in LazyInit_BT()
81 if (!BT) in LazyInit_BT()
82 BT.reset(new BuiltinBug(this, desc)); in LazyInit_BT()
86 const Expr *ArgEx, std::unique_ptr<BugType> &BT,
91 void CallAndMessageChecker::emitBadCall(BugType *BT, CheckerContext &C, in emitBadCall() argument
97 BugReport *R = new BugReport(*BT, BT->getName(), N); in emitBadCall()
136 std::unique_ptr<BugType> &BT, in uninitRefOrPointer() argument
166 LazyInit_BT(BD, BT); in uninitRefOrPointer()
167 BugReport *R = new BugReport(*BT, Message, N); in uninitRefOrPointer()
187 std::unique_ptr<BugType> &BT, in PreVisitProcessArg() argument
192 if (uninitRefOrPointer(C, V, ArgRange, ArgEx, BT, ParamDecl, BD)) in PreVisitProcessArg()
197 LazyInit_BT(BD, BT); in PreVisitProcessArg()
202 BugReport *R = new BugReport(*BT, Desc, N); in PreVisitProcessArg()
262 LazyInit_BT(BD, BT); in PreVisitProcessArg()
284 BugReport *R = new BugReport(*BT, os.str(), N); in PreVisitProcessArg()
344 BugType *BT = BT_cxx_delete_undef.get(); in checkPreStmt() local
345 BugReport *R = new BugReport(*BT, Desc, N); in checkPreStmt()
415 std::unique_ptr<BugType> *BT; in checkPreCall() local
417 BT = &BT_msg_arg; in checkPreCall()
419 BT = &BT_call_arg; in checkPreCall()
427 checkUninitFields, Call, *BT, ParamDecl)) in checkPreCall()
440 BugType *BT = nullptr; in checkPreObjCMessage() local
447 BT = BT_msg_undef.get(); in checkPreObjCMessage()
453 BT = BT_objc_prop_undef.get(); in checkPreObjCMessage()
459 BT = BT_objc_subscript_undef.get(); in checkPreObjCMessage()
462 assert(BT && "Unknown message kind."); in checkPreObjCMessage()
464 BugReport *R = new BugReport(*BT, BT->getName(), N); in checkPreObjCMessage()