Home
last modified time | relevance | path

Searched refs:unaryOperator (Results 1 – 4 of 4) sorted by relevance

/external/clang/docs/
DLibASTMatchersTutorial.rst348 hasIncrement(unaryOperator(hasOperatorName("++")))
353 variable declarations. To find a ``unaryOperator`` that refers to a
358 hasIncrement(unaryOperator(
367 hasIncrement(unaryOperator(
376 hasIncrement(unaryOperator(
483 hasIncrement(unaryOperator(
/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp2523 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator())); in TEST()
2533 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!")); in TEST()
2541 unaryOperator(hasUnaryOperand(cxxBoolLiteral(equals(false)))); in TEST()
2550 EXPECT_TRUE(matches("bool b = !true;", unaryOperator(hasOperatorName("!")))); in TEST()
2552 matches("bool b; bool *p = &b;", unaryOperator(hasOperatorName("&")))); in TEST()
2553 EXPECT_TRUE(matches("int i = ~ 1;", unaryOperator(hasOperatorName("~")))); in TEST()
2555 matches("bool *p; bool b = *p;", unaryOperator(hasOperatorName("*")))); in TEST()
2557 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+")))); in TEST()
2559 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-")))); in TEST()
2561 matches("int i; int j = ++i;", unaryOperator(hasOperatorName("++")))); in TEST()
[all …]
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp366 REGISTER_MATCHER(unaryOperator); in RegistryMaps()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1551 UnaryOperator> unaryOperator; variable