/external/clang/include/clang/AST/ |
D | StmtVisitor.h | 82 } else if (PTR(UnaryOperator) UnOp = dyn_cast<UnaryOperator>(S)) { in Visit() 84 case UO_PostInc: DISPATCH(UnaryPostInc, UnaryOperator); in Visit() 85 case UO_PostDec: DISPATCH(UnaryPostDec, UnaryOperator); in Visit() 86 case UO_PreInc: DISPATCH(UnaryPreInc, UnaryOperator); in Visit() 87 case UO_PreDec: DISPATCH(UnaryPreDec, UnaryOperator); in Visit() 88 case UO_AddrOf: DISPATCH(UnaryAddrOf, UnaryOperator); in Visit() 89 case UO_Deref: DISPATCH(UnaryDeref, UnaryOperator); in Visit() 90 case UO_Plus: DISPATCH(UnaryPlus, UnaryOperator); in Visit() 91 case UO_Minus: DISPATCH(UnaryMinus, UnaryOperator); in Visit() 92 case UO_Not: DISPATCH(UnaryNot, UnaryOperator); in Visit() [all …]
|
D | RecursiveASTVisitor.h | 335 bool TraverseUnary##NAME(UnaryOperator *S, \ 341 bool WalkUpFromUnary##NAME(UnaryOperator *S) { \ 346 bool VisitUnary##NAME(UnaryOperator *S) { return true; } 514 } else if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(S)) { 518 DISPATCH_STMT(Unary##NAME, UnaryOperator, S); 2288 DEF_TRAVERSE_STMT(UnaryOperator, {})
|
/external/clang/lib/Sema/ |
D | SemaFixItUtils.cpp | 89 isa<UnaryOperator>(Expr)) in tryToFixConversion() 106 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(Expr)) { in tryToFixConversion() 140 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(Expr)) { in tryToFixConversion()
|
D | SemaPseudoObject.cpp | 128 if (UnaryOperator *uop = dyn_cast<UnaryOperator>(e)) { in rebuild() 131 return new (S.Context) UnaryOperator(e, uop->getOpcode(), in rebuild() 489 assert(UnaryOperator::isIncrementDecrementOp(opcode)); in buildIncDecOperation() 500 if (UnaryOperator::isPostfix(opcode) && in buildIncDecOperation() 511 if (UnaryOperator::isIncrementOp(opcode)) { in buildIncDecOperation() 520 result = buildSet(result.get(), opcLoc, UnaryOperator::isPrefix(opcode) && in buildIncDecOperation() 524 if (UnaryOperator::isPrefix(opcode) && !captureSetValueAsResult() && in buildIncDecOperation() 529 UnaryOperator *syntactic = in buildIncDecOperation() 530 new (S.Context) UnaryOperator(syntacticOp, opcode, resultType, in buildIncDecOperation() 941 << unsigned(UnaryOperator::isDecrementOp(opcode)) in buildIncDecOperation() [all …]
|
D | SemaChecking.cpp | 5292 if (const UnaryOperator *UnaryOp = dyn_cast<UnaryOperator>(Dest)) in CheckMemaccessArguments() 5739 UnaryOperator *U = cast<UnaryOperator>(E); in EvalAddr() 5916 UnaryOperator *U = cast<UnaryOperator>(E); in EvalVal() 6411 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in GetExprRange() 7288 if (UnaryOperator *UOp = dyn_cast<UnaryOperator>(InnerE)) in CheckImplicitConversion() 7557 if (const UnaryOperator *U = dyn_cast<UnaryOperator>(E)) in AnalyzeImplicitConversions() 7650 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in DiagnoseAlwaysNonNullPointer() 8014 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in getObject() 8178 void VisitUnaryPreInc(UnaryOperator *UO) { VisitUnaryPreIncDec(UO); } in VisitUnaryPreInc() 8179 void VisitUnaryPreDec(UnaryOperator *UO) { VisitUnaryPreIncDec(UO); } in VisitUnaryPreDec() [all …]
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | VariantValueTest.cpp | 56 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<UnaryOperator>()); in TEST() 63 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<UnaryOperator>()); in TEST() 91 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<UnaryOperator>()); in TEST()
|
/external/clang/lib/Analysis/ |
D | BodyFarm.cpp | 61 UnaryOperator *makeDereference(const Expr *Arg, QualType Ty); 122 UnaryOperator *ASTMaker::makeDereference(const Expr *Arg, QualType Ty) { in makeDereference() 123 return new (C) UnaryOperator(const_cast<Expr*>(Arg), UO_Deref, Ty, in makeDereference() 237 UnaryOperator *UO = new (C) UnaryOperator(LValToRval, UO_LNot, C.IntTy, in create_dispatch_once()
|
D | PseudoConstantAnalysis.cpp | 139 const UnaryOperator *UO = cast<UnaryOperator>(Head); in RunAnalysis()
|
D | ReachableCode.cpp | 218 const UnaryOperator *UO = cast<UnaryOperator>(S); in isConfigurationValue() 518 const UnaryOperator *UO = cast<UnaryOperator>(S); in GetUnreachableLoc()
|
D | UninitializedValues.cpp | 328 void VisitUnaryOperator(UnaryOperator *UO); 429 void ClassifyRefs::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator() 464 const UnaryOperator *UO = dyn_cast<UnaryOperator>(Ex); in VisitCallExpr()
|
D | LiveVariables.cpp | 212 void VisitUnaryOperator(UnaryOperator *UO); 416 void TransferFunctions::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator()
|
D | ThreadSafety.cpp | 1350 else if (const UnaryOperator *UOP = dyn_cast<UnaryOperator>(Cond)) { in getTrylockCallExpr() 1490 void VisitUnaryOperator(UnaryOperator *UO); 1605 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(Exp)) { in checkAccess() 1832 void BuildLockset::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DeadStoresChecker.cpp | 300 else if (const UnaryOperator* U = dyn_cast<UnaryOperator>(S)) { in observeStmt() 409 const UnaryOperator *U = dyn_cast<UnaryOperator>(S); in operator ()()
|
D | IdenticalExprChecker.cpp | 490 const UnaryOperator *UnaryOp1 = cast<UnaryOperator>(Stmt1); in isIdenticalStmt() 491 const UnaryOperator *UnaryOp2 = cast<UnaryOperator>(Stmt2); in isIdenticalStmt()
|
D | DereferenceChecker.cpp | 141 const UnaryOperator *U = cast<UnaryOperator>(S); in reportBug()
|
D | TestAfterDivZeroChecker.cpp | 233 } else if (const UnaryOperator *U = dyn_cast<UnaryOperator>(Condition)) { in checkBranchCondition()
|
D | CheckSecuritySyntaxOnly.cpp | 208 if (const UnaryOperator *U = dyn_cast<UnaryOperator>(expr)) in getIncrementedVar()
|
/external/clang/lib/CodeGen/ |
D | CGExprComplex.cpp | 165 ComplexPairTy VisitPrePostIncDec(const UnaryOperator *E, in VisitPrePostIncDec() 170 ComplexPairTy VisitUnaryPostDec(const UnaryOperator *E) { in VisitUnaryPostDec() 173 ComplexPairTy VisitUnaryPostInc(const UnaryOperator *E) { in VisitUnaryPostInc() 176 ComplexPairTy VisitUnaryPreDec(const UnaryOperator *E) { in VisitUnaryPreDec() 179 ComplexPairTy VisitUnaryPreInc(const UnaryOperator *E) { in VisitUnaryPreInc() 183 ComplexPairTy VisitUnaryPlus (const UnaryOperator *E) { in VisitUnaryPlus() 188 ComplexPairTy VisitUnaryMinus (const UnaryOperator *E); 189 ComplexPairTy VisitUnaryNot (const UnaryOperator *E); 191 ComplexPairTy VisitUnaryExtension(const UnaryOperator *E) { in VisitUnaryExtension() 504 ComplexPairTy ComplexExprEmitter::VisitUnaryMinus(const UnaryOperator *E) { in VisitUnaryMinus() [all …]
|
D | CGExprScalar.cpp | 335 Value *VisitUnaryPostDec(const UnaryOperator *E) { in VisitUnaryPostDec() 339 Value *VisitUnaryPostInc(const UnaryOperator *E) { in VisitUnaryPostInc() 343 Value *VisitUnaryPreDec(const UnaryOperator *E) { in VisitUnaryPreDec() 347 Value *VisitUnaryPreInc(const UnaryOperator *E) { in VisitUnaryPreInc() 352 llvm::Value *EmitIncDecConsiderOverflowBehavior(const UnaryOperator *E, 356 llvm::Value *EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV, 360 Value *VisitUnaryAddrOf(const UnaryOperator *E) { in VisitUnaryAddrOf() 366 Value *VisitUnaryDeref(const UnaryOperator *E) { in VisitUnaryDeref() 371 Value *VisitUnaryPlus(const UnaryOperator *E) { in VisitUnaryPlus() 376 Value *VisitUnaryMinus (const UnaryOperator *E); [all …]
|
D | CGExprAgg.cpp | 114 void VisitUnaryExtension(UnaryOperator *E) { Visit(E->getSubExpr()); } in VisitUnaryExtension() 139 void VisitUnaryDeref(UnaryOperator *E) { EmitAggLoadOfLValue(E); } in VisitUnaryDeref() 844 } else if (const UnaryOperator *uop = dyn_cast<UnaryOperator>(E)) { in isBlockVarRef()
|
/external/clang/lib/AST/ |
D | Expr.cpp | 120 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in isKnownToHaveBooleanValue() 1096 StringRef UnaryOperator::getOpcodeStr(Opcode Op) { in getOpcodeStr() 1117 UnaryOperator::getOverloadedOpcode(OverloadedOperatorKind OO, bool Postfix) { in getOverloadedOpcode() 1132 OverloadedOperatorKind UnaryOperator::getOverloadedOperator(Opcode Opc) { in getOverloadedOperator() 1209 } else if (UnaryOperator *UO = dyn_cast<UnaryOperator>(CEE)) { in getCalleeDecl() 2075 const UnaryOperator *UO = cast<UnaryOperator>(this); in isUnusedResultAWarning() 2278 if (isa<UnaryOperator>(PO->getSyntacticForm()) || in isUnusedResultAWarning() 2387 return cast<UnaryOperator>(E)->getSubExpr()->isOBJCGCCandidate(Ctx); in isOBJCGCCandidate() 2455 if (UnaryOperator* P = dyn_cast<UnaryOperator>(E)) { in IgnoreParens() 2735 if (const UnaryOperator* UnOp = dyn_cast<UnaryOperator>(E)) { in isImplicitCXXThis() [all …]
|
D | ExprConstant.cpp | 4091 bool VisitUnaryExtension(const UnaryOperator *E) in VisitUnaryExtension() 4093 bool VisitUnaryPlus(const UnaryOperator *E) in VisitUnaryPlus() 4363 bool VisitUnaryPostInc(const UnaryOperator *UO) { in VisitUnaryPostInc() 4366 bool VisitUnaryPostDec(const UnaryOperator *UO) { in VisitUnaryPostDec() 4369 bool VisitUnaryPostIncDec(const UnaryOperator *UO) { in VisitUnaryPostIncDec() 4572 bool VisitUnaryPreIncDec(const UnaryOperator *UO); 4584 bool VisitUnaryDeref(const UnaryOperator *E); 4585 bool VisitUnaryReal(const UnaryOperator *E); 4586 bool VisitUnaryImag(const UnaryOperator *E); 4587 bool VisitUnaryPreInc(const UnaryOperator *UO) { in VisitUnaryPreInc() [all …]
|
D | ExprClassification.cpp | 218 switch (cast<UnaryOperator>(E)->getOpcode()) { in ClassifyInternal() 227 return ClassifyInternal(Ctx, cast<UnaryOperator>(E)->getSubExpr()); in ClassifyInternal() 233 const Expr *Op = cast<UnaryOperator>(E)->getSubExpr()->IgnoreParens(); in ClassifyInternal()
|
D | ASTDiagnostic.cpp | 1027 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E->IgnoreParens())) { in NeedsAddressOf() 1326 UnaryOperator *UO = dyn_cast<UnaryOperator>(ArgExpr->IgnoreParens()); in GetValueDecl() 1728 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) in HasExtraInfo()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExprEngine.h | 417 void VisitUnaryOperator(const UnaryOperator* B, ExplodedNode *Pred, 421 void VisitIncrementDecrementOperator(const UnaryOperator* U,
|