Home
last modified time | relevance | path

Searched refs:anyOf (Results 1 – 25 of 225) sorted by relevance

123456789

/external/guava/android/guava-tests/test/com/google/common/base/
DCharMatcherTest.java19 import static com.google.common.base.CharMatcher.anyOf;
53 tester.testAllPublicInstanceMethods(CharMatcher.anyOf("abc")); in testStaticNullPointers()
117 doTestSetBits(anyOf("")); in testSetBits()
118 doTestSetBits(anyOf("x")); in testSetBits()
119 doTestSetBits(anyOf("xy")); in testSetBits()
120 doTestSetBits(anyOf("CharMatcher")); in testSetBits()
145 doTestEmpty(anyOf("")); in testEmpty()
146 doTestEmpty(anyOf("x")); in testEmpty()
147 doTestEmpty(anyOf("xy")); in testEmpty()
148 doTestEmpty(anyOf("CharMatcher")); in testEmpty()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DCharMatcherTest.java19 import static com.google.common.base.CharMatcher.anyOf;
53 tester.testAllPublicInstanceMethods(CharMatcher.anyOf("abc")); in testStaticNullPointers()
117 doTestSetBits(anyOf("")); in testSetBits()
118 doTestSetBits(anyOf("x")); in testSetBits()
119 doTestSetBits(anyOf("xy")); in testSetBits()
120 doTestSetBits(anyOf("CharMatcher")); in testSetBits()
145 doTestEmpty(anyOf("")); in testEmpty()
146 doTestEmpty(anyOf("x")); in testEmpty()
147 doTestEmpty(anyOf("xy")); in testEmpty()
148 doTestEmpty(anyOf("CharMatcher")); in testEmpty()
[all …]
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DAnyOfTest.java7 import static org.hamcrest.core.AnyOf.anyOf;
16 Matcher<String> matcher = anyOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes()
24 Matcher<String> matcher = anyOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers()
34 …Matcher<String> matcher = anyOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalDisjunctionOfManyOtherMatchers()
43 final Matcher<SampleSubClass> matcher = anyOf( in supportsMixedTypes()
54 anyOf(equalTo("good"), equalTo("bad"), equalTo("ugly"))); in hasAReadableDescription()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUnconventionalAssignOperatorCheck.cpp23 anyOf(autoType(), hasDeclaration(equalsBoundNode("class"))))))); in registerMatchers()
26 anyOf(hasDeclaration(equalsBoundNode("class")), in registerMatchers()
29 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers()
41 anyOf(lValueReferenceType(pointee(unless(isConstQualified()))), in registerMatchers()
51 cxxMethodDecl(IsSelfAssign, anyOf(isConst(), isVirtual())).bind("cv"), in registerMatchers()
55 anyOf(unaryOperator(hasOperatorName("*"), hasUnaryOperand(cxxThisExpr())), in registerMatchers()
DStaticAssertCheck.cpp33 expr(anyOf(cxxBoolLiteral(equals(false)), integerLiteral(equals(0)), in registerMatchers()
36 auto IsAlwaysFalseWithCast = ignoringParenImpCasts(anyOf( in registerMatchers()
39 auto AssertExprRoot = anyOf( in registerMatchers()
43 anyOf(binaryOperator(hasEitherOperand(IsAlwaysFalseWithCast)), in registerMatchers()
51 anyOf(expr(ignoringParenCasts(anyOf( in registerMatchers()
58 anyOf(ignoringParenImpCasts(callExpr( in registerMatchers()
/external/llvm-project/clang/lib/Analysis/
DExprMutationAnalyzer.cpp45 return implicitCastExpr(anyOf(hasCastKind(CK_DerivedToBase), in AST_MATCHER_P()
51 return ignoringParens(expr(anyOf(Inner, DerivedToBase(Inner)))); in AST_MATCHER_P()
61 auto const ConditionalOperator = conditionalOperator(anyOf( in AST_MATCHER_P()
64 auto const ElvisOperator = binaryConditionalOperator(anyOf( in AST_MATCHER_P()
69 expr(anyOf(IgnoreDerivedToBase(InnerMatcher), in AST_MATCHER_P()
121 unless(anyOf(hasMethod(cxxConstructorDecl(isCopyConstructor(), in __anonf947f3330602()
207 anyOf( in isUnevaluated()
213 hasAncestor(expr(anyOf( in isUnevaluated()
261 unaryOperator(anyOf(hasOperatorName("++"), hasOperatorName("--")), in findDirectMutation()
268 const auto AsNonConstThis = expr(anyOf( in findDirectMutation()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseEqualsDeleteCheck.cpp30 anyOf(cxxConstructorDecl(anyOf(isDefaultConstructor(), in registerMatchers()
33 anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), in registerMatchers()
39 unless(anyOf(hasAnyBody(stmt()), isDefaulted(), isDeleted(), in registerMatchers()
44 anyOf(PrivateSpecialFn, hasAnyBody(stmt()), isPure(), in registerMatchers()
DUseAutoCheck.cpp199 anyOf(typedefType(HasIteratorDecl), recordType(HasIteratorDecl)))); in iteratorFromUsingDeclaration()
206 varDecl(anyOf(unless(hasWrittenNonListInitializer()), in makeIteratorDeclMatcher()
207 unless(hasType(isSugarFor(anyOf( in makeIteratorDeclMatcher()
215 unless(has(varDecl(anyOf( in makeDeclWithNewMatcher()
242 anyOf(has(memberExpr(hasExplicitTemplateArgs())), in makeDeclWithTemplateCastMatcher()
251 returns(anyOf(ST, pointsTo(ST), references(ST)))))); in makeDeclWithTemplateCastMatcher()
265 unless(has(varDecl(anyOf(hasType(autoType()), in makeCombinedMatcher()
267 anyOf(makeIteratorDeclMatcher(), makeDeclWithNewMatcher(), in makeCombinedMatcher()
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DFindAllSymbols.cpp119 decl(anyOf(cxxRecordDecl(isExplicitTemplateSpecialization()), in registerMatchers()
129 hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())); in registerMatchers()
155 auto Vars = varDecl(CommonFilter, anyOf(ExternCMatcher, CCMatcher), in registerMatchers()
168 anyOf(ExternCMatcher, CCMatcher)); in registerMatchers()
182 typedefNameDecl(CommonFilter, anyOf(HasNSOrTUCtxMatcher, in registerMatchers()
187 anyOf(HasNSOrTUCtxMatcher, ExternCMatcher)); in registerMatchers()
194 anyOf(hasDeclContext(enumDecl(HasNSOrTUCtxMatcher)), ExternCMatcher)); in registerMatchers()
197 auto Types = namedDecl(anyOf(CRecords, CXXRecords, Enums)); in registerMatchers()
198 auto Decls = namedDecl(anyOf(CRecords, CXXRecords, Enums, Typedefs, Vars, in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DMutatingCopyCheck.cpp24 const auto MemberExprOrSourceObject = anyOf( in registerMatchers()
34 expr(anyOf(binaryOperator(isAssignmentOperator(), hasLHS(IsPartOfSource)) in registerMatchers()
40 const auto MemberExprOrSelf = anyOf(memberExpr(), cxxThisExpr()); in registerMatchers()
46 expr(anyOf(binaryOperator(isAssignmentOperator(), hasLHS(IsPartOfSelf)), in registerMatchers()
61 anyOf(forEachDescendant(IsSourceMutatingAssignment), in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DNumberObjectConversionChecker.cpp202 typedefType(hasDeclaration(anyOf( in checkASTCodeBody()
213 anyOf( in checkASTCodeBody()
229 auto SuspiciousNumberObjectExprM = anyOf( in checkASTCodeBody()
236 expr(anyOf( in checkASTCodeBody()
248 qualType(anyOf(qualType(booleanType()).bind("cpp_bool_type"), in checkASTCodeBody()
261 qualType(anyOf(SuspiciousScalarBooleanTypeM, in checkASTCodeBody()
287 binaryOperator(allOf(anyOf(hasOperatorName("=="), hasOperatorName("!=")), in checkASTCodeBody()
294 binaryOperator(allOf(anyOf(hasOperatorName(">="), hasOperatorName(">"), in checkASTCodeBody()
327 auto FinalM = stmt(anyOf(ConversionThroughAssignmentM, in checkASTCodeBody()
DObjCAutoreleaseWriteChecker.cpp192 auto CapturedInParamM = stmt(anyOf( in checkASTCodeBody()
200 stmt(anyOf(WritesIntoM, CapturedInParamM)) in checkASTCodeBody()
203 auto BlockPassedToMarkedFuncM = stmt(anyOf( in checkASTCodeBody()
214 forEachDescendant(stmt(anyOf(WritesIntoM, CapturedInParamM)))) in checkASTCodeBody()
219 anyOf(forEachDescendant(BlockPassedToMarkedFuncM), in checkASTCodeBody()
222 auto MatcherM = decl(anyOf( in checkASTCodeBody()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousStringCompareCheck.cpp90 expr(anyOf(ComparisonUnaryOperator, ComparisonBinaryOperator)); in registerMatchers()
105 const auto MacroStringCompareCallExpr = conditionalOperator(anyOf( in registerMatchers()
110 anyOf(DirectStringCompareCallExpr, MacroStringCompareCallExpr)); in registerMatchers()
116 stmt(anyOf(ifStmt(hasCondition(StringCompareCallExpr)), in registerMatchers()
146 binaryOperator(unless(anyOf(isComparisonOperator(), hasOperatorName("&&"), in registerMatchers()
154 anyOf(integerLiteral(unless(equals(0))), in registerMatchers()
DSizeofExpressionCheck.cpp86 anyOf(integerLiteral(), unaryOperator(hasUnaryOperand(IntegerExpr)), in registerMatchers()
89 callExpr(anyOf(hasType(isInteger()), hasType(enumType())), in registerMatchers()
91 const auto SizeOfExpr = expr(anyOf( in registerMatchers()
142 const auto ArrayCastExpr = expr(anyOf( in registerMatchers()
177 Finder->addMatcher(expr(anyOf(sizeOfExpr(has(expr(ignoringParenImpCasts(anyOf( in registerMatchers()
190 ignoringParenImpCasts(anyOf( in registerMatchers()
214 type(anyOf(ElemType, ElemPtrType, type())).bind("num-type"))); in registerMatchers()
220 anyOf(sizeOfExpr(has(NumType)), in registerMatchers()
223 anyOf(sizeOfExpr(has(DenomType)), in registerMatchers()
265 hasOperands(expr(anyOf(ignoringParenImpCasts(SizeOfExpr), in registerMatchers()
DStringConstructorCheck.cpp65 const auto CharPtrType = type(anyOf(pointerType(), arrayType())); in registerMatchers()
76 const auto ConstStrLiteral = expr(ignoringParenImpCasts(anyOf( in registerMatchers()
77 BoundStringLiteral, declRefExpr(hasDeclaration(anyOf( in registerMatchers()
87 anyOf( in registerMatchers()
107 anyOf( in registerMatchers()
132 anyOf(hasArgument(1, unless(hasType(isInteger()))), in registerMatchers()
DUnhandledSelfAssignmentCheck.cpp34 isDefinition(), unless(anyOf(isDeleted(), isImplicit(), isDefaulted()))); in registerMatchers()
43 const auto HasNoSelfCheck = cxxMethodDecl(unless(anyOf( in registerMatchers()
64 anyOf(hasDescendant( in registerMatchers()
91 has(fieldDecl(anyOf(hasType(pointerType()), hasType(SmartPointerType), in registerMatchers()
DThrowKeywordMissingCheck.cpp24 expr(anyOf(cxxFunctionalCastExpr(), cxxBindTemporaryExpr(), in registerMatchers()
28 unless(anyOf(hasAncestor(stmt( in registerMatchers()
29 anyOf(cxxThrowExpr(), callExpr(), returnStmt()))), in registerMatchers()
DNotNullTerminatedResultCheck.cpp553 auto HasIncOp = anyOf(ignoringImpCasts(IncOp), hasDescendant(IncOp)); in registerMatchers()
554 auto HasDecOp = anyOf(ignoringImpCasts(DecOp), hasDescendant(DecOp)); in registerMatchers()
564 anyOf(hasType(StringTy), hasType(qualType(pointsTo(StringTy)))); in registerMatchers()
572 auto AnyOfCharTy = anyOf(CharTyArray, CharTyPointer); in registerMatchers()
594 ignoringImpCasts(anyOf(Strlen, SizeOrLength, hasDescendant(Strlen), in registerMatchers()
601 auto AnyOfCallOrDREWithoutInc = anyOf(DREWithoutInc, WrongLength); in registerMatchers()
612 anyOf(WrongLength, AnyOfCallOrDREWithoutInc, CallExprReturnWithoutInc, in registerMatchers()
621 auto SizeExpr = anyOf(SizeOfCharExpr, integerLiteral(equals(1))); in registerMatchers()
629 auto DestMalloc = anyOf(callExpr(MallocLengthExpr), in registerMatchers()
636 auto AnyOfDestInit = anyOf(DestMalloc, DestCXXNewExpr); in registerMatchers()
[all …]
DMisplacedPointerArithmeticInAllocCheck.cpp35 const auto AllocCall = callExpr(callee(decl(anyOf(AllocFunc, AllocFuncPtr)))); in registerMatchers()
40 hasLHS(anyOf(AllocCall, castExpr(hasSourceExpression(AllocCall)))), in registerMatchers()
48 hasLHS(anyOf(New, castExpr(New))), in registerMatchers()
56 hasLHS(anyOf(ArrayNew, castExpr(ArrayNew))), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DContainerSizeEmptyCheck.cpp44 anyOf( in registerMatchers()
47 anyOf(integerLiteral(equals(1)), in registerMatchers()
52 anyOf(hasParent( in registerMatchers()
58 cxxMemberCallExpr(on(expr(anyOf(hasType(ValidContainer), in registerMatchers()
71 const auto WrongComparend = anyOf( in registerMatchers()
83 anyOf(unaryOperator( in registerMatchers()
91 anyOf(allOf(hasArgument(0, WrongComparend), hasArgument(1, STLArg)), in registerMatchers()
DDeleteNullPointerCheck.cpp32 const auto PointerExpr = ignoringImpCasts(anyOf( in registerMatchers()
44 anyOf(PointerCondition, BinaryPointerCheckCondition)), in registerMatchers()
45 hasThen(anyOf(DeleteExpr, DeleteMemberExpr, in registerMatchers()
46 compoundStmt(anyOf(has(DeleteExpr), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DPreferIsaOrDynCastInConditionalsCheck.cpp30 anyOf(callee(namedDecl(hasName("cast"))), in registerMatchers()
34 auto Any = anyOf( in registerMatchers()
50 hasArgument(0, anyOf(declRefExpr().bind("arg"), in registerMatchers()
56 stmt(anyOf( in registerMatchers()
63 hasRHS(anyOf(implicitCastExpr(has(CallExpression)), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DSlicingCheck.cpp43 anyOf(hasType(IsDerivedFromBaseDecl), in registerMatchers()
50 callExpr(callee(cxxMethodDecl(anyOf(isCopyAssignmentOperator(), in registerMatchers()
59 anyOf(isCopyConstructor(), isMoveConstructor()), OfBaseClass)), in registerMatchers()
67 expr(anyOf(SlicesObjectInAssignment, SlicesObjectInCtor)) in registerMatchers()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DAnyOf.java34 public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) { in anyOf() method in AnyOf
44 public static <T> AnyOf<T> anyOf(Matcher<? super T>... matchers) { in anyOf() method in AnyOf
45 return anyOf((List) Arrays.asList(matchers)); in anyOf()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DLoopUnrolling.cpp83 return binaryOperator(anyOf(hasOperatorName("<"), hasOperatorName(">"), in simpleCondition()
95 return anyOf( in changeIntBoundNode()
96 unaryOperator(anyOf(hasOperatorName("--"), hasOperatorName("++")), in changeIntBoundNode()
115 hasInitializer(anyOf( in assignedToRef()
129 anyOf(gotoStmt(), switchStmt(), returnStmt(), in hasSuspiciousStmt()
144 anyOf(declStmt(hasSingleDecl( in forLoopMatcher()
155 anyOf(hasOperatorName("++"), hasOperatorName("--")), in forLoopMatcher()
193 match(stmt(anyOf(callByRef(equalsNode(VD)), getAddrTo(equalsNode(VD)), in isPossiblyEscaped()

123456789