Home
last modified time | relevance | path

Searched refs:hasAnyOperatorName (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DIntegerDivisionCheck.cpp23 hasAnyOperatorName("%", "<<", ">>", "<<", "^", "|", "&", "||", "&&", "<", in registerMatchers()
26 const auto UnaryOperators = unaryOperator(hasAnyOperatorName("~", "!")); in registerMatchers()
H A DSuspiciousEnumUsageCheck.cpp133 binaryOperator(hasAnyOperatorName("+", "|"), in registerMatchers()
141 hasAnyOperatorName("+", "|"), in registerMatchers()
146 Finder->addMatcher(binaryOperator(hasAnyOperatorName("|=", "+="), in registerMatchers()
H A DSizeofContainerCheck.cpp31 hasAnyOperatorName("/", "%"), in registerMatchers()
H A DPosixReturnCheck.cpp52 hasAnyOperatorName("==", "!=", "<=", "<"), in registerMatchers()
H A DUnhandledSelfAssignmentCheck.cpp44 binaryOperation(hasAnyOperatorName("==", "!="), in registerMatchers()
H A DMisplacedPointerArithmeticInAllocCheck.cpp31 const auto AdditiveOperator = binaryOperator(hasAnyOperatorName("+", "-")); in registerMatchers()
H A DSuspiciousStringCompareCheck.cpp115 binaryOperator(hasAnyOperatorName("&&", "||"), in registerMatchers()
H A DSignedCharMisuseCheck.cpp96 expr(binaryOperator(hasAnyOperatorName("==", "!="), in registerMatchers()
H A DMisplacedWideningCastCheck.cpp32 expr(anyOf(binaryOperator(hasAnyOperatorName("+", "-", "*", "<<")), in registerMatchers()
H A DRedundantBranchConditionCheck.cpp63 hasAnyOperatorName("&&", "||"), in registerMatchers()
H A DImplicitWideningOfMultiplicationResultCheck.cpp252 hasAnyOperatorName("+", "-", "+=", "-=")) in registerMatchers()
H A DSizeofExpressionCheck.cpp253 hasAnyOperatorName("==", "!=", "<", "<=", ">", ">=", "+", "-"), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProBoundsPointerArithmeticCheck.cpp32 hasAnyOperatorName("+", "-", "+=", "-="), AllPointerTypes, in registerMatchers()
38 unaryOperator(hasAnyOperatorName("++", "--"), hasType(pointerType())) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/
H A DSignedBitwiseCheck.cpp51 binaryOperator(hasAnyOperatorName("^", "|", "&", "^=", "|=", "&="), in registerMatchers()
63 binaryOperator(hasAnyOperatorName("<<", ">>", "<<=", ">>="), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DStringFindStartswithCheck.cpp53 hasAnyOperatorName("==", "!="), in registerMatchers()
72 hasAnyOperatorName("==", "!="), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DStringCompareCheck.cpp43 binaryOperator(hasAnyOperatorName("==", "!="), in registerMatchers()
H A DContainerSizeEmptyCheck.cpp78 binaryOperator(hasAnyOperatorName("&&", "||")), in AST_MATCHER()
167 binaryOperation(hasAnyOperatorName("==", "!="), in registerMatchers()
H A DImplicitBoolConversionCheck.cpp301 auto BoolComparison = binaryOperator(hasAnyOperatorName("==", "!="), in registerMatchers()
304 auto BoolOpAssignment = binaryOperator(hasAnyOperatorName("|=", "&="), in registerMatchers()
H A DRedundantSmartptrGetCheck.cpp102 binaryOperator(hasAnyOperatorName("==", "!="), in registerMatchersForGetEquals()
H A DNonConstParameterCheck.cpp31 Finder->addMatcher(stmt(anyOf(unaryOperator(hasAnyOperatorName("++", "--")), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseDefaultMemberInitCheck.cpp201 unaryOperator(hasAnyOperatorName("+", "-"), in registerMatchers()
204 unaryOperator(hasAnyOperatorName("+", "-"), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp543 expr(anyOf(binaryOperator(hasAnyOperatorName("+", "|", "&"), in matchBinOpIntegerConstantExpr()
867 hasAnyOperatorName("-", "/", "%", "|", "&", "^", "&&", in registerMatchers()
883 binaryOperator(hasAnyOperatorName("|", "&", "||", "&&", "^"), in registerMatchers()
934 hasAnyOperatorName("|", "&"), in registerMatchers()
936 binaryOperator(hasAnyOperatorName("|", "&")), in registerMatchers()
1003 binaryOperator(hasAnyOperatorName("||", "&&"), in registerMatchers()
H A DStaticAssertCheck.cpp41 hasAnyOperatorName("&&", "=="), in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp1516 binaryOperator(hasAnyOperatorName("+", "-", "*", "/")); in TEST()
1808 hasAnyOperatorName("+", "!"), in TEST()
1820 hasAnyOperatorName("+", "!"), in TEST()
3991 hasOperatorName("!="), hasAnyOperatorName("<", "!="), in TEST()
4008 hasOperatorName("!="), hasAnyOperatorName("<", "!="), in TEST()
4150 hasOperatorName("!="), hasAnyOperatorName("<", "!="), in TEST()
4181 hasOperatorName("<"), hasAnyOperatorName("<", "!="), in TEST()
4198 hasOperatorName("<"), hasAnyOperatorName("<", "!="), in TEST()
4212 hasOperatorName(">"), hasAnyOperatorName("<", ">"), in TEST()
4229 hasOperatorName(">"), hasAnyOperatorName("<", ">"), in TEST()
[all …]
H A DASTMatchersNarrowingTest.cpp681 .with(hasAnyOperatorName("==", "!="), in TEST_P()
687 .with(hasAnyOperatorName("==", "!="), in TEST_P()
693 .with(hasAnyOperatorName("==", "!="), in TEST_P()
852 .with(hasAnyOperatorName("+", "!"), in TEST_P()
858 .with(hasAnyOperatorName("+", "!"), in TEST_P()
864 .with(hasAnyOperatorName("+", "!"), in TEST_P()

12