Home | History | Annotate | Download | only in Analysis

Lines Matching defs:If

32   if (!BPT)
35 // Check if the block pointer type takes no arguments and
133 if (Arg->getType() == Ty)
172 // Check if we have at least two parameters.
173 if (D->param_size() != 2)
176 // Check if the first parameter is a pointer to integer type.
180 if (!PredicatePtrTy)
183 if (!PredicateTy->isIntegerType())
186 // Check if the second parameter is the proper block type.
189 if (!isDispatchBlock(Ty))
196 // if (!*predicate) {
227 // (4) Create the 'if' condition.
241 // (5) Create the 'if' statement.
242 IfStmt *If = new (C) IfStmt(C, SourceLocation(), false, nullptr, nullptr,
244 return If;
249 // Check if we have at least two parameters.
250 if (D->param_size() != 2)
253 // Check if the second parameter is a block.
256 if (!isDispatchBlock(Ty))
277 if (D->param_size() != 3)
285 // if (oldValue == *theValue) {
293 if (!isBoolean && !ResultTy->isIntegralType(C))
307 if (!PT)
345 /// Construct the If.
346 Stmt *If = new (C) IfStmt(C, SourceLocation(), false, nullptr, nullptr,
349 return If;
356 if (Val.hasValue())
361 if (D->getIdentifier() == nullptr)
365 if (Name.empty())
370 if (Name.startswith("OSAtomicCompareAndSwap") ||
381 if (FF) { Val = FF(C, D); }
382 else if (Injector) { Val = Injector->getBody(D); }
389 if (IVar)
394 // property rather than the shadowed property. If there is no instance
396 // shadowed and if so try to get the instance variable from shadowing
398 if (!Prop->isReadOnly())
403 if (auto *InterfaceDecl = dyn_cast<ObjCInterfaceDecl>(Container)) {
405 } else if (auto *CategoryDecl = dyn_cast<ObjCCategoryDecl>(Container)) {
407 } else if (auto *ImplDecl = dyn_cast<ObjCImplDecl>(Container)) {
414 // is guaranteed to find the shadowing property, if it exists, rather than
418 if (ShadowingProp && ShadowingProp != Prop) {
429 if (!IVar)
433 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_weak)
436 // Look to see if Sema has synthesized a body for us. This happens in
438 // non-trivial copy constructor. We can only do this if we can find the
439 // @synthesize for this property, though (or if we know it's been auto-
443 if (ImplDecl) {
445 if (I->getPropertyDecl() != Prop)
448 if (I->getGetterCXXConstructor()) {
458 if (!Ctx.hasSameUnqualifiedType(IVar->getType(),
461 if (!IVar->getType()->isObjCLifetimeType() &&
478 if (!Prop->getType()->isReferenceType())
486 if (!D->isPropertyAccessor())
492 if (Val.hasValue())
497 if (!Prop)
509 if (D->param_size() != 0)