Home
last modified time | relevance | path

Searched refs:RhsConstant (Results 1 – 25 of 31) sorted by relevance

12

/dports/devel/llvm80/llvm-8.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp849 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
853 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
861 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm70/llvm-7.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp849 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
853 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
861 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm90/llvm-9.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp855 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
859 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
867 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp908 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
912 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
920 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp908 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
912 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
920 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1077 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1081 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1089 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1072 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1076 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1084 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1073 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1077 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1085 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/tools/extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1071 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1075 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1083 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1071 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1075 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1083 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1072 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1076 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1084 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1072 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1076 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1084 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1072 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1076 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1084 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1073 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1077 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1085 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm13/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp1072 uint64_t RhsConstant = RhsValue.getZExtValue(); in checkBitwiseExpr() local
1076 if (LhsOpcode == BO_And && (LhsConstant & RhsConstant) != RhsConstant) { in checkBitwiseExpr()
1084 if (LhsOpcode == BO_Or && (LhsConstant | RhsConstant) != RhsConstant) { in checkBitwiseExpr()
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang/lib/Sema/
H A DSemaChecking.cpp11850 bool RhsConstant) { in CheckTautologicalComparison() argument
11896 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11908 RhsConstant)) { in CheckTautologicalComparison()
11956 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11992 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
12036 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
12037 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
12038 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
12039 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
12043 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang/lib/Sema/
H A DSemaChecking.cpp11089 bool RhsConstant) { in CheckTautologicalComparison() argument
11135 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11147 RhsConstant)) { in CheckTautologicalComparison()
11195 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11228 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
11272 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
11273 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
11274 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
11275 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
11279 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/devel/llvm12/llvm-project-12.0.1.src/clang/lib/Sema/
H A DSemaChecking.cpp11099 bool RhsConstant) { in CheckTautologicalComparison() argument
11145 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11157 RhsConstant)) { in CheckTautologicalComparison()
11205 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11238 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
11282 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
11283 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
11284 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
11285 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
11289 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang/lib/Sema/
H A DSemaChecking.cpp11621 bool RhsConstant) { in CheckTautologicalComparison() argument
11667 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11679 RhsConstant)) { in CheckTautologicalComparison()
11727 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11763 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
11807 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
11808 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
11809 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
11810 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
11814 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang/lib/Sema/
H A DSemaChecking.cpp11621 bool RhsConstant) { in CheckTautologicalComparison() argument
11667 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11679 RhsConstant)) { in CheckTautologicalComparison()
11727 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11763 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
11807 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
11808 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
11809 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
11810 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
11814 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp11621 bool RhsConstant) { in CheckTautologicalComparison() argument
11667 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11679 RhsConstant)) { in CheckTautologicalComparison()
11727 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11763 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
11807 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
11808 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
11809 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
11810 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
11814 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/clang/lib/Sema/
H A DSemaChecking.cpp11099 bool RhsConstant) { in CheckTautologicalComparison() argument
11145 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11157 RhsConstant)) { in CheckTautologicalComparison()
11205 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11238 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
11282 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
11283 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
11284 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
11285 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
11289 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/devel/llvm13/llvm-project-13.0.1.src/clang/lib/Sema/
H A DSemaChecking.cpp11621 bool RhsConstant) { in CheckTautologicalComparison() argument
11667 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11679 RhsConstant)) { in CheckTautologicalComparison()
11727 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11763 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
11807 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
11808 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
11809 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
11810 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
11814 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/lang/clang-mesa/clang-13.0.1.src/lib/Sema/
H A DSemaChecking.cpp11621 bool RhsConstant) { in CheckTautologicalComparison() argument
11667 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
11679 RhsConstant)) { in CheckTautologicalComparison()
11727 << RhsConstant << OtherValueRange.Width << OtherValueRange.NonNegative in CheckTautologicalComparison()
11763 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
11807 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() local
11808 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
11809 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
11810 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
11814 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()
/dports/devel/llvm90/llvm-9.0.1.src/tools/clang/lib/Sema/
H A DSemaChecking.cpp10381 bool RhsConstant) { in CheckTautologicalComparison() argument
10426 auto Result = PromotedRange::constantValue(E->getOpcode(), Cmp, RhsConstant); in CheckTautologicalComparison()
10485 << RhsConstant << OtherT << E->getOpcodeStr() << OS.str() << *Result in CheckTautologicalComparison()
10532 const bool RhsConstant = IsRHSIntegralLiteral; in AnalyzeComparison() local
10533 Expr *Const = RhsConstant ? RHS : LHS; in AnalyzeComparison()
10534 Expr *Other = RhsConstant ? LHS : RHS; in AnalyzeComparison()
10535 const llvm::APSInt &Value = RhsConstant ? RHSValue : LHSValue; in AnalyzeComparison()
10539 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant)) in AnalyzeComparison()

12