Home
last modified time | relevance | path

Searched refs:binaryOperator (Results 1 – 6 of 6) sorted by relevance

/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp727 StatementMatcher OperatorOr = binaryOperator(hasOperatorName("||")); in TEST()
735 binaryOperator(hasLHS(cxxBoolLiteral(equals(true))), in TEST()
750 binaryOperator(hasEitherOperand(cxxBoolLiteral(equals(false)))); in TEST()
762 matches("void x() { 3, 4; }", binaryOperator(hasOperatorName(",")))); in TEST()
765 binaryOperator(hasOperatorName("=")))); in TEST()
767 matches("bool b = 1 != 2;", binaryOperator(hasOperatorName("!=")))); in TEST()
769 matches("bool b = 1 == 2;", binaryOperator(hasOperatorName("==")))); in TEST()
770 EXPECT_TRUE(matches("bool b = 1 < 2;", binaryOperator(hasOperatorName("<")))); in TEST()
772 matches("bool b = 1 <= 2;", binaryOperator(hasOperatorName("<=")))); in TEST()
774 matches("int i = 1 << 2;", binaryOperator(hasOperatorName("<<")))); in TEST()
[all …]
DASTMatchersNarrowingTest.cpp316 StatementMatcher MixedTypes = stmt(anyOf(ifStmt(), binaryOperator())); in TEST()
572 binaryOperator(hasOperatorName("+"), in TEST()
575 binaryOperator(hasOperatorName("+"), in TEST()
1674 auto Matcher = binaryOperator(unless(isInTemplateInstantiation())); in TEST()
DASTMatchersNodeTest.cpp1356 EXPECT_FALSE(matches(code, binaryOperator(hasLHS( in TEST()
1358 EXPECT_TRUE(matches(code, binaryOperator(hasRHS( in TEST()
/external/clang/docs/
DLibASTMatchersTutorial.rst191 is a matcher to do exactly that, conveniently named ``binaryOperator``.
196 binaryOperator(hasOperatorName("+"), hasLHS(integerLiteral(equals(0))))
395 hasCondition(binaryOperator(hasOperatorName("<"))
402 hasCondition(binaryOperator(
439 hasCondition(binaryOperator(
487 hasCondition(binaryOperator(
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp111 REGISTER_MATCHER(binaryOperator); in RegistryMaps()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1744 BinaryOperator> binaryOperator; variable