1 //===--- CallAndMessageChecker.cpp ------------------------------*- C++ -*--==// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This defines CallAndMessageChecker, a builtin checker that checks for various 11 // errors of call and objc message expressions. 12 // 13 //===----------------------------------------------------------------------===// 14 15 #include "ClangSACheckers.h" 16 #include "clang/AST/ParentMap.h" 17 #include "clang/Basic/TargetInfo.h" 18 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h" 19 #include "clang/StaticAnalyzer/Core/Checker.h" 20 #include "clang/StaticAnalyzer/Core/CheckerManager.h" 21 #include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h" 22 #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h" 23 #include "llvm/ADT/SmallString.h" 24 #include "llvm/ADT/StringExtras.h" 25 #include "llvm/Support/raw_ostream.h" 26 27 using namespace clang; 28 using namespace ento; 29 30 namespace { 31 32 struct ChecksFilter { 33 DefaultBool Check_CallAndMessageUnInitRefArg; 34 DefaultBool Check_CallAndMessageChecker; 35 36 CheckName CheckName_CallAndMessageUnInitRefArg; 37 CheckName CheckName_CallAndMessageChecker; 38 }; 39 40 class CallAndMessageChecker 41 : public Checker< check::PreStmt<CallExpr>, 42 check::PreStmt<CXXDeleteExpr>, 43 check::PreObjCMessage, 44 check::ObjCMessageNil, 45 check::PreCall > { 46 mutable std::unique_ptr<BugType> BT_call_null; 47 mutable std::unique_ptr<BugType> BT_call_undef; 48 mutable std::unique_ptr<BugType> BT_cxx_call_null; 49 mutable std::unique_ptr<BugType> BT_cxx_call_undef; 50 mutable std::unique_ptr<BugType> BT_call_arg; 51 mutable std::unique_ptr<BugType> BT_cxx_delete_undef; 52 mutable std::unique_ptr<BugType> BT_msg_undef; 53 mutable std::unique_ptr<BugType> BT_objc_prop_undef; 54 mutable std::unique_ptr<BugType> BT_objc_subscript_undef; 55 mutable std::unique_ptr<BugType> BT_msg_arg; 56 mutable std::unique_ptr<BugType> BT_msg_ret; 57 mutable std::unique_ptr<BugType> BT_call_few_args; 58 59 public: 60 ChecksFilter Filter; 61 62 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; 63 void checkPreStmt(const CXXDeleteExpr *DE, CheckerContext &C) const; 64 void checkPreObjCMessage(const ObjCMethodCall &msg, CheckerContext &C) const; 65 66 /// Fill in the return value that results from messaging nil based on the 67 /// return type and architecture and diagnose if the return value will be 68 /// garbage. 69 void checkObjCMessageNil(const ObjCMethodCall &msg, CheckerContext &C) const; 70 71 void checkPreCall(const CallEvent &Call, CheckerContext &C) const; 72 73 private: 74 bool PreVisitProcessArg(CheckerContext &C, SVal V, SourceRange ArgRange, 75 const Expr *ArgEx, int ArgumentNumber, 76 bool CheckUninitFields, const CallEvent &Call, 77 std::unique_ptr<BugType> &BT, 78 const ParmVarDecl *ParamDecl) const; 79 80 static void emitBadCall(BugType *BT, CheckerContext &C, const Expr *BadE); 81 void emitNilReceiverBug(CheckerContext &C, const ObjCMethodCall &msg, 82 ExplodedNode *N) const; 83 84 void HandleNilReceiver(CheckerContext &C, 85 ProgramStateRef state, 86 const ObjCMethodCall &msg) const; 87 88 void LazyInit_BT(const char *desc, std::unique_ptr<BugType> &BT) const { 89 if (!BT) 90 BT.reset(new BuiltinBug(this, desc)); 91 } 92 bool uninitRefOrPointer(CheckerContext &C, const SVal &V, 93 SourceRange ArgRange, const Expr *ArgEx, 94 std::unique_ptr<BugType> &BT, 95 const ParmVarDecl *ParamDecl, const char *BD, 96 int ArgumentNumber) const; 97 }; 98 } // end anonymous namespace 99 100 void CallAndMessageChecker::emitBadCall(BugType *BT, CheckerContext &C, 101 const Expr *BadE) { 102 ExplodedNode *N = C.generateErrorNode(); 103 if (!N) 104 return; 105 106 auto R = llvm::make_unique<BugReport>(*BT, BT->getName(), N); 107 if (BadE) { 108 R->addRange(BadE->getSourceRange()); 109 if (BadE->isGLValue()) 110 BadE = bugreporter::getDerefExpr(BadE); 111 bugreporter::trackNullOrUndefValue(N, BadE, *R); 112 } 113 C.emitReport(std::move(R)); 114 } 115 116 static void describeUninitializedArgumentInCall(const CallEvent &Call, 117 int ArgumentNumber, 118 llvm::raw_svector_ostream &Os) { 119 switch (Call.getKind()) { 120 case CE_ObjCMessage: { 121 const ObjCMethodCall &Msg = cast<ObjCMethodCall>(Call); 122 switch (Msg.getMessageKind()) { 123 case OCM_Message: 124 Os << (ArgumentNumber + 1) << llvm::getOrdinalSuffix(ArgumentNumber + 1) 125 << " argument in message expression is an uninitialized value"; 126 return; 127 case OCM_PropertyAccess: 128 assert(Msg.isSetter() && "Getters have no args"); 129 Os << "Argument for property setter is an uninitialized value"; 130 return; 131 case OCM_Subscript: 132 if (Msg.isSetter() && (ArgumentNumber == 0)) 133 Os << "Argument for subscript setter is an uninitialized value"; 134 else 135 Os << "Subscript index is an uninitialized value"; 136 return; 137 } 138 llvm_unreachable("Unknown message kind."); 139 } 140 case CE_Block: 141 Os << (ArgumentNumber + 1) << llvm::getOrdinalSuffix(ArgumentNumber + 1) 142 << " block call argument is an uninitialized value"; 143 return; 144 default: 145 Os << (ArgumentNumber + 1) << llvm::getOrdinalSuffix(ArgumentNumber + 1) 146 << " function call argument is an uninitialized value"; 147 return; 148 } 149 } 150 151 bool CallAndMessageChecker::uninitRefOrPointer( 152 CheckerContext &C, const SVal &V, SourceRange ArgRange, const Expr *ArgEx, 153 std::unique_ptr<BugType> &BT, const ParmVarDecl *ParamDecl, const char *BD, 154 int ArgumentNumber) const { 155 if (!Filter.Check_CallAndMessageUnInitRefArg) 156 return false; 157 158 // No parameter declaration available, i.e. variadic function argument. 159 if(!ParamDecl) 160 return false; 161 162 // If parameter is declared as pointer to const in function declaration, 163 // then check if corresponding argument in function call is 164 // pointing to undefined symbol value (uninitialized memory). 165 SmallString<200> Buf; 166 llvm::raw_svector_ostream Os(Buf); 167 168 if (ParamDecl->getType()->isPointerType()) { 169 Os << (ArgumentNumber + 1) << llvm::getOrdinalSuffix(ArgumentNumber + 1) 170 << " function call argument is a pointer to uninitialized value"; 171 } else if (ParamDecl->getType()->isReferenceType()) { 172 Os << (ArgumentNumber + 1) << llvm::getOrdinalSuffix(ArgumentNumber + 1) 173 << " function call argument is an uninitialized value"; 174 } else 175 return false; 176 177 if(!ParamDecl->getType()->getPointeeType().isConstQualified()) 178 return false; 179 180 if (const MemRegion *SValMemRegion = V.getAsRegion()) { 181 const ProgramStateRef State = C.getState(); 182 const SVal PSV = State->getSVal(SValMemRegion, C.getASTContext().CharTy); 183 if (PSV.isUndef()) { 184 if (ExplodedNode *N = C.generateErrorNode()) { 185 LazyInit_BT(BD, BT); 186 auto R = llvm::make_unique<BugReport>(*BT, Os.str(), N); 187 R->addRange(ArgRange); 188 if (ArgEx) { 189 bugreporter::trackNullOrUndefValue(N, ArgEx, *R); 190 } 191 C.emitReport(std::move(R)); 192 } 193 return true; 194 } 195 } 196 return false; 197 } 198 199 class FindUninitializedField { 200 public: 201 SmallVector<const FieldDecl *, 10> FieldChain; 202 203 private: 204 StoreManager &StoreMgr; 205 MemRegionManager &MrMgr; 206 Store store; 207 208 public: 209 FindUninitializedField(StoreManager &storeMgr, MemRegionManager &mrMgr, 210 Store s) 211 : StoreMgr(storeMgr), MrMgr(mrMgr), store(s) {} 212 213 bool Find(const TypedValueRegion *R) { 214 QualType T = R->getValueType(); 215 if (const RecordType *RT = T->getAsStructureType()) { 216 const RecordDecl *RD = RT->getDecl()->getDefinition(); 217 assert(RD && "Referred record has no definition"); 218 for (const auto *I : RD->fields()) { 219 const FieldRegion *FR = MrMgr.getFieldRegion(I, R); 220 FieldChain.push_back(I); 221 T = I->getType(); 222 if (T->getAsStructureType()) { 223 if (Find(FR)) 224 return true; 225 } else { 226 const SVal &V = StoreMgr.getBinding(store, loc::MemRegionVal(FR)); 227 if (V.isUndef()) 228 return true; 229 } 230 FieldChain.pop_back(); 231 } 232 } 233 234 return false; 235 } 236 }; 237 238 bool CallAndMessageChecker::PreVisitProcessArg(CheckerContext &C, 239 SVal V, 240 SourceRange ArgRange, 241 const Expr *ArgEx, 242 int ArgumentNumber, 243 bool CheckUninitFields, 244 const CallEvent &Call, 245 std::unique_ptr<BugType> &BT, 246 const ParmVarDecl *ParamDecl 247 ) const { 248 const char *BD = "Uninitialized argument value"; 249 250 if (uninitRefOrPointer(C, V, ArgRange, ArgEx, BT, ParamDecl, BD, 251 ArgumentNumber)) 252 return true; 253 254 if (V.isUndef()) { 255 if (ExplodedNode *N = C.generateErrorNode()) { 256 LazyInit_BT(BD, BT); 257 // Generate a report for this bug. 258 SmallString<200> Buf; 259 llvm::raw_svector_ostream Os(Buf); 260 describeUninitializedArgumentInCall(Call, ArgumentNumber, Os); 261 auto R = llvm::make_unique<BugReport>(*BT, Os.str(), N); 262 263 R->addRange(ArgRange); 264 if (ArgEx) 265 bugreporter::trackNullOrUndefValue(N, ArgEx, *R); 266 C.emitReport(std::move(R)); 267 } 268 return true; 269 } 270 271 if (!CheckUninitFields) 272 return false; 273 274 if (auto LV = V.getAs<nonloc::LazyCompoundVal>()) { 275 const LazyCompoundValData *D = LV->getCVData(); 276 FindUninitializedField F(C.getState()->getStateManager().getStoreManager(), 277 C.getSValBuilder().getRegionManager(), 278 D->getStore()); 279 280 if (F.Find(D->getRegion())) { 281 if (ExplodedNode *N = C.generateErrorNode()) { 282 LazyInit_BT(BD, BT); 283 SmallString<512> Str; 284 llvm::raw_svector_ostream os(Str); 285 os << "Passed-by-value struct argument contains uninitialized data"; 286 287 if (F.FieldChain.size() == 1) 288 os << " (e.g., field: '" << *F.FieldChain[0] << "')"; 289 else { 290 os << " (e.g., via the field chain: '"; 291 bool first = true; 292 for (SmallVectorImpl<const FieldDecl *>::iterator 293 DI = F.FieldChain.begin(), DE = F.FieldChain.end(); DI!=DE;++DI){ 294 if (first) 295 first = false; 296 else 297 os << '.'; 298 os << **DI; 299 } 300 os << "')"; 301 } 302 303 // Generate a report for this bug. 304 auto R = llvm::make_unique<BugReport>(*BT, os.str(), N); 305 R->addRange(ArgRange); 306 307 // FIXME: enhance track back for uninitialized value for arbitrary 308 // memregions 309 C.emitReport(std::move(R)); 310 } 311 return true; 312 } 313 } 314 315 return false; 316 } 317 318 void CallAndMessageChecker::checkPreStmt(const CallExpr *CE, 319 CheckerContext &C) const{ 320 321 const Expr *Callee = CE->getCallee()->IgnoreParens(); 322 ProgramStateRef State = C.getState(); 323 const LocationContext *LCtx = C.getLocationContext(); 324 SVal L = State->getSVal(Callee, LCtx); 325 326 if (L.isUndef()) { 327 if (!BT_call_undef) 328 BT_call_undef.reset(new BuiltinBug( 329 this, "Called function pointer is an uninitialized pointer value")); 330 emitBadCall(BT_call_undef.get(), C, Callee); 331 return; 332 } 333 334 ProgramStateRef StNonNull, StNull; 335 std::tie(StNonNull, StNull) = State->assume(L.castAs<DefinedOrUnknownSVal>()); 336 337 if (StNull && !StNonNull) { 338 if (!BT_call_null) 339 BT_call_null.reset(new BuiltinBug( 340 this, "Called function pointer is null (null dereference)")); 341 emitBadCall(BT_call_null.get(), C, Callee); 342 return; 343 } 344 345 C.addTransition(StNonNull); 346 } 347 348 void CallAndMessageChecker::checkPreStmt(const CXXDeleteExpr *DE, 349 CheckerContext &C) const { 350 351 SVal Arg = C.getSVal(DE->getArgument()); 352 if (Arg.isUndef()) { 353 StringRef Desc; 354 ExplodedNode *N = C.generateErrorNode(); 355 if (!N) 356 return; 357 if (!BT_cxx_delete_undef) 358 BT_cxx_delete_undef.reset( 359 new BuiltinBug(this, "Uninitialized argument value")); 360 if (DE->isArrayFormAsWritten()) 361 Desc = "Argument to 'delete[]' is uninitialized"; 362 else 363 Desc = "Argument to 'delete' is uninitialized"; 364 BugType *BT = BT_cxx_delete_undef.get(); 365 auto R = llvm::make_unique<BugReport>(*BT, Desc, N); 366 bugreporter::trackNullOrUndefValue(N, DE, *R); 367 C.emitReport(std::move(R)); 368 return; 369 } 370 } 371 372 void CallAndMessageChecker::checkPreCall(const CallEvent &Call, 373 CheckerContext &C) const { 374 ProgramStateRef State = C.getState(); 375 376 // If this is a call to a C++ method, check if the callee is null or 377 // undefined. 378 if (const CXXInstanceCall *CC = dyn_cast<CXXInstanceCall>(&Call)) { 379 SVal V = CC->getCXXThisVal(); 380 if (V.isUndef()) { 381 if (!BT_cxx_call_undef) 382 BT_cxx_call_undef.reset( 383 new BuiltinBug(this, "Called C++ object pointer is uninitialized")); 384 emitBadCall(BT_cxx_call_undef.get(), C, CC->getCXXThisExpr()); 385 return; 386 } 387 388 ProgramStateRef StNonNull, StNull; 389 std::tie(StNonNull, StNull) = 390 State->assume(V.castAs<DefinedOrUnknownSVal>()); 391 392 if (StNull && !StNonNull) { 393 if (!BT_cxx_call_null) 394 BT_cxx_call_null.reset( 395 new BuiltinBug(this, "Called C++ object pointer is null")); 396 emitBadCall(BT_cxx_call_null.get(), C, CC->getCXXThisExpr()); 397 return; 398 } 399 400 State = StNonNull; 401 } 402 403 const Decl *D = Call.getDecl(); 404 if (D && (isa<FunctionDecl>(D) || isa<BlockDecl>(D))) { 405 // If we have a function or block declaration, we can make sure we pass 406 // enough parameters. 407 unsigned Params = Call.parameters().size(); 408 if (Call.getNumArgs() < Params) { 409 ExplodedNode *N = C.generateErrorNode(); 410 if (!N) 411 return; 412 413 LazyInit_BT("Function call with too few arguments", BT_call_few_args); 414 415 SmallString<512> Str; 416 llvm::raw_svector_ostream os(Str); 417 if (isa<FunctionDecl>(D)) { 418 os << "Function "; 419 } else { 420 assert(isa<BlockDecl>(D)); 421 os << "Block "; 422 } 423 os << "taking " << Params << " argument" 424 << (Params == 1 ? "" : "s") << " is called with fewer (" 425 << Call.getNumArgs() << ")"; 426 427 C.emitReport( 428 llvm::make_unique<BugReport>(*BT_call_few_args, os.str(), N)); 429 } 430 } 431 432 // Don't check for uninitialized field values in arguments if the 433 // caller has a body that is available and we have the chance to inline it. 434 // This is a hack, but is a reasonable compromise betweens sometimes warning 435 // and sometimes not depending on if we decide to inline a function. 436 const bool checkUninitFields = 437 !(C.getAnalysisManager().shouldInlineCall() && (D && D->getBody())); 438 439 std::unique_ptr<BugType> *BT; 440 if (isa<ObjCMethodCall>(Call)) 441 BT = &BT_msg_arg; 442 else 443 BT = &BT_call_arg; 444 445 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D); 446 for (unsigned i = 0, e = Call.getNumArgs(); i != e; ++i) { 447 const ParmVarDecl *ParamDecl = nullptr; 448 if(FD && i < FD->getNumParams()) 449 ParamDecl = FD->getParamDecl(i); 450 if (PreVisitProcessArg(C, Call.getArgSVal(i), Call.getArgSourceRange(i), 451 Call.getArgExpr(i), i, 452 checkUninitFields, Call, *BT, ParamDecl)) 453 return; 454 } 455 456 // If we make it here, record our assumptions about the callee. 457 C.addTransition(State); 458 } 459 460 void CallAndMessageChecker::checkPreObjCMessage(const ObjCMethodCall &msg, 461 CheckerContext &C) const { 462 SVal recVal = msg.getReceiverSVal(); 463 if (recVal.isUndef()) { 464 if (ExplodedNode *N = C.generateErrorNode()) { 465 BugType *BT = nullptr; 466 switch (msg.getMessageKind()) { 467 case OCM_Message: 468 if (!BT_msg_undef) 469 BT_msg_undef.reset(new BuiltinBug(this, 470 "Receiver in message expression " 471 "is an uninitialized value")); 472 BT = BT_msg_undef.get(); 473 break; 474 case OCM_PropertyAccess: 475 if (!BT_objc_prop_undef) 476 BT_objc_prop_undef.reset(new BuiltinBug( 477 this, "Property access on an uninitialized object pointer")); 478 BT = BT_objc_prop_undef.get(); 479 break; 480 case OCM_Subscript: 481 if (!BT_objc_subscript_undef) 482 BT_objc_subscript_undef.reset(new BuiltinBug( 483 this, "Subscript access on an uninitialized object pointer")); 484 BT = BT_objc_subscript_undef.get(); 485 break; 486 } 487 assert(BT && "Unknown message kind."); 488 489 auto R = llvm::make_unique<BugReport>(*BT, BT->getName(), N); 490 const ObjCMessageExpr *ME = msg.getOriginExpr(); 491 R->addRange(ME->getReceiverRange()); 492 493 // FIXME: getTrackNullOrUndefValueVisitor can't handle "super" yet. 494 if (const Expr *ReceiverE = ME->getInstanceReceiver()) 495 bugreporter::trackNullOrUndefValue(N, ReceiverE, *R); 496 C.emitReport(std::move(R)); 497 } 498 return; 499 } 500 } 501 502 void CallAndMessageChecker::checkObjCMessageNil(const ObjCMethodCall &msg, 503 CheckerContext &C) const { 504 HandleNilReceiver(C, C.getState(), msg); 505 } 506 507 void CallAndMessageChecker::emitNilReceiverBug(CheckerContext &C, 508 const ObjCMethodCall &msg, 509 ExplodedNode *N) const { 510 511 if (!BT_msg_ret) 512 BT_msg_ret.reset( 513 new BuiltinBug(this, "Receiver in message expression is 'nil'")); 514 515 const ObjCMessageExpr *ME = msg.getOriginExpr(); 516 517 QualType ResTy = msg.getResultType(); 518 519 SmallString<200> buf; 520 llvm::raw_svector_ostream os(buf); 521 os << "The receiver of message '"; 522 ME->getSelector().print(os); 523 os << "' is nil"; 524 if (ResTy->isReferenceType()) { 525 os << ", which results in forming a null reference"; 526 } else { 527 os << " and returns a value of type '"; 528 msg.getResultType().print(os, C.getLangOpts()); 529 os << "' that will be garbage"; 530 } 531 532 auto report = llvm::make_unique<BugReport>(*BT_msg_ret, os.str(), N); 533 report->addRange(ME->getReceiverRange()); 534 // FIXME: This won't track "self" in messages to super. 535 if (const Expr *receiver = ME->getInstanceReceiver()) { 536 bugreporter::trackNullOrUndefValue(N, receiver, *report); 537 } 538 C.emitReport(std::move(report)); 539 } 540 541 static bool supportsNilWithFloatRet(const llvm::Triple &triple) { 542 return (triple.getVendor() == llvm::Triple::Apple && 543 (triple.isiOS() || triple.isWatchOS() || 544 !triple.isMacOSXVersionLT(10,5))); 545 } 546 547 void CallAndMessageChecker::HandleNilReceiver(CheckerContext &C, 548 ProgramStateRef state, 549 const ObjCMethodCall &Msg) const { 550 ASTContext &Ctx = C.getASTContext(); 551 static CheckerProgramPointTag Tag(this, "NilReceiver"); 552 553 // Check the return type of the message expression. A message to nil will 554 // return different values depending on the return type and the architecture. 555 QualType RetTy = Msg.getResultType(); 556 CanQualType CanRetTy = Ctx.getCanonicalType(RetTy); 557 const LocationContext *LCtx = C.getLocationContext(); 558 559 if (CanRetTy->isStructureOrClassType()) { 560 // Structure returns are safe since the compiler zeroes them out. 561 SVal V = C.getSValBuilder().makeZeroVal(RetTy); 562 C.addTransition(state->BindExpr(Msg.getOriginExpr(), LCtx, V), &Tag); 563 return; 564 } 565 566 // Other cases: check if sizeof(return type) > sizeof(void*) 567 if (CanRetTy != Ctx.VoidTy && C.getLocationContext()->getParentMap() 568 .isConsumedExpr(Msg.getOriginExpr())) { 569 // Compute: sizeof(void *) and sizeof(return type) 570 const uint64_t voidPtrSize = Ctx.getTypeSize(Ctx.VoidPtrTy); 571 const uint64_t returnTypeSize = Ctx.getTypeSize(CanRetTy); 572 573 if (CanRetTy.getTypePtr()->isReferenceType()|| 574 (voidPtrSize < returnTypeSize && 575 !(supportsNilWithFloatRet(Ctx.getTargetInfo().getTriple()) && 576 (Ctx.FloatTy == CanRetTy || 577 Ctx.DoubleTy == CanRetTy || 578 Ctx.LongDoubleTy == CanRetTy || 579 Ctx.LongLongTy == CanRetTy || 580 Ctx.UnsignedLongLongTy == CanRetTy)))) { 581 if (ExplodedNode *N = C.generateErrorNode(state, &Tag)) 582 emitNilReceiverBug(C, Msg, N); 583 return; 584 } 585 586 // Handle the safe cases where the return value is 0 if the 587 // receiver is nil. 588 // 589 // FIXME: For now take the conservative approach that we only 590 // return null values if we *know* that the receiver is nil. 591 // This is because we can have surprises like: 592 // 593 // ... = [[NSScreens screens] objectAtIndex:0]; 594 // 595 // What can happen is that [... screens] could return nil, but 596 // it most likely isn't nil. We should assume the semantics 597 // of this case unless we have *a lot* more knowledge. 598 // 599 SVal V = C.getSValBuilder().makeZeroVal(RetTy); 600 C.addTransition(state->BindExpr(Msg.getOriginExpr(), LCtx, V), &Tag); 601 return; 602 } 603 604 C.addTransition(state); 605 } 606 607 #define REGISTER_CHECKER(name) \ 608 void ento::register##name(CheckerManager &mgr) { \ 609 CallAndMessageChecker *Checker = \ 610 mgr.registerChecker<CallAndMessageChecker>(); \ 611 Checker->Filter.Check_##name = true; \ 612 Checker->Filter.CheckName_##name = mgr.getCurrentCheckName(); \ 613 } 614 615 REGISTER_CHECKER(CallAndMessageUnInitRefArg) 616 REGISTER_CHECKER(CallAndMessageChecker) 617