Home
last modified time | relevance | path

Searched refs:UnaryOperator (Results 1 – 25 of 65) 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; }
499 } else if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(S)) { in dataTraverseNode()
502 case UO_##NAME: DISPATCH_WALK(Unary##NAME, UnaryOperator, S); in dataTraverseNode()
555 } else if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(S)) { in TraverseStmt()
558 case UO_##NAME: DISPATCH(Unary##NAME, UnaryOperator, S); in TraverseStmt()
2216 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.cpp66 if (UnaryOperator *uop = dyn_cast<UnaryOperator>(e)) { in rebuild()
69 return new (S.Context) UnaryOperator(e, uop->getOpcode(), in rebuild()
392 assert(UnaryOperator::isIncrementDecrementOp(opcode)); in buildIncDecOperation()
403 if (UnaryOperator::isPostfix(opcode) && assignmentsHaveResult()) { in buildIncDecOperation()
413 if (UnaryOperator::isIncrementOp(opcode)) { in buildIncDecOperation()
423 UnaryOperator::isPrefix(opcode) && assignmentsHaveResult()); in buildIncDecOperation()
427 UnaryOperator *syntactic = in buildIncDecOperation()
428 new (S.Context) UnaryOperator(syntacticOp, opcode, resultType, in buildIncDecOperation()
800 << unsigned(UnaryOperator::isDecrementOp(opcode)) in buildIncDecOperation()
812 << unsigned(UnaryOperator::isDecrementOp(opcode)) in buildIncDecOperation()
[all …]
DSemaChecking.cpp3130 if (const UnaryOperator *UnaryOp = dyn_cast<UnaryOperator>(Dest)) in CheckMemaccessArguments()
3558 UnaryOperator *U = cast<UnaryOperator>(E); in EvalAddr()
3723 UnaryOperator *U = cast<UnaryOperator>(E); in EvalVal()
4158 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in GetExprRange()
4659 if (UnaryOperator *UOp = dyn_cast<UnaryOperator>(InnerE)) in CheckImplicitConversion()
5228 const UnaryOperator *UO = cast<UnaryOperator>(expr); in CheckArrayAccess()
5869 const UnaryOperator *UO = cast<UnaryOperator>(TypeExpr); in FindTypeTagExpr()
/external/clang/lib/CodeGen/
DCGExprComplex.cpp158 ComplexPairTy VisitPrePostIncDec(const UnaryOperator *E, in VisitPrePostIncDec()
163 ComplexPairTy VisitUnaryPostDec(const UnaryOperator *E) { in VisitUnaryPostDec()
166 ComplexPairTy VisitUnaryPostInc(const UnaryOperator *E) { in VisitUnaryPostInc()
169 ComplexPairTy VisitUnaryPreDec(const UnaryOperator *E) { in VisitUnaryPreDec()
172 ComplexPairTy VisitUnaryPreInc(const UnaryOperator *E) { in VisitUnaryPreInc()
176 ComplexPairTy VisitUnaryPlus (const UnaryOperator *E) { in VisitUnaryPlus()
181 ComplexPairTy VisitUnaryMinus (const UnaryOperator *E);
182 ComplexPairTy VisitUnaryNot (const UnaryOperator *E);
184 ComplexPairTy VisitUnaryExtension(const UnaryOperator *E) { in VisitUnaryExtension()
455 ComplexPairTy ComplexExprEmitter::VisitUnaryMinus(const UnaryOperator *E) { in VisitUnaryMinus()
[all …]
DCGExprScalar.cpp279 Value *VisitUnaryPostDec(const UnaryOperator *E) { in VisitUnaryPostDec()
283 Value *VisitUnaryPostInc(const UnaryOperator *E) { in VisitUnaryPostInc()
287 Value *VisitUnaryPreDec(const UnaryOperator *E) { in VisitUnaryPreDec()
291 Value *VisitUnaryPreInc(const UnaryOperator *E) { in VisitUnaryPreInc()
296 llvm::Value *EmitAddConsiderOverflowBehavior(const UnaryOperator *E,
301 llvm::Value *EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV,
305 Value *VisitUnaryAddrOf(const UnaryOperator *E) { in VisitUnaryAddrOf()
311 Value *VisitUnaryDeref(const UnaryOperator *E) { in VisitUnaryDeref()
316 Value *VisitUnaryPlus(const UnaryOperator *E) { in VisitUnaryPlus()
321 Value *VisitUnaryMinus (const UnaryOperator *E);
[all …]
DCGExprAgg.cpp109 void VisitUnaryExtension(UnaryOperator *E) { Visit(E->getSubExpr()); } in VisitUnaryExtension()
134 void VisitUnaryDeref(UnaryOperator *E) { EmitAggLoadOfLValue(E); } in VisitUnaryDeref()
744 } else if (const UnaryOperator *uop = dyn_cast<UnaryOperator>(E)) { in isBlockVarRef()
/external/clang/lib/Analysis/
DPseudoConstantAnalysis.cpp139 const UnaryOperator *UO = cast<UnaryOperator>(Head); in RunAnalysis()
DReachableCode.cpp195 const UnaryOperator *UO = cast<UnaryOperator>(S); in GetUnreachableLoc()
DThreadSafety.cpp377 } else if (UnaryOperator *UOE = dyn_cast<UnaryOperator>(Exp)) { in buildSExpr()
1596 else if (const UnaryOperator *UOP = dyn_cast<UnaryOperator>(Cond)) { in getTrylockCallExpr()
1726 void VisitUnaryOperator(UnaryOperator *UO);
1809 UnaryOperator *UO = dyn_cast<UnaryOperator>(Exp); in checkDereference()
1974 void BuildLockset::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator()
DLiveVariables.cpp218 void VisitUnaryOperator(UnaryOperator *UO);
427 void TransferFunctions::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator()
/external/clang/lib/AST/
DExpr.cpp63 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(E)) { in isKnownToHaveBooleanValue()
872 const char *UnaryOperator::getOpcodeStr(Opcode Op) { in getOpcodeStr()
892 UnaryOperator::getOverloadedOpcode(OverloadedOperatorKind OO, bool Postfix) { in getOverloadedOpcode()
906 OverloadedOperatorKind UnaryOperator::getOverloadedOperator(Opcode Opc) { in getOverloadedOperator()
1009 } else if (UnaryOperator *UO = dyn_cast<UnaryOperator>(CEE)) { in getCalleeDecl()
1817 const UnaryOperator *UO = cast<UnaryOperator>(this); in isUnusedResultAWarning()
1990 if (isa<UnaryOperator>(PO->getSyntacticForm()) || in isUnusedResultAWarning()
2095 return cast<UnaryOperator>(E)->getSubExpr()->isOBJCGCCandidate(Ctx); in isOBJCGCCandidate()
2163 if (UnaryOperator* P = dyn_cast<UnaryOperator>(E)) { in IgnoreParens()
2192 if (UnaryOperator* P = dyn_cast<UnaryOperator>(E)) { in IgnoreParenCasts()
[all …]
DExprConstant.cpp2379 RetTy VisitUnaryExtension(const UnaryOperator *E) in VisitUnaryExtension()
2381 RetTy VisitUnaryPlus(const UnaryOperator *E) in VisitUnaryPlus()
2797 bool VisitUnaryDeref(const UnaryOperator *E);
2798 bool VisitUnaryReal(const UnaryOperator *E);
2799 bool VisitUnaryImag(const UnaryOperator *E);
2945 bool LValueExprEvaluator::VisitUnaryDeref(const UnaryOperator *E) { in VisitUnaryDeref()
2949 bool LValueExprEvaluator::VisitUnaryReal(const UnaryOperator *E) { in VisitUnaryReal()
2958 bool LValueExprEvaluator::VisitUnaryImag(const UnaryOperator *E) { in VisitUnaryImag()
2995 bool VisitUnaryAddrOf(const UnaryOperator *E);
3052 bool PointerExprEvaluator::VisitUnaryAddrOf(const UnaryOperator *E) { in VisitUnaryAddrOf()
[all …]
DStmtDumper.cpp145 void VisitUnaryOperator(UnaryOperator *Node);
455 void StmtDumper::VisitUnaryOperator(UnaryOperator *Node) { in VisitUnaryOperator()
458 << " '" << UnaryOperator::getOpcodeStr(Node->getOpcode()) << "'"; in VisitUnaryOperator()
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.cpp293 else if (const UnaryOperator* U = dyn_cast<UnaryOperator>(S)) { in observeStmt()
398 void VisitUnaryOperator(UnaryOperator* U) { in VisitUnaryOperator()
DDereferenceChecker.cpp126 const UnaryOperator *U = cast<UnaryOperator>(S); in reportBug()
DIdempotentOperationChecker.cpp684 const UnaryOperator *U = cast<const UnaryOperator>(Ex); in CanVary()
DCheckSecuritySyntaxOnly.cpp205 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()
2136 DEF_TRAVERSE_STMT(UnaryOperator, { })
/external/clang/lib/StaticAnalyzer/Core/
DBugReporterVisitors.cpp59 else if (const UnaryOperator *U = dyn_cast<UnaryOperator>(S)) { in GetDerefExpr()
722 const UnaryOperator *UO = cast<UnaryOperator>(Ex); in VisitTrueTest()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DExprEngine.h371 void VisitUnaryOperator(const UnaryOperator* B, ExplodedNode *Pred,
375 void VisitIncrementDecrementOperator(const UnaryOperator* U,
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp615 if (const UnaryOperator *UOE = dyn_cast<UnaryOperator>(literalE)) { in rewriteToNumberLiteral()
781 isa<UnaryOperator>(Expr)) in castOperatorNeedsParens()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h795 UnaryOperator> unaryOperator;
1964 (llvm::is_base_of<UnaryOperator, NodeType>::value), in AST_POLYMORPHIC_MATCHER_P()
2008 AST_MATCHER_P(UnaryOperator, hasUnaryOperand, in AST_MATCHER_P() argument

123