Home
last modified time | relevance | path

Searched refs:BinOpLhs (Results 1 – 15 of 15) sorted by relevance

/dports/devel/llvm80/llvm-8.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp580 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
583 LhsConst = BinOpLhs->getLHS()->isIntegerConstantExpr(*AstCtx) in retrieveConstExprFromBothSides()
584 ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
585 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
593 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
596 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/llvm70/llvm-7.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp580 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
583 LhsConst = BinOpLhs->getLHS()->isIntegerConstantExpr(*AstCtx) in retrieveConstExprFromBothSides()
584 ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
585 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
593 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
596 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/llvm90/llvm-9.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp584 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
591 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
592 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
599 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
602 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp598 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
605 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
606 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
613 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
616 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp598 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
605 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
606 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
613 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
616 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp738 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
745 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
746 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
753 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
756 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp735 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
742 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
743 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
750 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
753 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/llvm12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp736 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
743 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
744 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
751 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
754 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp732 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
739 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
740 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
747 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
750 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp732 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
739 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
740 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
747 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
750 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp735 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
742 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
743 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
750 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
753 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp735 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
742 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
743 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
750 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
753 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp735 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
742 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
743 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
750 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
753 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp736 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
743 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
744 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
751 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
754 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()
/dports/devel/llvm13/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp735 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides() local
742 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
743 : BinOpLhs->getRHS(); in retrieveConstExprFromBothSides()
750 assert(BinOpLhs->getOpcode() == BinOpRhs->getOpcode() && in retrieveConstExprFromBothSides()
753 SideOpcode = BinOpLhs->getOpcode(); in retrieveConstExprFromBothSides()