Home | History | Annotate | Download | only in ASTMatchers

Lines Matching refs:TEST

22 TEST(Finder, DynamicOnlyAcceptsSomeMatchers) {
34 TEST(Decl, MatchesDeclarations) {
40 TEST(NameableDeclaration, MatchesVariousDecls) {
53 TEST(NameableDeclaration, REMatchesVariousDecls) {
83 TEST(DeclarationMatcher, MatchClass) {
98 TEST(DeclarationMatcher, translationUnitDecl) {
113 TEST(DeclarationMatcher, LinkageSpecification) {
118 TEST(ClassTemplate, DoesNotMatchClass) {
124 TEST(ClassTemplate, MatchesClassTemplate) {
130 TEST(ClassTemplate, DoesNotMatchClassTemplateExplicitSpecialization) {
137 TEST(ClassTemplate, DoesNotMatchClassTemplatePartialSpecialization) {
144 TEST(DeclarationMatcher, MatchCudaDecl) {
156 TEST(ValueDecl, Matches) {
163 TEST(Enum, DoesNotMatchClasses) {
167 TEST(Enum, MatchesEnums) {
171 TEST(EnumConstant, Matches) {
178 TEST(Matcher, UnresolvedLookupExpr) {
179 // FIXME: The test is known to be broken on Windows with delayed template
192 TEST(Matcher, Call) {
239 TEST(Matcher, Lambda) {
244 TEST(Matcher, ForRange) {
252 TEST(Matcher, SubstNonTypeTemplateParm) {
263 TEST(Matcher, NonTypeTemplateParmDecl) {
270 TEST(Matcher, templateTypeParmDecl) {
277 TEST(Matcher, UserDefinedLiteral) {
285 TEST(Matcher, FlowControl) {
299 TEST(Matcher, OverloadedOperatorCall) {
307 // we need to figure out include paths in the test.
325 TEST(Matcher, ThisPointerType) {
355 TEST(Matcher, VariableUsage) {
381 TEST(Matcher, CalledVariable) {
401 TEST(UnaryExprOrTypeTraitExpr, MatchesSizeOfAndAlignOf) {
413 TEST(MemberExpression, DoesNotMatchClasses) {
417 TEST(MemberExpression, MatchesMemberFunctionCall) {
421 TEST(MemberExpression, MatchesVariable) {
430 TEST(MemberExpression, MatchesStaticVariable) {
439 TEST(Function, MatchesFunctionDeclarations) {
476 TEST(FunctionTemplate, MatchesFunctionTemplateDeclarations) {
482 TEST(FunctionTemplate, DoesNotMatchFunctionDeclarations) {
488 TEST(FunctionTemplate, DoesNotMatchFunctionTemplateSpecializations) {
497 TEST(Matcher, MatchesClassTemplateSpecialization) {
507 TEST(DeclaratorDecl, MatchesDeclaratorDecls) {
512 TEST(ParmVarDecl, MatchesParmVars) {
517 TEST(Matcher, ConstructorCall) {
531 TEST(Matcher, ThisExpr) {
538 TEST(Matcher, BindTemporaryExpression) {
569 TEST(MaterializeTemporaryExpr, MatchesTemporary) {
604 TEST(Matcher, NewExpression) {
615 TEST(Matcher, DeleteExpression) {
620 TEST(Matcher, DefaultArgument) {
629 TEST(Matcher, StringLiterals) {
640 TEST(Matcher, CharacterLiterals) {
650 TEST(Matcher, IntegerLiterals) {
666 TEST(Matcher, FloatLiterals) {
685 TEST(Matcher, NullPtrLiteral) {
689 TEST(Matcher, GNUNullExpr) {
693 TEST(Matcher, AtomicExpr) {
698 TEST(Matcher, Initializers) {
749 TEST(Matcher, ParenListExpr) {
756 TEST(Matcher, StmtExpr) {
761 TEST(Matcher, ImportPredefinedExpr) {
769 TEST(Matcher, AsmStatement) {
773 TEST(Matcher, Conditions) {
784 TEST(Matcher, ConditionalOperator) {
805 TEST(Matcher, BinaryConditionalOperator) {
823 TEST(ArraySubscriptMatchers, ArraySubscripts) {
830 TEST(For, FindsForLoops) {
838 TEST(For, ReportsNoFalsePositives) {
843 TEST(CompoundStatement, HandlesSimpleCases) {
849 TEST(CompoundStatement, DoesNotMatchEmptyStruct) {
858 TEST(CastExpression, MatchesExplicitCasts) {
864 TEST(CastExpression, MatchesImplicitCasts) {
865 // This test creates an implicit cast from int to char.
867 // This test creates an implicit cast from lvalue to rvalue.
871 TEST(CastExpression, DoesNotMatchNonCasts) {
878 TEST(ReinterpretCast, MatchesSimpleCase) {
883 TEST(ReinterpretCast, DoesNotMatchOtherCasts) {
895 TEST(FunctionalCast, MatchesSimpleCase) {
901 TEST(FunctionalCast, DoesNotMatchOtherCasts) {
911 TEST(DynamicCast, MatchesSimpleCase) {
918 TEST(StaticCast, MatchesSimpleCase) {
923 TEST(StaticCast, DoesNotMatchOtherCasts) {
935 TEST(CStyleCast, MatchesSimpleCase) {
939 TEST(CStyleCast, DoesNotMatchOtherCasts) {
949 TEST(ImplicitCast, MatchesSimpleCase) {
950 // This test creates an implicit const cast.
953 // This test creates an implicit cast from int to char.
956 // This test creates an implicit array-to-pointer cast.
961 TEST(ImplicitCast, DoesNotMatchIncorrectly) {
962 // This test verifies that implicitCastExpr() matches exactly when implicit casts
965 // These two test cases have no casts.
980 TEST(Statement, DoesNotMatchDeclarations) {
984 TEST(Statement, MatchesCompoundStatments) {
988 TEST(DeclarationStatement, DoesNotMatchCompoundStatements) {
992 TEST(DeclarationStatement, MatchesVariableDeclarationStatements) {
996 TEST(ExprWithCleanups, MatchesExprWithCleanups) {
1005 TEST(InitListExpression, MatchesInitListExpression) {
1018 TEST(UsingDeclaration, MatchesUsingDeclarations) {
1023 TEST(UsingDeclaration, MatchesShadowUsingDelcarations) {
1028 TEST(UsingDirectiveDeclaration, MatchesUsingNamespace) {
1036 TEST(While, MatchesWhileLoops) {
1042 TEST(Do, MatchesDoLoops) {
1047 TEST(Do, DoesNotMatchWhileLoops) {
1051 TEST(SwitchCase, MatchesCase) {
1058 TEST(SwitchCase, MatchesSwitch) {
1065 TEST(ExceptionHandling, SimpleCases) {
1084 TEST(ParenExpression, SimpleCases) {
1092 TEST(TypeMatching, MatchesTypes) {
1096 TEST(TypeMatching, MatchesConstantArrayTypes) {
1107 TEST(TypeMatching, MatchesDependentSizedArrayTypes) {
1116 TEST(TypeMatching, MatchesIncompleteArrayType) {
1124 TEST(TypeMatching, MatchesVariableArrayType) {
1135 TEST(TypeMatching, MatchesAtomicTypes) {
1148 TEST(TypeMatching, MatchesAutoTypes) {
1161 TEST(TypeMatching, MatchesFunctionTypes) {
1166 TEST(TypeMatching, IgnoringParens) {
1173 TEST(TypeMatching, MatchesFunctionProtoTypes) {
1182 TEST(TypeMatching, MatchesParenType) {
1195 TEST(TypeMatching, PointerTypes) {
1270 TEST(TypeMatching, AutoRefTypes) {
1300 TEST(TypeMatching, MatchesEnumTypes) {
1307 TEST(TypeMatching, MatchesPointersToConstTypes) {
1320 TEST(TypeMatching, MatchesTypedefTypes) {
1325 TEST(TypeMatching, MatchesTemplateSpecializationType) {
1330 TEST(TypeMatching, MatchesRecordType) {
1338 TEST(TypeMatching, MatchesElaboratedType) {
1350 TEST(TypeMatching, MatchesSubstTemplateTypeParmType) {
1362 TEST(NNS, MatchesNestedNameSpecifiers) {
1380 TEST(NullStatement, SimpleCases) {
1385 TEST(NS, Alias) {
1386 EXPECT_TRUE(matches("namespace test {} namespace alias = ::test;",
1390 TEST(NNS, MatchesTypes) {
1399 TEST(NNS, MatchesNamespaceDecls) {
1407 TEST(NNS, MatchesNestedNameSpecifierPrefixes) {
1458 TEST(IsEqualTo, MatchesNodesByIdentity) {
1471 TEST(TypedefDeclMatcher, Match) {
1478 TEST(TypeAliasDeclMatcher, Match) {
1485 TEST(TypedefNameDeclMatcher, Match) {
1492 TEST(ObjCMessageExprMatcher, SimpleExprs) {