/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | ShrinkToFitCheck.cpp | 30 unaryOperator(has(ignoringParenImpCasts(ShrinkableAsMember))), in registerMatchers() 31 unaryOperator(has(ignoringParenImpCasts(ShrinkableAsDecl)))))); in registerMatchers() 35 unaryOperator(has(ignoringParenImpCasts( in registerMatchers() 37 unaryOperator(has(ignoringParenImpCasts(declRefExpr( in registerMatchers()
|
D | UseDefaultMemberInitCheck.cpp | 201 unaryOperator(hasAnyOperatorName("+", "-"), in registerMatchers() 204 unaryOperator(hasAnyOperatorName("+", "-"), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SuspiciousStringCompareCheck.cpp | 87 const auto ComparisonUnaryOperator = unaryOperator(hasOperatorName("!")); in registerMatchers() 129 Finder->addMatcher(unaryOperator(hasOperatorName("!"), in registerMatchers() 155 unaryOperator( in registerMatchers()
|
D | BoolPointerImplicitConversionCheck.cpp | 25 unless(hasParent(unaryOperator(hasOperatorName("!")))), in registerMatchers() 49 if (!match(findAll(unaryOperator(hasOperatorName("*"), in checkImpl()
|
D | AssertSideEffectCheck.cpp | 94 unaryOperator(hasOperatorName("!"), in registerMatchers() 95 hasUnaryOperand(unaryOperator( in registerMatchers()
|
D | IntegerDivisionCheck.cpp | 26 const auto UnaryOperators = unaryOperator(hasAnyOperatorName("~", "!")); in registerMatchers()
|
D | SizeofExpressionCheck.cpp | 86 anyOf(integerLiteral(), unaryOperator(hasUnaryOperand(IntegerExpr)), in registerMatchers() 143 unaryOperator(hasUnaryOperand(ArrayExpr), unless(hasOperatorName("*"))), in registerMatchers() 150 unaryOperator(hasOperatorName("&"), in registerMatchers()
|
D | PosixReturnCheck.cpp | 56 hasRHS(unaryOperator(hasOperatorName("-"), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | UnconventionalAssignOperatorCheck.cpp | 55 anyOf(unaryOperator(hasOperatorName("*"), hasUnaryOperand(cxxThisExpr())), in registerMatchers() 62 0, unaryOperator(hasOperatorName("*"), in registerMatchers()
|
D | StaticAssertCheck.cpp | 30 auto NegatedString = unaryOperator( in registerMatchers() 52 AssertExprRoot, unaryOperator(hasUnaryOperand( in registerMatchers()
|
D | NonCopyableObjects.cpp | 50 expr(unaryOperator(hasOperatorName("*"), BadEitherType)).bind("expr"), in registerMatchers()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 849 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator())); in TEST() 859 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!")); in TEST() 867 unaryOperator(hasUnaryOperand(cxxBoolLiteral(equals(false)))); in TEST() 876 EXPECT_TRUE(matches("bool b = !true;", unaryOperator(hasOperatorName("!")))); in TEST() 878 matches("bool b; bool *p = &b;", unaryOperator(hasOperatorName("&")))); in TEST() 879 EXPECT_TRUE(matches("int i = ~ 1;", unaryOperator(hasOperatorName("~")))); in TEST() 881 matches("bool *p; bool b = *p;", unaryOperator(hasOperatorName("*")))); in TEST() 883 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+")))); in TEST() 885 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-")))); in TEST() 887 matches("int i; int j = ++i;", unaryOperator(hasOperatorName("++")))); in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | RedundantSmartptrGetCheck.cpp | 57 unaryOperator(hasOperatorName("*"), hasUnaryOperand(callToGet(Smartptr))), in registerMatchersForGetArrowStart() 64 unaryOperator(hasOperatorName("!"), hasUnaryOperand(CallToGetAsBool)), in registerMatchersForGetArrowStart()
|
D | RedundantFunctionPtrDereferenceCheck.cpp | 21 unaryOperator(hasOperatorName("*"), in registerMatchers()
|
D | ContainerSizeEmptyCheck.cpp | 53 unaryOperator(hasOperatorName("!")).bind("NegOnSize")), in registerMatchers() 83 anyOf(unaryOperator( in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | LoopUnrolling.cpp | 96 unaryOperator(anyOf(hasOperatorName("--"), hasOperatorName("++")), in changeIntBoundNode() 122 return unaryOperator( in getAddrTo() 154 hasIncrement(unaryOperator( in forLoopMatcher()
|
/external/clang/unittests/AST/ |
D | ASTImporterTest.cpp | 281 unaryOperator( in TEST() 332 unaryOperator(hasUnaryOperand(integerLiteral(equals(5)))) in TEST() 357 unaryOperator(hasOperatorName("-"), in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | ProBoundsPointerArithmeticCheck.cpp | 36 unaryOperator(hasAnyOperatorName("++", "--"), hasType(pointerType())) in registerMatchers()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 1436 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator())); in TEST() 1446 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!")); in TEST() 1453 StatementMatcher Matcher = unaryOperator(hasAnyOperatorName("-", "*", "++")); in TEST() 1466 unaryOperator(hasUnaryOperand(cxxBoolLiteral(equals(false)))); in TEST() 1475 EXPECT_TRUE(matches("bool b = !true;", unaryOperator(hasOperatorName("!")))); in TEST() 1477 matches("bool b; bool *p = &b;", unaryOperator(hasOperatorName("&")))); in TEST() 1478 EXPECT_TRUE(matches("int i = ~ 1;", unaryOperator(hasOperatorName("~")))); in TEST() 1480 matches("bool *p; bool b = *p;", unaryOperator(hasOperatorName("*")))); in TEST() 1482 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+")))); in TEST() 1484 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-")))); in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | ImplicitConversionInLoopCheck.cpp | 59 hasDescendant(unaryOperator(hasOperatorName("*")) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/ |
D | SignedBitwiseCheck.cpp | 71 unaryOperator(hasOperatorName("~"), hasUnaryOperand(SignedIntegerOperand)) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | NonTrivialTypesLibcMemoryCallsCheck.cpp | 91 return expr(unaryOperator( in registerMatchers()
|
/external/llvm-project/clang/docs/ |
D | LibASTMatchersTutorial.rst | 340 hasIncrement(unaryOperator(hasOperatorName("++"))) 345 variable declarations. To find a ``unaryOperator`` that refers to a 350 hasIncrement(unaryOperator( 359 hasIncrement(unaryOperator( 368 hasIncrement(unaryOperator( 475 hasIncrement(unaryOperator(
|
/external/clang/docs/ |
D | LibASTMatchersTutorial.rst | 348 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/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | ObjCAutoreleaseWriteChecker.cpp | 182 hasLHS(unaryOperator( in checkASTCodeBody()
|