reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/AST/Expr.h
 3416   BinaryOperator(Expr *lhs, Expr *rhs, Opcode opc, QualType ResTy,
 3444   Opcode getOpcode() const {
 3447   void setOpcode(Opcode Opc) { BinaryOperatorBits.Opc = Opc; }
 3463   static StringRef getOpcodeStr(Opcode Op);
 3469   static Opcode getOverloadedOpcode(OverloadedOperatorKind OO);
 3473   static OverloadedOperatorKind getOverloadedOperator(Opcode Opc);
 3476   static bool isPtrMemOp(Opcode Opc) {
 3481   static bool isMultiplicativeOp(Opcode Opc) {
 3485   static bool isAdditiveOp(Opcode Opc) { return Opc == BO_Add || Opc==BO_Sub; }
 3487   static bool isShiftOp(Opcode Opc) { return Opc == BO_Shl || Opc == BO_Shr; }
 3490   static bool isBitwiseOp(Opcode Opc) { return Opc >= BO_And && Opc <= BO_Or; }
 3493   static bool isRelationalOp(Opcode Opc) { return Opc >= BO_LT && Opc<=BO_GE; }
 3496   static bool isEqualityOp(Opcode Opc) { return Opc == BO_EQ || Opc == BO_NE; }
 3499   static bool isComparisonOp(Opcode Opc) { return Opc >= BO_Cmp && Opc<=BO_NE; }
 3502   static bool isCommaOp(Opcode Opc) { return Opc == BO_Comma; }
 3505   static Opcode negateComparisonOp(Opcode Opc) {
 3505   static Opcode negateComparisonOp(Opcode Opc) {
 3518   static Opcode reverseComparisonOp(Opcode Opc) {
 3518   static Opcode reverseComparisonOp(Opcode Opc) {
 3532   static bool isLogicalOp(Opcode Opc) { return Opc == BO_LAnd || Opc==BO_LOr; }
 3535   static bool isAssignmentOp(Opcode Opc) {
 3540   static bool isCompoundAssignmentOp(Opcode Opc) {
 3546   static Opcode getOpForCompoundAssignment(Opcode Opc) {
 3546   static Opcode getOpForCompoundAssignment(Opcode Opc) {
 3554   static bool isShiftAssignOp(Opcode Opc) {
 3564   static bool isNullPointerArithmeticExtension(ASTContext &Ctx, Opcode Opc,
 3601   BinaryOperator(Expr *lhs, Expr *rhs, Opcode opc, QualType ResTy,
 3633   CompoundAssignOperator(Expr *lhs, Expr *rhs, Opcode opc, QualType ResType,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h
  253   const llvm::APSInt* evalAPSInt(BinaryOperator::Opcode Op,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
  584   SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op,
  589   SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op,
  595   SVal evalBinOp(ProgramStateRef ST, BinaryOperator::Opcode Op,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/RangedConstraintManager.h
  163                                BinaryOperator::Opcode op,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
   75   fromNBinOp(llvm::SMTSolverRef &Solver, const BinaryOperator::Opcode Op,
   92                                            const BinaryOperator::Opcode Op,
  170                         const BinaryOperator::Opcode Op,
  203                                                 const BinaryOperator::Opcode Op,
  343              BinaryOperator::Opcode Op, const llvm::SMTExprRef &RHS,
  382     BinaryOperator::Opcode Op = BSE->getOpcode();
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
  117   virtual SVal evalBinOpNN(ProgramStateRef state, BinaryOperator::Opcode op,
  122   virtual SVal evalBinOpLL(ProgramStateRef state, BinaryOperator::Opcode op,
  128   virtual SVal evalBinOpLN(ProgramStateRef state, BinaryOperator::Opcode op,
  141   SVal makeSymExprValNN(BinaryOperator::Opcode op,
  144   SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op,
  322   NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
  325   NonLoc makeNonLoc(const llvm::APSInt& rhs, BinaryOperator::Opcode op,
  328   NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
  388   SVal evalBinOp(SValBuilder &svalBuilder, BinaryOperator::Opcode Op,
  649   SVal evalBinOp(BasicValueFactory& BasicVals, BinaryOperator::Opcode Op,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
  304   BinaryOperator::Opcode Op;
  308   BinarySymExpr(Kind k, BinaryOperator::Opcode op, QualType t)
  322   BinaryOperator::Opcode getOpcode() const { return Op; }
  337   SymIntExpr(const SymExpr *lhs, BinaryOperator::Opcode op,
  355                       BinaryOperator::Opcode op, const llvm::APSInt& rhs,
  380   IntSymExpr(const llvm::APSInt &lhs, BinaryOperator::Opcode op,
  398                       BinaryOperator::Opcode op, const SymExpr *rhs,
  423   SymSymExpr(const SymExpr *lhs, BinaryOperator::Opcode op, const SymExpr *rhs,
  442                     BinaryOperator::Opcode op, const SymExpr *rhs, QualType t) {
  517   const SymIntExpr *getSymIntExpr(const SymExpr *lhs, BinaryOperator::Opcode op,
  520   const SymIntExpr *getSymIntExpr(const SymExpr &lhs, BinaryOperator::Opcode op,
  526                                   BinaryOperator::Opcode op,
  529   const SymSymExpr *getSymSymExpr(const SymExpr *lhs, BinaryOperator::Opcode op,
tools/clang/lib/AST/Expr.cpp
 2030 StringRef BinaryOperator::getOpcodeStr(Opcode Op) {
 2077 OverloadedOperatorKind BinaryOperator::getOverloadedOperator(Opcode Opc) {
 2103                                                       Opcode Opc,
tools/clang/lib/Analysis/BodyFarm.cpp
   58                                  BinaryOperator::Opcode Op);
  123                                          BinaryOperator::Opcode Op) {
tools/clang/lib/CodeGen/CGExprScalar.cpp
   56                              BinaryOperator::Opcode Opcode, bool Signed,
   90   BinaryOperator::Opcode Opcode; // Opcode of BinOp to perform
tools/clang/lib/Sema/SemaChecking.cpp
11510     BinaryOperator::Opcode Opc = BO->getOpcode();
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
  413   BinaryOperator::Opcode OpCode = CondBSE->getOpcode();
tools/clang/lib/StaticAnalyzer/Checkers/ConversionChecker.cpp
   78     BinaryOperator::Opcode Opc = B->getOpcode();
tools/clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp
   59   BinaryOperator::Opcode Op = B->getOpcode();
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
  182   BinaryOperator::Opcode Op = B->getOpcode();
  200   BinaryOperator::Opcode Op = B->getOpcode();
tools/clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
  322                                      BinaryOperator::Opcode Opc);
  325                                             BinaryOperator::Opcode Opc);
  328                                             BinaryOperator::Opcode Opc1,
  330                                             BinaryOperator::Opcode Opc2);
  338                                                    BinaryOperator::Opcode Opc);
  341     SymbolRef NewSym, SymbolRef CondSym, BinaryOperator::Opcode Opc);
 1636              BinaryOperator::Opcode Opc);
 1638              BinaryOperator::Opcode Opc);
 2183                                      BinaryOperator::Opcode Opc) {
 2196                                             BinaryOperator::Opcode Opc) {
 2208                                             BinaryOperator::Opcode Opc1,
 2210                                             BinaryOperator::Opcode Opc2) {
 2237                                                    BinaryOperator::Opcode Opc) {
 2253     SymbolRef NewSym, SymbolRef CondSym, BinaryOperator::Opcode Opc) {
 2351              BinaryOperator::Opcode Opc) {
 2356              BinaryOperator::Opcode Opc) {
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
  515   BinaryOperator::Opcode OpCode = CondBSE->getOpcode();
tools/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
  111     BinaryOperator::Opcode getOpcode() const {
  114       BinaryOperator::Opcode Op =
  327   BinaryOperator::Opcode Op = getOpcode();
tools/clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp
  105       BinaryOperator::Opcode Op = BO->getOpcode();
  202   BinaryOperator::Opcode Op = B->getOpcode();
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
  205 BasicValueFactory::evalAPSInt(BinaryOperator::Opcode Op,
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
 2432   BinaryOperator::Opcode Op = BExpr->getOpcode();
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
   61     BinaryOperator::Opcode Op = B->getOpcode();
 1098     BinaryOperator::Opcode Op = U->isIncrementOp() ? BO_Add : BO_Sub;
tools/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
  460   BinaryOperator::Opcode Operator = SIE->getOpcode();
tools/clang/lib/StaticAnalyzer/Core/RangedConstraintManager.cpp
   34     BinaryOperator::Opcode op = SIE->getOpcode();
   50     BinaryOperator::Opcode Op = SSE->getOpcode();
  121                                                       BinaryOperator::Opcode Op,
  188     BinaryOperator::Opcode Op = SE->getOpcode();
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
   67 NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
   78                                BinaryOperator::Opcode op, const SymExpr *rhs,
   85 NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
  377 SVal SValBuilder::makeSymExprValNN(BinaryOperator::Opcode Op,
  404 SVal SValBuilder::evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op,
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
  243                                     BinaryOperator::Opcode Op,
  269                                  BinaryOperator::Opcode Op,
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
   38   SVal evalBinOpNN(ProgramStateRef state, BinaryOperator::Opcode op,
   40   SVal evalBinOpLL(ProgramStateRef state, BinaryOperator::Opcode op,
   42   SVal evalBinOpLN(ProgramStateRef state, BinaryOperator::Opcode op,
   53   SVal MakeSymIntVal(const SymExpr *LHS, BinaryOperator::Opcode op,
  218                                     BinaryOperator::Opcode op,
  313 static bool isInRelation(BinaryOperator::Opcode Rel, SymbolRef Sym,
  372                                    BinaryOperator::Opcode Op,
  402   BinaryOperator::Opcode ResultOp;
  438 static bool shouldRearrange(ProgramStateRef State, BinaryOperator::Opcode Op,
  447                                      BinaryOperator::Opcode Op, NonLoc Lhs,
  505                                   BinaryOperator::Opcode op,
  670           BinaryOperator::Opcode opc = symIntExpr->getOpcode();
  718             BinaryOperator::Opcode lop = symIntExpr->getOpcode();
  776                                             BinaryOperator::Opcode op,
  822                                   BinaryOperator::Opcode op,
 1104                                   BinaryOperator::Opcode op,
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp
  270                                                BinaryOperator::Opcode op,
  288                                                BinaryOperator::Opcode op,
  306                                                BinaryOperator::Opcode op,