Lines Matching refs:UO
526 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E->IgnoreParenCasts())) in CheckForNullPointerDereference() local
527 if (UO->getOpcode() == UO_Deref && in CheckForNullPointerDereference()
528 UO->getSubExpr()->IgnoreParenCasts()-> in CheckForNullPointerDereference()
530 !UO->getType().isVolatileQualified()) { in CheckForNullPointerDereference()
531 S.DiagRuntimeBehavior(UO->getOperatorLoc(), UO, in CheckForNullPointerDereference()
533 << UO->getSubExpr()->getSourceRange()); in CheckForNullPointerDereference()
534 S.DiagRuntimeBehavior(UO->getOperatorLoc(), UO, in CheckForNullPointerDereference()
8299 UnaryOperator *UO = dyn_cast<UnaryOperator>(LHS.get()->IgnoreImpCasts()); in diagnoseLogicalNotOnLHSofComparison() local
8300 if (!UO || UO->getOpcode() != UO_LNot) return; in diagnoseLogicalNotOnLHSofComparison()
8306 Expr *SubExpr = UO->getSubExpr()->IgnoreImpCasts(); in diagnoseLogicalNotOnLHSofComparison()
8310 S.Diag(UO->getOperatorLoc(), diag::warn_logical_not_on_lhs_of_comparison) in diagnoseLogicalNotOnLHSofComparison()
8319 S.Diag(UO->getOperatorLoc(), diag::note_logical_not_fix) in diagnoseLogicalNotOnLHSofComparison()
8329 S.Diag(UO->getOperatorLoc(), diag::note_logical_not_silence_with_parens) in diagnoseLogicalNotOnLHSofComparison()
9295 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(RHSCheck)) { in CheckAssignmentOperands() local
9296 if ((UO->getOpcode() == UO_Plus || in CheckAssignmentOperands()
9297 UO->getOpcode() == UO_Minus) && in CheckAssignmentOperands()
9298 Loc.isFileID() && UO->getOperatorLoc().isFileID() && in CheckAssignmentOperands()
9300 Loc.getLocWithOffset(1) == UO->getOperatorLoc() && in CheckAssignmentOperands()
9303 Loc.getLocWithOffset(2) != UO->getSubExpr()->getLocStart() && in CheckAssignmentOperands()
9304 UO->getSubExpr()->getLocStart().isFileID()) { in CheckAssignmentOperands()
9306 << (UO->getOpcode() == UO_Plus ? "+" : "-") in CheckAssignmentOperands()
9307 << SourceRange(UO->getOperatorLoc(), UO->getOperatorLoc()); in CheckAssignmentOperands()
9505 UnaryOperator *UO = cast<UnaryOperator>(E); in getPrimaryDecl() local
9507 switch(UO->getOpcode()) { in getPrimaryDecl()
9511 return getPrimaryDecl(UO->getSubExpr()); in getPrimaryDecl()