| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | ContainerDataPointerCheck.cpp | 49 unaryOperator( in registerMatchers() 54 unaryOperator(hasOperatorName("&"), in registerMatchers() 68 unaryOperator( in registerMatchers()
|
| H A D | RedundantSmartptrGetCheck.cpp | 71 unaryOperator(hasOperatorName("*"), hasUnaryOperand(callToGet(Smartptr))), in registerMatchersForGetArrowStart() 78 unaryOperator(hasOperatorName("!"), hasUnaryOperand(CallToGetAsBool)), in registerMatchersForGetArrowStart()
|
| H A D | RedundantFunctionPtrDereferenceCheck.cpp | 21 traverse(TK_AsIs, unaryOperator(hasOperatorName("*"), in registerMatchers()
|
| H A D | ContainerSizeEmptyCheck.cpp | 79 unaryOperator(hasOperatorName("!")).bind("NegOnSize")))))) in AST_MATCHER() 161 anyOf(unaryOperator( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousStringCompareCheck.cpp | 87 const auto ComparisonUnaryOperator = unaryOperator(hasOperatorName("!")); in registerMatchers() 124 Finder->addMatcher(unaryOperator(hasOperatorName("!"), in registerMatchers() 150 unaryOperator( in registerMatchers()
|
| H A D | BoolPointerImplicitConversionCheck.cpp | 25 unless(hasParent(unaryOperator(hasOperatorName("!")))), in registerMatchers() 49 if (!match(findAll(unaryOperator(hasOperatorName("*"), in checkImpl()
|
| H A D | AssertSideEffectCheck.cpp | 106 unaryOperator(hasOperatorName("!"), in registerMatchers() 107 hasUnaryOperand(unaryOperator( in registerMatchers()
|
| H A D | SizeofExpressionCheck.cpp | 88 anyOf(integerLiteral(), unaryOperator(hasUnaryOperand(IntegerExpr)), in registerMatchers() 141 unaryOperator(hasUnaryOperand(ArrayExpr), unless(hasOperatorName("*"))), in registerMatchers() 147 const auto StructAddrOfExpr = unaryOperator( in registerMatchers()
|
| H A D | IntegerDivisionCheck.cpp | 26 const auto UnaryOperators = unaryOperator(hasAnyOperatorName("~", "!")); in registerMatchers()
|
| H A D | PosixReturnCheck.cpp | 56 hasRHS(unaryOperator(hasOperatorName("-"), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | ShrinkToFitCheck.cpp | 34 0, anyOf(Shrinkable, unaryOperator(hasUnaryOperand(Shrinkable)))), in registerMatchers() 38 unaryOperator(hasUnaryOperand(BoundShrinkable))), in registerMatchers()
|
| H A D | IntegralLiteralExpressionMatcher.cpp | 76 bool IntegralLiteralExpressionMatcher::unaryOperator() { in unaryOperator() function in clang::tidy::modernize::IntegralLiteralExpressionMatcher 130 if (!unaryOperator()) in unaryExpr()
|
| H A D | IntegralLiteralExpressionMatcher.h | 60 bool unaryOperator();
|
| H A D | UseDefaultMemberInitCheck.cpp | 201 unaryOperator(hasAnyOperatorName("+", "-"), in registerMatchers() 204 unaryOperator(hasAnyOperatorName("+", "-"), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | UnconventionalAssignOperatorCheck.cpp | 56 anyOf(unaryOperator(hasOperatorName("*"), hasUnaryOperand(cxxThisExpr())), in registerMatchers() 63 0, unaryOperator(hasOperatorName("*"), in registerMatchers()
|
| H A D | StaticAssertCheck.cpp | 30 auto NegatedString = unaryOperator( in registerMatchers() 52 AssertExprRoot, unaryOperator(hasUnaryOperand( in registerMatchers()
|
| H A D | NonCopyableObjects.cpp | 50 expr(unaryOperator(hasOperatorName("*"), BadEitherType)).bind("expr"), in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopUnrolling.cpp | 99 unaryOperator(anyOf(hasOperatorName("--"), hasOperatorName("++")), in changeIntBoundNode() 125 return unaryOperator( in getAddrTo() 157 hasIncrement(unaryOperator( in forLoopMatcher()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProBoundsPointerArithmeticCheck.cpp | 38 unaryOperator(hasAnyOperatorName("++", "--"), hasType(pointerType())) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | ImplicitConversionInLoopCheck.cpp | 59 hasDescendant(unaryOperator(hasOperatorName("*")) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/ |
| H A D | SignedBitwiseCheck.cpp | 71 unaryOperator(hasOperatorName("~"), hasUnaryOperand(SignedIntegerOperand)) in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTraversalTest.cpp | 1744 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!")); in TEST() 1764 unaryOperator(hasUnaryOperand(cxxBoolLiteral(equals(false)))); in TEST() 1929 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+")))); in TEST() 1931 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-")))); in TEST() 1951 "void x() { A a; !a; }", unaryOperator(hasOperatorName("!")))); in TEST() 3201 auto M = unaryOperator(hasOperatorName("++")); in TEST() 3921 auto M = unaryOperator( in TEST() 4078 unaryOperator(hasOperatorName("!"), in TEST() 4089 unaryOperator(hasOperatorName("!"), in TEST() 5667 has(unaryOperator(hasOperatorName("*")))))); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | NonTrivialTypesLibcMemoryCallsCheck.cpp | 74 return expr(unaryOperator( in registerMatchers()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | LibASTMatchersTutorial.rst | 355 hasIncrement(unaryOperator(hasOperatorName("++"))) 360 variable declarations. To find a ``unaryOperator`` that refers to a 365 hasIncrement(unaryOperator( 374 hasIncrement(unaryOperator( 383 hasIncrement(unaryOperator( 490 hasIncrement(unaryOperator(
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | DeclRefExprUtils.cpp | 81 hasInitializer(ignoringImpCasts(unaryOperator( in constReferenceDeclRefExprs()
|