Lines Matching refs:UO
478 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E->IgnoreParenCasts()))
479 if (UO->getOpcode() == UO_Deref &&
480 UO->getSubExpr()->IgnoreParenCasts()->
482 !UO->getType().isVolatileQualified()) {
483 S.DiagRuntimeBehavior(UO->getOperatorLoc(), UO,
485 << UO->getSubExpr()->getSourceRange());
486 S.DiagRuntimeBehavior(UO->getOperatorLoc(), UO,
7807 UnaryOperator *UO = dyn_cast<UnaryOperator>(LHS.get()->IgnoreImpCasts());
7808 if (!UO || UO->getOpcode() != UO_LNot) return;
7814 Expr *SubExpr = UO->getSubExpr()->IgnoreImpCasts();
7818 S.Diag(UO->getOperatorLoc(), diag::warn_logical_not_on_lhs_of_comparison)
7827 S.Diag(UO->getOperatorLoc(), diag::note_logical_not_fix)
7837 S.Diag(UO->getOperatorLoc(), diag::note_logical_not_silence_with_parens)
8658 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(RHSCheck)) {
8659 if ((UO->getOpcode() == UO_Plus ||
8660 UO->getOpcode() == UO_Minus) &&
8661 Loc.isFileID() && UO->getOperatorLoc().isFileID() &&
8663 Loc.getLocWithOffset(1) == UO->getOperatorLoc() &&
8666 Loc.getLocWithOffset(2) != UO->getSubExpr()->getLocStart() &&
8667 UO->getSubExpr()->getLocStart().isFileID()) {
8669 << (UO->getOpcode() == UO_Plus ? "+" : "-")
8670 << SourceRange(UO->getOperatorLoc(), UO->getOperatorLoc());
8866 UnaryOperator *UO = cast<UnaryOperator>(E);
8868 switch(UO->getOpcode()) {
8872 return getPrimaryDecl(UO->getSubExpr());