Lines Matching defs:TEST

24 TEST(DeclarationMatcher, hasMethod) {
31 TEST(DeclarationMatcher, ClassDerivedFromDependentTemplateSpecialization) {
41 TEST(DeclarationMatcher, hasDeclContext) {
68 TEST(HasDescendant, MatchesDescendantTypes) {
89 TEST(HasDescendant, MatchesDescendantsOfTypes) {
105 TEST(Has, MatchesChildrenOfTypes) {
116 TEST(Has, MatchesChildTypes) {
125 TEST(StatementMatcher, Has) {
136 TEST(StatementMatcher, HasDescendant) {
149 TEST(TypeMatcher, MatchesClassType) {
172 TEST(TypeMatcher, MatchesDeclTypes) {
222 TEST(HasDeclaration, HasDeclarationOfEnumType) {
228 TEST(HasDeclaration, HasGetDeclTraitTest) {
237 TEST(HasDeclaration, ElaboratedType) {
248 TEST(HasDeclaration, HasDeclarationOfTypeWithDecl) {
257 TEST(HasDeclaration, HasDeclarationOfTemplateSpecializationType) {
273 TEST(HasDeclaration, HasDeclarationOfCXXNewExpr) {
279 TEST(HasDeclaration, HasDeclarationOfTypeAlias) {
286 TEST(HasDeclaration, HasDeclarationOfObjCInterface) {
292 TEST(HasUnqualifiedDesugaredType, DesugarsUsing) {
301 TEST(HasUnderlyingDecl, Matches) {
316 TEST(HasType, TakesQualTypeMatcherAndMatchesExpr) {
328 TEST(HasType, TakesQualTypeMatcherAndMatchesValueDecl) {
339 TEST(HasType, TakesQualTypeMatcherAndMatchesCXXBaseSpecifier) {
348 TEST(HasType, TakesDeclMatcherAndMatchesExpr) {
357 TEST(HasType, TakesDeclMatcherAndMatchesValueDecl) {
365 TEST(HasType, TakesDeclMatcherAndMatchesCXXBaseSpecifier) {
374 TEST(HasType, MatchesTypedefDecl) {
384 TEST(HasType, MatchesTypedefNameDecl) {
394 TEST(HasTypeLoc, MatchesBlockDecl) {
401 TEST(HasTypeLoc, MatchesCXXBaseSpecifierAndCtorInitializer) {
415 TEST(HasTypeLoc, MatchesCXXFunctionalCastExpr) {
420 TEST(HasTypeLoc, MatchesCXXNewExpr) {
427 TEST(HasTypeLoc, MatchesCXXTemporaryObjectExpr) {
433 TEST(HasTypeLoc, MatchesCXXUnresolvedConstructExpr) {
439 TEST(HasTypeLoc, MatchesCompoundLiteralExpr) {
445 TEST(HasTypeLoc, MatchesDeclaratorDecl) {
458 TEST(HasTypeLoc, MatchesExplicitCastExpr) {
465 TEST(HasTypeLoc, MatchesObjCPropertyDecl) {
474 TEST(HasTypeLoc, MatchesTemplateArgumentLoc) {
479 TEST(HasTypeLoc, MatchesTypedefNameDecl) {
486 TEST(Callee, MatchesDeclarations) {
499 TEST(Callee, MatchesMemberExpressions) {
506 TEST(Matcher, Argument) {
520 TEST(Matcher, AnyArgument) {
559 TEST(Matcher, HasReceiver) {
573 TEST(Matcher, MatchesMethodsOnLambda) {
609 TEST(Matcher, MatchesCoroutine) {
728 TEST(Matcher, isClassMessage) {
742 TEST(Matcher, isInstanceMessage) {
757 TEST(Matcher, isClassMethod) {
777 TEST(Matcher, isInstanceMethod) {
797 TEST(MatcherCXXMemberCallExpr, On) {
830 TEST(MatcherCXXMemberCallExpr, OnImplicitObjectArgument) {
866 TEST(Matcher, HasObjectExpr) {
890 TEST(ForEachArgumentWithParam, ReportsNoFalsePositives) {
903 TEST(ForEachArgumentWithParam, MatchesCXXMemberCallExpr) {
932 TEST(ForEachArgumentWithParam, MatchesCallExpr) {
956 TEST(ForEachArgumentWithParam, MatchesConstructExpr) {
973 TEST(ForEachArgumentWithParam, HandlesBoundNodesForNonMatches) {
1022 TEST(ForEachArgumentWithParamType, ReportsNoFalsePositives) {
1035 TEST(ForEachArgumentWithParamType, MatchesCXXMemberCallExpr) {
1064 TEST(ForEachArgumentWithParamType, MatchesCallExpr) {
1086 TEST(ForEachArgumentWithParamType, MatchesConstructExpr) {
1109 TEST(ForEachArgumentWithParamType, HandlesKandRFunctions) {
1123 TEST(ForEachArgumentWithParamType, HandlesBoundNodesForNonMatches) {
1140 TEST(ForEachArgumentWithParamType, MatchesFunctionPtrCalls) {
1157 TEST(ForEachArgumentWithParamType, MatchesMemberFunctionPtrCalls) {
1180 TEST(ForEachArgumentWithParamType, MatchesVariadicFunctionPtrCalls) {
1236 TEST(QualType, hasCanonicalType) {
1248 TEST(HasParameter, CallsInnerMatcher) {
1259 TEST(HasParameter, DoesNotMatchIfIndexOutOfBounds) {
1264 TEST(HasType, MatchesParameterVariableTypesStrictly) {
1279 TEST(HasAnyParameter, MatchesIndependentlyOfPosition) {
1292 TEST(Returns, MatchesReturnTypes) {
1302 TEST(HasAnyParameter, DoesntMatchIfInnerMatcherDoesntMatch) {
1308 TEST(HasAnyParameter, DoesNotMatchThisPointer) {
1314 TEST(HasName, MatchesParameterVariableDeclarations) {
1321 TEST(Matcher, MatchesTypeTemplateArgument) {
1329 TEST(Matcher, MatchesTemplateTemplateArgument) {
1337 TEST(Matcher, MatchesDeclarationReferenceTemplateArgument) {
1366 TEST(Matcher, MatchesSpecificArgument) {
1398 TEST(TemplateArgument, Matches) {
1412 TEST(TemplateTypeParmDecl, CXXMethodDecl) {
1424 TEST(TemplateTypeParmDecl, VarDecl) {
1436 TEST(TemplateTypeParmDecl, VarTemplatePartialSpecializationDecl) {
1455 TEST(TemplateTypeParmDecl, ClassTemplatePartialSpecializationDecl) {
1470 TEST(TemplateTypeParmDecl, EnumDecl) {
1485 TEST(TemplateTypeParmDecl, RecordDecl) {
1499 TEST(RefersToIntegralType, Matches) {
1509 TEST(ConstructorDeclaration, SimpleCase) {
1516 TEST(DestructorDeclaration, MatchesVirtualDestructor) {
1521 TEST(DestructorDeclaration, DoesNotMatchImplicitDestructor) {
1526 TEST(HasAnyConstructorInitializer, SimpleCase) {
1538 TEST(HasAnyConstructorInitializer, ForField) {
1558 TEST(HasAnyConstructorInitializer, WithInitializer) {
1570 TEST(HasAnyConstructorInitializer, IsWritten) {
1586 TEST(HasAnyConstructorInitializer, IsBaseInitializer) {
1610 TEST(IfStmt, ChildTraversalMatchers) {
1621 TEST(MatchBinaryOperator, HasOperatorName) {
1628 TEST(MatchBinaryOperator, HasAnyOperatorName) {
1641 TEST(MatchBinaryOperator, HasLHSAndHasRHS) {
1736 TEST(MatchBinaryOperator, HasEitherOperand) {
1745 TEST(MatchBinaryOperator, HasOperands) {
1756 TEST(MatchBinaryOperator, HasOperandsEnsureOrdering) {
1768 TEST(Matcher, BinaryOperatorTypes) {
1869 TEST(MatchUnaryOperator, HasOperatorName) {
1876 TEST(MatchUnaryOperator, HasAnyOperatorName) {
1888 TEST(MatchUnaryOperator, HasUnaryOperand) {
2045 TEST(Matcher, UnaryOperatorTypes) {
2220 TEST(ArraySubscriptMatchers, ArrayIndex) {
2232 TEST(ArraySubscriptMatchers, MatchesArrayBase) {
2239 TEST(Matcher, OfClass) {
2253 TEST(Matcher, VisitsTemplateInstantiations) {
2273 TEST(Matcher, HasCondition) {
2295 TEST(For, ForLoopInternals) {
2302 TEST(For, ForRangeLoopInternals) {
2310 TEST(For, NegativeForLoopInternals) {
2317 TEST(HasBody, FindsBodyOfForWhileDoLoops) {
2330 TEST(HasBody, FindsBodyOfFunctions) {
2351 TEST(HasAnyBody, FindsAnyBodyOfFunctions) {
2373 TEST(HasAnySubstatement, MatchesForTopLevelCompoundStatement) {
2381 TEST(HasAnySubstatement, IsNotRecursive) {
2387 TEST(HasAnySubstatement, MatchesInNestedCompoundStatements) {
2392 TEST(HasAnySubstatement, FindsSubstatementBetweenOthers) {
2397 TEST(Member, MatchesMemberAllocationFunction) {
2414 TEST(HasDestinationType, MatchesSimpleCase) {
2420 TEST(HasImplicitDestinationType, MatchesSimpleCase) {
2433 TEST(HasImplicitDestinationType, DoesNotMatchIncorrectly) {
2444 TEST(Matcher, IgnoresElidableConstructors) {
2479 TEST(Matcher, IgnoresElidableInReturn) {
2494 TEST(Matcher, IgnoreElidableConstructorDoesNotMatchConstructors) {
2504 TEST(Matcher, IgnoresElidableDoesNotPreventMatches) {
2512 TEST(Matcher, IgnoresElidableInVarInit) {
2529 TEST(IgnoringImplicit, MatchesImplicit) {
2534 TEST(IgnoringImplicit, MatchesNestedImplicit) {
2571 TEST(IgnoringImplicit, DoesNotMatchIncorrectly) {
2576 TEST(Traversal, traverseMatcher) {
3192 TEST(Traversal, traverseNoImplicit) {
3764 TEST(Traversal, traverseWithBinding) {
3779 TEST(Traversal, traverseMatcherNesting) {
3805 TEST(Traversal, traverseMatcherThroughImplicit) {
3823 TEST(Traversal, traverseMatcherThroughMemoization) {
3848 TEST(Traversal, traverseUnlessSpelledInSource) {
4703 TEST(IgnoringImpCasts, PathologicalLambda) {
4775 TEST(IgnoringImpCasts, MatchesImpCasts) {
4788 TEST(IgnoringImpCasts, DoesNotMatchIncorrectly) {
4816 TEST(IgnoringImpCasts, MatchesWithoutImpCasts) {
4824 TEST(IgnoringParenCasts, MatchesParenCasts) {
4848 TEST(IgnoringParenCasts, MatchesWithoutParenCasts) {
4855 TEST(IgnoringParenCasts, DoesNotMatchIncorrectly) {
4873 TEST(IgnoringParenAndImpCasts, MatchesParenImpCasts) {
4887 TEST(IgnoringParenAndImpCasts, MatchesWithoutParenImpCasts) {
4898 TEST(IgnoringParenAndImpCasts, DoesNotMatchIncorrectly) {
4918 TEST(HasSourceExpression, MatchesImplicitCasts) {
4925 TEST(HasSourceExpression, MatchesExplicitCasts) {
4932 TEST(UsingDeclaration, MatchesSpecificTarget) {
4941 TEST(UsingDeclaration, ThroughUsingDeclaration) {
4950 TEST(SingleDecl, IsSingleDecl) {
4959 TEST(DeclStmt, ContainsDeclaration) {
4973 TEST(SwitchCase, MatchesEachCase) {
5001 TEST(Declaration, HasExplicitSpecifier) {
5061 TEST(ForEachConstructorInitializer, MatchesInitializers) {
5067 TEST(LambdaCapture, InvalidLambdaCapture) {
5080 TEST(ForEachLambdaCapture, MatchesCaptures) {
5095 TEST(ForEachLambdaCapture, IgnoreUnlessSpelledInSource) {
5118 TEST(ForEachLambdaCapture, MatchImplicitCapturesOnly) {
5129 TEST(ForEachLambdaCapture, MatchExplicitCapturesOnly) {
5140 TEST(HasConditionVariableStatement, DoesNotMatchCondition) {
5149 TEST(HasConditionVariableStatement, MatchesConditionVariables) {
5155 TEST(ForEach, BindsOneNode) {
5161 TEST(ForEach, BindsMultipleNodes) {
5167 TEST(ForEach, BindsRecursiveCombinations) {
5175 TEST(ForEach, DoesNotIgnoreImplicit) {
5207 TEST(ForEachDescendant, BindsOneNode) {
5214 TEST(ForEachDescendant, NestedForEachDescendant) {
5231 TEST(ForEachDescendant, BindsMultipleNodes) {
5239 TEST(ForEachDescendant, BindsRecursiveCombinations) {
5248 TEST(ForEachDescendant, BindsCombinations) {
5257 TEST(ForEachTemplateArgument, OnFunctionDecl) {
5285 TEST(ForEachTemplateArgument, OnClassTemplateSpecialization) {
5313 TEST(Has, DoesNotDeleteBindings) {
5319 TEST(TemplateArgumentLoc, Matches) {
5332 TEST(LoopingMatchers, DoNotOverwritePreviousMatchResultOnFailure) {
5428 TEST(ForEachDescendant, BindsCorrectNodes) {
5439 TEST(FindAll, BindsNodeOnMatch) {
5446 TEST(FindAll, BindsDescendantNodeOnMatch) {
5453 TEST(FindAll, BindsNodeAndDescendantNodesOnOneMatch) {
5467 TEST(HasAncenstor, MatchesDeclarationAncestors) {
5473 TEST(HasAncenstor, FailsIfNoAncestorMatches) {
5479 TEST(HasAncestor, MatchesDeclarationsThatGetVisitedLater) {
5486 TEST(HasAncenstor, MatchesStatementAncestors) {
5492 TEST(HasAncestor, DrillsThroughDifferentHierarchies) {
5498 TEST(HasAncestor, BindsRecursiveCombinations) {
5505 TEST(HasAncestor, BindsCombinationsWithHasDescendant) {
5517 TEST(HasAncestor, MatchesClosestAncestor) {
5531 TEST(HasAncestor, MatchesInTemplateInstantiations) {
5539 TEST(HasAncestor, MatchesInImplicitCode) {
5547 TEST(HasParent, MatchesOnlyParent) {
5559 TEST(MatcherMemoize, HasParentDiffersFromHas) {
5573 TEST(MatcherMemoize, HasDiffersFromHasDescendant) {
5586 TEST(HasAncestor, MatchesAllAncestors) {
5597 TEST(HasAncestor, ImplicitArrayCopyCtorDeclRefExpr) {
5605 TEST(HasAncestor, AnonymousUnionMemberExpr) {
5626 TEST(HasAncestor, NonParmDependentTemplateParmVarDeclRefExpr) {
5637 TEST(HasAncestor, AddressOfExplicitSpecializationFunction) {
5644 TEST(HasParent, MatchesAllParents) {
5674 TEST(HasParent, NoDuplicateParents) {
5694 TEST(HasAnyBase, BindsInnerBoundNodes) {
5706 TEST(TypeMatching, PointeeTypes) {
5722 TEST(ElaboratedTypeNarrowing, hasQualifier) {
5743 TEST(ElaboratedTypeNarrowing, namesType) {
5761 TEST(NNS, BindsNestedNameSpecifiers) {
5769 TEST(NNS, BindsNestedNameSpecifierLocs) {
5776 TEST(NNS, DescendantsOfNestedNameSpecifiers) {
5805 TEST(NNS, NestedNameSpecifiersAsDescendants) {
5821 TEST(NNSLoc, DescendantsOfNestedNameSpecifierLocs) {
5848 TEST(NNSLoc, NestedNameSpecifierLocsAsDescendants) {
5864 TEST(Attr, AttrsAsDescendants) {
5875 TEST(Attr, ParentsOfAttrs) {
5899 TEST(MatchFinder, CanMatchDeclarationsRecursively) {
5912 TEST(MatchFinder, CanMatchStatementsRecursively) {
5923 TEST(MatchFinder, CanMatchSingleNodesRecursively) {
5934 TEST(StatementMatcher, HasReturnValue) {
5941 TEST(StatementMatcher, ForFunction) {
5974 TEST(StatementMatcher, ForCallable) {
6090 // a TEST().
6144 TEST(StatementMatcher, ForCallablePreservesBindingWithMultipleParents) {
6177 TEST(Matcher, ForEachOverriden) {
6221 TEST(Matcher, HasAnyDeclaration) {
6240 TEST(SubstTemplateTypeParmType, HasReplacementType) {
6256 TEST(ClassTemplateSpecializationDecl, HasSpecializedTemplate) {
6264 TEST(CXXNewExpr, Array) {
6278 TEST(CXXNewExpr, PlacementArgs) {
6304 TEST(HasUnqualifiedLoc, BindsToConstIntVarDecl) {
6311 TEST(HasUnqualifiedLoc, BindsToVolatileIntVarDecl) {
6318 TEST(HasUnqualifiedLoc, BindsToConstVolatileIntVarDecl) {
6325 TEST(HasUnqualifiedLoc, BindsToConstPointerVarDecl) {
6333 TEST(HasUnqualifiedLoc, BindsToPointerToConstVolatileIntVarDecl) {
6341 TEST(HasUnqualifiedLoc, BindsToConstIntFunctionDecl) {
6349 TEST(HasUnqualifiedLoc, FloatBindsToConstFloatVarDecl) {
6356 TEST(HasUnqualifiedLoc, FloatDoesNotBindToIntVarDecl) {
6363 TEST(HasUnqualifiedLoc, FloatDoesNotBindToConstIntVarDecl) {
6370 TEST(HasReturnTypeLoc, BindsToIntReturnTypeLoc) {
6376 TEST(HasReturnTypeLoc, BindsToFloatReturnTypeLoc) {
6382 TEST(HasReturnTypeLoc, BindsToVoidReturnTypeLoc) {
6388 TEST(HasReturnTypeLoc, FloatDoesNotBindToIntReturnTypeLoc) {
6394 TEST(HasReturnTypeLoc, IntDoesNotBindToFloatReturnTypeLoc) {
6400 TEST(HasPointeeLoc, BindsToAnyPointeeTypeLoc) {
6409 TEST(HasPointeeLoc, DoesNotBindToTypeLocWithoutPointee) {
6417 TEST(HasPointeeLoc, BindsToTypeLocPointingToInt) {
6422 TEST(HasPointeeLoc, BindsToTypeLocPointingToIntPointer) {
6427 TEST(HasPointeeLoc, BindsToTypeLocPointingToTypeLocPointingToInt) {
6432 TEST(HasPointeeLoc, BindsToTypeLocPointingToFloat) {
6437 TEST(HasPointeeLoc, IntPointeeDoesNotBindToTypeLocPointingToFloat) {
6442 TEST(HasPointeeLoc, FloatPointeeDoesNotBindToTypeLocPointingToInt) {
6447 TEST(HasReferentLoc, BindsToAnyReferentTypeLoc) {
6457 TEST(HasReferentLoc, DoesNotBindToTypeLocWithoutReferent) {
6468 TEST(HasReferentLoc, BindsToAnyRvalueReference) {
6476 TEST(HasReferentLoc, BindsToIntReferenceTypeLoc) {
6481 TEST(HasReferentLoc, BindsToIntRvalueReferenceTypeLoc) {
6486 TEST(HasReferentLoc, BindsToFloatReferenceTypeLoc) {
6492 TEST(HasReferentLoc, BindsToParameterWithIntReferenceTypeLoc) {
6499 TEST(HasReferentLoc, IntReferenceDoesNotBindToFloatReferenceTypeLoc) {
6505 TEST(HasReferentLoc, FloatReferenceDoesNotBindToIntReferenceTypeLoc) {
6511 TEST(HasReferentLoc, DoesNotBindToParameterWithoutIntReferenceTypeLoc) {
6518 TEST(HasAnyTemplateArgumentLoc, BindsToSpecializationWithIntArgument) {
6527 TEST(HasAnyTemplateArgumentLoc, BindsToSpecializationWithDoubleArgument) {
6536 TEST(HasAnyTemplateArgumentLoc, BindsToExplicitSpecializationWithIntArgument) {
6544 TEST(HasAnyTemplateArgumentLoc,
6553 TEST(HasAnyTemplateArgumentLoc, BindsToSpecializationWithMultipleArguments) {
6569 TEST(HasAnyTemplateArgumentLoc, DoesNotBindToSpecializationWithIntArgument) {
6576 TEST(HasAnyTemplateArgumentLoc,
6585 TEST(HasTemplateArgumentLoc, BindsToSpecializationWithIntArgument) {
6594 TEST(HasTemplateArgumentLoc, BindsToSpecializationWithDoubleArgument) {
6603 TEST(HasTemplateArgumentLoc, DoesNotBindToSpecializationWithIntArgument) {
6612 TEST(HasTemplateArgumentLoc, BindsToExplicitSpecializationWithIntArgument) {
6620 TEST(HasTemplateArgumentLoc, BindsToExplicitSpecializationWithDoubleArgument) {
6628 TEST(HasTemplateArgumentLoc, BindsToSpecializationWithMultipleArguments) {
6643 TEST(HasTemplateArgumentLoc,
6652 TEST(HasTemplateArgumentLoc,
6668 TEST(HasTemplateArgumentLoc, DoesNotBindWithBadIndex) {
6683 TEST(HasTemplateArgumentLoc, BindsToDeclRefExprWithIntArgument) {
6693 TEST(HasTemplateArgumentLoc, BindsToDeclRefExprWithDoubleArgument) {
6704 TEST(HasTemplateArgumentLoc, DoesNotBindToDeclRefExprWithDoubleArgument) {
6715 TEST(HasNamedTypeLoc, BindsToElaboratedObjectDeclaration) {
6728 TEST(HasNamedTypeLoc, DoesNotBindToNonElaboratedObjectDeclaration) {