|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 2195 binaryOperator;
References
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 141 REGISTER_MATCHER(binaryOperator);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp 208 binaryOperator(isAssignmentOperator(),
tools/clang/lib/StaticAnalyzer/Checkers/GCDAntipatternChecker.cpp 102 forEachDescendant(binaryOperator(bindAssignmentToDecl(SemaphoreBinding),
144 forEachDescendant(binaryOperator(bindAssignmentToDecl(GroupBinding),
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp 268 binaryOperator(allOf(hasOperatorName("="),
287 binaryOperator(allOf(anyOf(hasOperatorName("=="), hasOperatorName("!=")),
294 binaryOperator(allOf(anyOf(hasOperatorName(">="), hasOperatorName(">"),
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp 162 auto WritesIntoM = binaryOperator(
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 442 StatementMatcher WriteIntoIvarM = binaryOperator(
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp 83 return binaryOperator(anyOf(hasOperatorName("<"), hasOperatorName(">"),
99 binaryOperator(isAssignmentOperator(),
148 binaryOperator(hasLHS(declRefExpr(to(varDecl(
tools/clang/tools/extra/clang-tidy/abseil/DurationAdditionCheck.cpp 23 binaryOperator(hasOperatorName("+"),
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp 130 binaryOperator(hasOperatorName("*"),
134 binaryOperator(hasOperatorName("/"), hasRHS(floatLiteral()))
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.h 131 return binaryOperator(
tools/clang/tools/extra/clang-tidy/abseil/DurationSubtractionCheck.cpp 23 binaryOperator(
tools/clang/tools/extra/clang-tidy/abseil/StringFindStartswithCheck.cpp 52 binaryOperator(
tools/clang/tools/extra/clang-tidy/abseil/TimeSubtractionCheck.cpp 113 hasArgument(0, binaryOperator(hasOperatorName("-"),
123 binaryOperator(hasOperatorName("-"), hasRHS(TimeInverseMatcher))
tools/clang/tools/extra/clang-tidy/android/ComparisonInTempFailureRetryCheck.cpp 64 binaryOperator(
67 binaryOperator(matchers::isComparisonOperator()).bind("binop"))),
tools/clang/tools/extra/clang-tidy/bugprone/IncorrectRoundingsCheck.cpp 56 ignoringParenCasts(binaryOperator(hasOperatorName("+"), OneSideHalf)))
tools/clang/tools/extra/clang-tidy/bugprone/IntegerDivisionCheck.cpp 22 const auto BinaryOperators = binaryOperator(anyOf(
37 binaryOperator(
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedOperatorInStrlenInAllocCheck.cpp 31 binaryOperator(
38 allOf(unless(binaryOperator(
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedWideningCastCheck.cpp 32 expr(anyOf(binaryOperator(
49 Finder->addMatcher(binaryOperator(hasOperatorName("="), hasRHS(Cast)), this);
51 binaryOperator(matchers::isComparisonOperator(), hasEitherOperand(Cast)),
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 532 hasAncestor(compoundStmt(hasDescendant(binaryOperator(
545 binaryOperator(hasOperatorName("+"),
549 binaryOperator(hasOperatorName("-"),
654 auto NullTerminatorExpr = binaryOperator(
712 anyOf(hasDefinition(binaryOperator().bind(
tools/clang/tools/extra/clang-tidy/bugprone/PosixReturnCheck.cpp 32 binaryOperator(
41 binaryOperator(
50 binaryOperator(
tools/clang/tools/extra/clang-tidy/bugprone/SizeofContainerCheck.cpp 30 unless(hasAncestor(binaryOperator(
tools/clang/tools/extra/clang-tidy/bugprone/SizeofExpressionCheck.cpp 83 binaryOperator(hasLHS(IntegerExpr), hasRHS(IntegerExpr)))));
139 binaryOperator(hasEitherOperand(ArrayExpr)),
165 binaryOperator(matchers::isRelationalOperator(),
176 binaryOperator(hasOperatorName(",")))))))
189 binaryOperator(hasOperatorName("/"),
200 Finder->addMatcher(binaryOperator(hasOperatorName("*"),
207 binaryOperator(hasOperatorName("*"),
209 hasEitherOperand(ignoringParenImpCasts(binaryOperator(
225 const auto PtrDiffExpr = binaryOperator(
233 binaryOperator(
240 ignoringParenImpCasts(binaryOperator(
247 Finder->addMatcher(binaryOperator(hasOperatorName("/"),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp 126 binaryOperator(hasOperatorName("|"), hasLHS(enumExpr("", "enumDecl")),
134 binaryOperator(anyOf(hasOperatorName("+"), hasOperatorName("|")),
142 binaryOperator(anyOf(hasOperatorName("+"), hasOperatorName("|")),
149 binaryOperator(anyOf(hasOperatorName("|="), hasOperatorName("+=")),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp 88 binaryOperator(matchers::isComparisonOperator());
120 binaryOperator(
146 binaryOperator(
161 Finder->addMatcher(binaryOperator(matchers::isComparisonOperator(),
tools/clang/tools/extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp 83 binaryOperator(hasOperatorName("<"),
86 binaryOperator(hasOperatorName("<="),
89 binaryOperator(hasOperatorName(">"), hasLHS(LoopBoundMatcher),
91 binaryOperator(hasOperatorName(">="), hasLHS(LoopBoundMatcher),
tools/clang/tools/extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp 47 binaryOperator(anyOf(hasOperatorName("=="), hasOperatorName("!=")),
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp 292 binaryOperator(hasOperatorName("="), hasLHS(DeclRefMatcher)),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp 52 Finder->addMatcher(binaryOperator(isAssignmentOperator(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp 97 Finder->addMatcher(binaryOperator(matchers::isAssignmentOperator(),
125 Finder->addMatcher(binaryOperator(matchers::isAssignmentOperator(),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp 29 binaryOperator(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp 51 match(findAll(binaryOperator(
tools/clang/tools/extra/clang-tidy/hicpp/SignedBitwiseCheck.cpp 36 binaryOperator(anyOf(hasOperatorName("^"), hasOperatorName("|"),
50 binaryOperator(anyOf(hasOperatorName("<<"), hasOperatorName(">>"),
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp 59 binaryOperator(
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp 386 anyOf(binaryOperator(anyOf(hasOperatorName("+"), hasOperatorName("|"),
390 binaryOperator(hasOperatorName("-"),
419 const auto RelationalExpr = ignoringParenImpCasts(binaryOperator(
647 binaryOperator(anyOf(hasOperatorName("-"), hasOperatorName("/"),
696 hasUnaryOperand(ignoringParenImpCasts(binaryOperator(
698 hasLHS(anyOf(binaryOperator(anyOf(hasOperatorName("|"),
707 binaryOperator(hasOperatorName("&"),
708 hasEitherOperand(ignoringParenImpCasts(binaryOperator(
729 Finder->addMatcher(binaryOperator(isComparisonOperator(),
737 binaryOperator(isComparisonOperator(),
744 Finder->addMatcher(binaryOperator(isComparisonOperator(),
759 binaryOperator(anyOf(hasOperatorName("||"), hasOperatorName("&&")),
tools/clang/tools/extra/clang-tidy/misc/StaticAssertCheck.cpp 45 binaryOperator(
48 anyOf(binaryOperator(hasEitherOperand(IsAlwaysFalseWithCast)),
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 90 binaryOperator(hasOperatorName("<"),
93 binaryOperator(hasOperatorName(">"), hasLHS(ArrayBoundMatcher),
187 anyOf(binaryOperator(hasOperatorName("!="),
190 binaryOperator(hasOperatorName("!="),
289 binaryOperator(hasOperatorName("<"),
292 binaryOperator(hasOperatorName(">"), hasLHS(IndexBoundMatcher),
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp 177 binaryOperator(hasOperatorName("="), hasLHS(LHS), hasRHS(RHS)),
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 129 hasCondition(binaryOperator(
tools/clang/tools/extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp 48 hasParent(binaryOperator(
tools/clang/tools/extra/clang-tidy/readability/DeleteNullPointerCheck.cpp 39 binaryOperator(hasEitherOperand(castExpr(hasCastKind(CK_NullToPointer))),
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 279 binaryOperator(hasOperatorName("^"), hasLHS(implicitCastFromBool),
302 auto boolComparison = binaryOperator(
306 binaryOperator(anyOf(hasOperatorName("|="), hasOperatorName("&=")),
308 auto bitfieldAssignment = binaryOperator(
320 unless(hasParent(binaryOperator(anyOf(
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp 33 binaryOperator(), callExpr(), returnStmt(),
tools/clang/tools/extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp 84 binaryOperator(anyOf(hasOperatorName("=="), hasOperatorName("!=")),
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 467 binaryOperator(hasOperatorName("="), hasLHS(anyOf(VarAssign, MemAssign)),
473 binaryOperator(hasOperatorName("="), hasLHS(anyOf(VarRef, MemRef)),
tools/clang/tools/extra/clang-tidy/readability/StringCompareCheck.cpp 44 binaryOperator(anyOf(hasOperatorName("=="), hasOperatorName("!=")),
tools/clang/tools/extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp 99 binaryOperator(hasOperatorName("+"), hasRHS(expr().bind("r"))),
tools/clang/unittests/AST/ASTImporterTest.cpp 1082 binaryOperator(has(cxxUnresolvedConstructExpr())))));
1092 binaryOperator(has(cxxUnresolvedConstructExpr())))));
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 315 StatementMatcher MixedTypes = stmt(anyOf(ifStmt(), binaryOperator()));
713 binaryOperator(hasOperatorName("+"),
716 binaryOperator(hasOperatorName("+"),
1967 auto Matcher = binaryOperator(unless(isInTemplateInstantiation()));
2477 StatementMatcher BinAsgmtOperator = binaryOperator(isAssignmentOperator());
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp 1470 EXPECT_FALSE(matches(code, binaryOperator(hasLHS(
1472 EXPECT_TRUE(matches(code, binaryOperator(hasRHS(
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp 1100 StatementMatcher OperatorOr = binaryOperator(hasOperatorName("||"));
1108 binaryOperator(hasLHS(cxxBoolLiteral(equals(true))),
1123 binaryOperator(hasEitherOperand(cxxBoolLiteral(equals(false))));
1135 matches("void x() { 3, 4; }", binaryOperator(hasOperatorName(","))));
1138 binaryOperator(hasOperatorName("="))));
1140 matches("bool b = 1 != 2;", binaryOperator(hasOperatorName("!="))));
1142 matches("bool b = 1 == 2;", binaryOperator(hasOperatorName("=="))));
1143 EXPECT_TRUE(matches("bool b = 1 < 2;", binaryOperator(hasOperatorName("<"))));
1145 matches("bool b = 1 <= 2;", binaryOperator(hasOperatorName("<="))));
1147 matches("int i = 1 << 2;", binaryOperator(hasOperatorName("<<"))));
1150 binaryOperator(hasOperatorName("<<="))));
1151 EXPECT_TRUE(matches("bool b = 1 > 2;", binaryOperator(hasOperatorName(">"))));
1153 matches("bool b = 1 >= 2;", binaryOperator(hasOperatorName(">="))));
1155 matches("int i = 1 >> 2;", binaryOperator(hasOperatorName(">>"))));
1158 binaryOperator(hasOperatorName(">>="))));
1160 matches("int i = 42 ^ 23;", binaryOperator(hasOperatorName("^"))));
1163 binaryOperator(hasOperatorName("^="))));
1165 matches("int i = 42 % 23;", binaryOperator(hasOperatorName("%"))));
1168 binaryOperator(hasOperatorName("%="))));
1170 matches("bool b = 42 &23;", binaryOperator(hasOperatorName("&"))));
1173 binaryOperator(hasOperatorName("&&"))));
1176 binaryOperator(hasOperatorName("&="))));
1178 matches("bool b = 42 | 23;", binaryOperator(hasOperatorName("|"))));
1181 binaryOperator(hasOperatorName("||"))));
1184 binaryOperator(hasOperatorName("|="))));
1186 matches("int i = 42 *23;", binaryOperator(hasOperatorName("*"))));
1189 binaryOperator(hasOperatorName("*="))));
1191 matches("int i = 42 / 23;", binaryOperator(hasOperatorName("/"))));
1194 binaryOperator(hasOperatorName("/="))));
1196 matches("int i = 42 + 23;", binaryOperator(hasOperatorName("+"))));
1199 binaryOperator(hasOperatorName("+="))));
1201 matches("int i = 42 - 23;", binaryOperator(hasOperatorName("-"))));
1204 binaryOperator(hasOperatorName("-="))));
1207 binaryOperator(hasOperatorName("->*"))));
1210 binaryOperator(hasOperatorName(".*"))));
1215 binaryOperator(hasOperatorName("->"))));
1219 notMatches("bool b = true;", binaryOperator(hasOperatorName("="))));
1228 binaryOperator()));
2519 StatementMatcher RetVal = returnStmt(hasReturnValue(binaryOperator()));
tools/clang/unittests/Tooling/RangeSelectorTest.cpp 586 matchCode(Code, binaryOperator(hasLHS(expr().bind(ID))).bind(Op));
598 TestMatch Match = matchCode(Code, binaryOperator().bind(Op));
tools/clang/unittests/Tooling/TransformerTest.cpp 579 Transformer T(makeRule(binaryOperator().bind(O), change(node(O), AlwaysFail)),
592 Transformer T(makeRule(binaryOperator(hasLHS(expr().bind(L))).bind(O),
741 testRule(makeRule(binaryOperator(hasLHS(expr().bind(E))),
759 testRule(makeRule(binaryOperator(hasRHS(expr().bind(E))),