Searched refs:binaryOperator (Results 1 – 6 of 6) sorted by relevance
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 727 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 …]
|
D | ASTMatchersNarrowingTest.cpp | 316 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()
|
D | ASTMatchersNodeTest.cpp | 1356 EXPECT_FALSE(matches(code, binaryOperator(hasLHS( in TEST() 1358 EXPECT_TRUE(matches(code, binaryOperator(hasRHS( in TEST()
|
/external/clang/docs/ |
D | LibASTMatchersTutorial.rst | 191 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/ |
D | Registry.cpp | 111 REGISTER_MATCHER(binaryOperator); in RegistryMaps()
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 1744 BinaryOperator> binaryOperator; variable
|