Home
last modified time | relevance | path

Searched refs:UnaryOperator (Results 1 – 25 of 68) sorted by relevance

123

/external/clang/include/clang/AST/
DStmtVisitor.h80 } else if (PTR(UnaryOperator) UnOp = dyn_cast<UnaryOperator>(S)) { in Visit()
82 case UO_PostInc: DISPATCH(UnaryPostInc, UnaryOperator); in Visit()
83 case UO_PostDec: DISPATCH(UnaryPostDec, UnaryOperator); in Visit()
84 case UO_PreInc: DISPATCH(UnaryPreInc, UnaryOperator); in Visit()
85 case UO_PreDec: DISPATCH(UnaryPreDec, UnaryOperator); in Visit()
86 case UO_AddrOf: DISPATCH(UnaryAddrOf, UnaryOperator); in Visit()
87 case UO_Deref: DISPATCH(UnaryDeref, UnaryOperator); in Visit()
88 case UO_Plus: DISPATCH(UnaryPlus, UnaryOperator); in Visit()
89 case UO_Minus: DISPATCH(UnaryMinus, UnaryOperator); in Visit()
90 case UO_Not: DISPATCH(UnaryNot, UnaryOperator); in Visit()
[all …]
DRecursiveASTVisitor.h158 return isa<BinaryOperator>(S) || isa<UnaryOperator>(S) || in shouldUseDataRecursionFor()
272 bool TraverseUnary##NAME(UnaryOperator *S) { \
277 bool WalkUpFromUnary##NAME(UnaryOperator *S) { \
282 bool VisitUnary##NAME(UnaryOperator *S) { return true; }
494 } else if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(S)) { in dataTraverseNode()
497 case UO_##NAME: DISPATCH_WALK(Unary##NAME, UnaryOperator, S); in dataTraverseNode()
549 } else if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(S)) { in TraverseStmt()
552 case UO_##NAME: DISPATCH(Unary##NAME, UnaryOperator, S); in TraverseStmt()
2213 DEF_TRAVERSE_STMT(UnaryOperator, { })
/external/clang/lib/Sema/
DSemaFixItUtils.cpp89 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()
DSemaPseudoObject.cpp68 if (UnaryOperator *uop = dyn_cast<UnaryOperator>(e)) { in rebuild()
71 return new (S.Context) UnaryOperator(e, uop->getOpcode(), in rebuild()
404 assert(UnaryOperator::isIncrementDecrementOp(opcode)); in buildIncDecOperation()
415 if (UnaryOperator::isPostfix(opcode) && CanCaptureValueOfType(resultType)) { in buildIncDecOperation()
425 if (UnaryOperator::isIncrementOp(opcode)) { in buildIncDecOperation()
434 result = buildSet(result.take(), opcLoc, UnaryOperator::isPrefix(opcode)); in buildIncDecOperation()
438 UnaryOperator *syntactic = in buildIncDecOperation()
439 new (S.Context) UnaryOperator(syntacticOp, opcode, resultType, in buildIncDecOperation()
829 << unsigned(UnaryOperator::isDecrementOp(opcode)) in buildIncDecOperation()
841 << unsigned(UnaryOperator::isDecrementOp(opcode)) in buildIncDecOperation()
[all …]
DSemaChecking.cpp3254 if (const UnaryOperator *UnaryOp = dyn_cast<UnaryOperator>(Dest)) in CheckMemaccessArguments()
3683 UnaryOperator *U = cast<UnaryOperator>(E); in EvalAddr()
3848 UnaryOperator *U = cast<UnaryOperator>(E); in EvalVal()
4287 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in GetExprRange()
4918 if (UnaryOperator *UOp = dyn_cast<UnaryOperator>(InnerE)) in CheckImplicitConversion()
5351 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in getObject()
5511 void VisitUnaryPreInc(UnaryOperator *UO) { VisitUnaryPreIncDec(UO); } in VisitUnaryPreInc()
5512 void VisitUnaryPreDec(UnaryOperator *UO) { VisitUnaryPreIncDec(UO); } in VisitUnaryPreDec()
5513 void VisitUnaryPreIncDec(UnaryOperator *UO) { in VisitUnaryPreIncDec()
5523 void VisitUnaryPostInc(UnaryOperator *UO) { VisitUnaryPostIncDec(UO); } in VisitUnaryPostInc()
[all …]
/external/clang/lib/Analysis/
DBodyFarm.cpp64 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()
229 UnaryOperator *UO = new (C) UnaryOperator(LValToRval, UO_LNot, C.IntTy, in create_dispatch_once()
DPseudoConstantAnalysis.cpp139 const UnaryOperator *UO = cast<UnaryOperator>(Head); in RunAnalysis()
DReachableCode.cpp195 const UnaryOperator *UO = cast<UnaryOperator>(S); in GetUnreachableLoc()
DThreadSafety.cpp392 } else if (const UnaryOperator *UOE = dyn_cast<UnaryOperator>(Exp)) { in buildSExpr()
1633 else if (const UnaryOperator *UOP = dyn_cast<UnaryOperator>(Cond)) { in getTrylockCallExpr()
1764 void VisitUnaryOperator(UnaryOperator *UO);
1854 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(Exp)) { in checkAccess()
2030 void BuildLockset::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator()
DLiveVariables.cpp228 void VisitUnaryOperator(UnaryOperator *UO);
437 void TransferFunctions::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator()
DUninitializedValues.cpp328 void VisitUnaryOperator(UnaryOperator *UO);
398 void ClassifyRefs::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator()
/external/clang/lib/CodeGen/
DCGExprComplex.cpp153 ComplexPairTy VisitPrePostIncDec(const UnaryOperator *E, in VisitPrePostIncDec()
158 ComplexPairTy VisitUnaryPostDec(const UnaryOperator *E) { in VisitUnaryPostDec()
161 ComplexPairTy VisitUnaryPostInc(const UnaryOperator *E) { in VisitUnaryPostInc()
164 ComplexPairTy VisitUnaryPreDec(const UnaryOperator *E) { in VisitUnaryPreDec()
167 ComplexPairTy VisitUnaryPreInc(const UnaryOperator *E) { in VisitUnaryPreInc()
171 ComplexPairTy VisitUnaryPlus (const UnaryOperator *E) { in VisitUnaryPlus()
176 ComplexPairTy VisitUnaryMinus (const UnaryOperator *E);
177 ComplexPairTy VisitUnaryNot (const UnaryOperator *E);
179 ComplexPairTy VisitUnaryExtension(const UnaryOperator *E) { in VisitUnaryExtension()
464 ComplexPairTy ComplexExprEmitter::VisitUnaryMinus(const UnaryOperator *E) { in VisitUnaryMinus()
[all …]
DCGExprScalar.cpp288 Value *VisitUnaryPostDec(const UnaryOperator *E) { in VisitUnaryPostDec()
292 Value *VisitUnaryPostInc(const UnaryOperator *E) { in VisitUnaryPostInc()
296 Value *VisitUnaryPreDec(const UnaryOperator *E) { in VisitUnaryPreDec()
300 Value *VisitUnaryPreInc(const UnaryOperator *E) { in VisitUnaryPreInc()
305 llvm::Value *EmitAddConsiderOverflowBehavior(const UnaryOperator *E,
310 llvm::Value *EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV,
314 Value *VisitUnaryAddrOf(const UnaryOperator *E) { in VisitUnaryAddrOf()
320 Value *VisitUnaryDeref(const UnaryOperator *E) { in VisitUnaryDeref()
325 Value *VisitUnaryPlus(const UnaryOperator *E) { in VisitUnaryPlus()
330 Value *VisitUnaryMinus (const UnaryOperator *E);
[all …]
DCGClass.cpp1035 UnaryOperator *DUO = dyn_cast<UnaryOperator>(DstPtr); in getMemcpyableField()
1047 UnaryOperator *SUO = dyn_cast<UnaryOperator>(SrcPtr); in getMemcpyableField()
2070 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in skipNoOpCastsAndParens()
/external/clang/lib/AST/
DExpr.cpp134 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in isKnownToHaveBooleanValue()
969 StringRef UnaryOperator::getOpcodeStr(Opcode Op) { in getOpcodeStr()
989 UnaryOperator::getOverloadedOpcode(OverloadedOperatorKind OO, bool Postfix) { in getOverloadedOpcode()
1003 OverloadedOperatorKind UnaryOperator::getOverloadedOperator(Opcode Opc) { in getOverloadedOperator()
1106 } else if (UnaryOperator *UO = dyn_cast<UnaryOperator>(CEE)) { in getCalleeDecl()
1918 const UnaryOperator *UO = cast<UnaryOperator>(this); in isUnusedResultAWarning()
2096 if (isa<UnaryOperator>(PO->getSyntacticForm()) || in isUnusedResultAWarning()
2202 return cast<UnaryOperator>(E)->getSubExpr()->isOBJCGCCandidate(Ctx); in isOBJCGCCandidate()
2270 if (UnaryOperator* P = dyn_cast<UnaryOperator>(E)) { in IgnoreParens()
2299 if (UnaryOperator* P = dyn_cast<UnaryOperator>(E)) { in IgnoreParenCasts()
[all …]
DExprConstant.cpp2388 RetTy VisitUnaryExtension(const UnaryOperator *E) in VisitUnaryExtension()
2390 RetTy VisitUnaryPlus(const UnaryOperator *E) in VisitUnaryPlus()
2806 bool VisitUnaryDeref(const UnaryOperator *E);
2807 bool VisitUnaryReal(const UnaryOperator *E);
2808 bool VisitUnaryImag(const UnaryOperator *E);
2948 bool LValueExprEvaluator::VisitUnaryDeref(const UnaryOperator *E) { in VisitUnaryDeref()
2952 bool LValueExprEvaluator::VisitUnaryReal(const UnaryOperator *E) { in VisitUnaryReal()
2961 bool LValueExprEvaluator::VisitUnaryImag(const UnaryOperator *E) { in VisitUnaryImag()
2998 bool VisitUnaryAddrOf(const UnaryOperator *E);
3055 bool PointerExprEvaluator::VisitUnaryAddrOf(const UnaryOperator *E) { in VisitUnaryAddrOf()
[all …]
DExprClassification.cpp211 switch (cast<UnaryOperator>(E)->getOpcode()) { in ClassifyInternal()
220 return ClassifyInternal(Ctx, cast<UnaryOperator>(E)->getSubExpr()); in ClassifyInternal()
226 const Expr *Op = cast<UnaryOperator>(E)->getSubExpr()->IgnoreParens(); in ClassifyInternal()
/external/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp292 else if (const UnaryOperator* U = dyn_cast<UnaryOperator>(S)) { in observeStmt()
397 void VisitUnaryOperator(UnaryOperator* U) { in VisitUnaryOperator()
DDereferenceChecker.cpp135 const UnaryOperator *U = cast<UnaryOperator>(S); in reportBug()
DIdempotentOperationChecker.cpp682 const UnaryOperator *U = cast<const UnaryOperator>(Ex); in CanVary()
DCheckSecuritySyntaxOnly.cpp198 if (const UnaryOperator *U = dyn_cast<UnaryOperator>(expr)) in getIncrementedVar()
/external/clang/tools/libclang/
DRecursiveASTVisitor.h265 bool TraverseUnary##NAME(UnaryOperator *S) { \
271 bool WalkUpFromUnary##NAME(UnaryOperator *S) { \
276 bool VisitUnary##NAME(UnaryOperator *S) { return true; }
483 } else if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(S)) { in TraverseStmt()
486 case UO_##NAME: DISPATCH_STMT(Unary##NAME, UnaryOperator, S); in TraverseStmt()
2139 DEF_TRAVERSE_STMT(UnaryOperator, { })
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DExprEngine.h391 void VisitUnaryOperator(const UnaryOperator* B, ExplodedNode *Pred,
395 void VisitIncrementDecrementOperator(const UnaryOperator* U,
/external/clang/lib/StaticAnalyzer/Core/
DBugReporterVisitors.cpp57 else if (const UnaryOperator *U = dyn_cast<UnaryOperator>(E)) { in getDerefExpr()
1150 const UnaryOperator *UO = cast<UnaryOperator>(Ex); in VisitTrueTest()
/external/clang/include/clang/Basic/
DStmtNodes.td60 def UnaryOperator : DStmt<Expr>;

123