Home
last modified time | relevance | path

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

12

/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DShrinkToFitCheck.cpp30 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()
DUseDefaultMemberInitCheck.cpp201 unaryOperator(hasAnyOperatorName("+", "-"), in registerMatchers()
204 unaryOperator(hasAnyOperatorName("+", "-"), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousStringCompareCheck.cpp87 const auto ComparisonUnaryOperator = unaryOperator(hasOperatorName("!")); in registerMatchers()
129 Finder->addMatcher(unaryOperator(hasOperatorName("!"), in registerMatchers()
155 unaryOperator( in registerMatchers()
DBoolPointerImplicitConversionCheck.cpp25 unless(hasParent(unaryOperator(hasOperatorName("!")))), in registerMatchers()
49 if (!match(findAll(unaryOperator(hasOperatorName("*"), in checkImpl()
DAssertSideEffectCheck.cpp94 unaryOperator(hasOperatorName("!"), in registerMatchers()
95 hasUnaryOperand(unaryOperator( in registerMatchers()
DIntegerDivisionCheck.cpp26 const auto UnaryOperators = unaryOperator(hasAnyOperatorName("~", "!")); in registerMatchers()
DSizeofExpressionCheck.cpp86 anyOf(integerLiteral(), unaryOperator(hasUnaryOperand(IntegerExpr)), in registerMatchers()
143 unaryOperator(hasUnaryOperand(ArrayExpr), unless(hasOperatorName("*"))), in registerMatchers()
150 unaryOperator(hasOperatorName("&"), in registerMatchers()
DPosixReturnCheck.cpp56 hasRHS(unaryOperator(hasOperatorName("-"), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUnconventionalAssignOperatorCheck.cpp55 anyOf(unaryOperator(hasOperatorName("*"), hasUnaryOperand(cxxThisExpr())), in registerMatchers()
62 0, unaryOperator(hasOperatorName("*"), in registerMatchers()
DStaticAssertCheck.cpp30 auto NegatedString = unaryOperator( in registerMatchers()
52 AssertExprRoot, unaryOperator(hasUnaryOperand( in registerMatchers()
DNonCopyableObjects.cpp50 expr(unaryOperator(hasOperatorName("*"), BadEitherType)).bind("expr"), in registerMatchers()
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp849 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/
DRedundantSmartptrGetCheck.cpp57 unaryOperator(hasOperatorName("*"), hasUnaryOperand(callToGet(Smartptr))), in registerMatchersForGetArrowStart()
64 unaryOperator(hasOperatorName("!"), hasUnaryOperand(CallToGetAsBool)), in registerMatchersForGetArrowStart()
DRedundantFunctionPtrDereferenceCheck.cpp21 unaryOperator(hasOperatorName("*"), in registerMatchers()
DContainerSizeEmptyCheck.cpp53 unaryOperator(hasOperatorName("!")).bind("NegOnSize")), in registerMatchers()
83 anyOf(unaryOperator( in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DLoopUnrolling.cpp96 unaryOperator(anyOf(hasOperatorName("--"), hasOperatorName("++")), in changeIntBoundNode()
122 return unaryOperator( in getAddrTo()
154 hasIncrement(unaryOperator( in forLoopMatcher()
/external/clang/unittests/AST/
DASTImporterTest.cpp281 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/
DProBoundsPointerArithmeticCheck.cpp36 unaryOperator(hasAnyOperatorName("++", "--"), hasType(pointerType())) in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1436 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/
DImplicitConversionInLoopCheck.cpp59 hasDescendant(unaryOperator(hasOperatorName("*")) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/
DSignedBitwiseCheck.cpp71 unaryOperator(hasOperatorName("~"), hasUnaryOperand(SignedIntegerOperand)) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DNonTrivialTypesLibcMemoryCallsCheck.cpp91 return expr(unaryOperator( in registerMatchers()
/external/llvm-project/clang/docs/
DLibASTMatchersTutorial.rst340 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/
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/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DObjCAutoreleaseWriteChecker.cpp182 hasLHS(unaryOperator( in checkASTCodeBody()

12