/external/llvm-project/clang/unittests/Tooling/ |
D | LexicallyOrderedRecursiveASTVisitorTest.cpp | 133 Visitor.ExpectMatch("/I/nestedFunction/", 6, 1); in TEST() 134 Visitor.ExpectMatch("/I/method/", 8, 1); in TEST() 136 Visitor.ExpectMatch("/I/anotherNestedFunction/", 10, 1); in TEST() 138 Visitor.ExpectMatch("/I/innerVariable", 14, 1); in TEST() 139 Visitor.ExpectMatch("/outerVariable", 18, 1); in TEST() 141 Visitor.ExpectMatch("/Cat/catF/", 22, 1); in TEST() 142 Visitor.ExpectMatch("/outerFunction/", 26, 1); in TEST() 164 Visitor.ExpectMatch("/outerFunction/", 5, 1); in TEST() 165 Visitor.ExpectMatch("/I/nestedFunction1/", 7, 20); in TEST() 166 Visitor.ExpectMatch("/nestedFunction2/", 7, 20); in TEST() [all …]
|
D | RecursiveASTVisitorTestDeclVisitor.cpp | 25 Visitor.ExpectMatch("i", 2, 17); in TEST() 52 Visitor.ExpectMatch("", 1, 7); in TEST() 53 Visitor.ExpectMatch("", 3, 7); in TEST() 82 Visitor.ExpectMatch("A<bool>", 1, 26); in TEST() 83 Visitor.ExpectMatch("A<char *>", 2, 26); in TEST() 93 Visitor.ExpectMatch("A<int>", 1, 29); in TEST() 101 Visitor.ExpectMatch("A<int>::B<char>", 2, 31); in TEST() 111 Visitor.ExpectMatch("A<int>", 1, 26); in TEST() 119 Visitor.ExpectMatch("A<int>::B<char>", 2, 35); in TEST() 130 Visitor.ExpectMatch("vector_iterator<int>", 2, 7); in TEST()
|
D | RecursiveASTVisitorTestTypeLocVisitor.cpp | 25 Visitor.ExpectMatch("class X", 1, 30); in TEST() 31 Visitor.ExpectMatch("class X", 3, 18); in TEST() 40 Visitor.ExpectMatch("class X", 2, 18); in TEST() 48 Visitor.ExpectMatch("X<class Y>", 2, 18); in TEST() 56 Visitor.ExpectMatch("class X", 2, 23); in TEST() 65 Visitor.ExpectMatch("struct S", 1, 26); in TEST() 73 Visitor.ExpectMatch("NSNumber", 2, 33); in TEST()
|
/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
D | DeclRefExpr.cpp | 36 Visitor.ExpectMatch("x", 2, 3); in TEST() 43 Visitor.ExpectMatch("x", 2, 25); in TEST() 44 Visitor.ExpectMatch("x", 2, 30); in TEST() 53 Visitor.ExpectMatch("x", 1, 22); in TEST() 60 Visitor.ExpectMatch("i", 1, 20); in TEST() 68 Visitor.ExpectMatch("i", 1, 24); in TEST() 80 Visitor.ExpectMatch("i", 1, 20, /*Times=*/1); in TEST() 81 Visitor.ExpectMatch("i", 1, 24, /*Times=*/1); in TEST() 89 Visitor.ExpectMatch("i", 1, 24); in TEST() 109 Visitor.ExpectMatch("s", 1, 24); in TEST() [all …]
|
D | NestedNameSpecifiers.cpp | 62 Visitor.ExpectMatch("ns", 13, 8); in TEST() 63 Visitor.ExpectMatch("ns", 16, 8); in TEST() 64 Visitor.ExpectMatch("ns", 19, 8); in TEST() 65 Visitor.ExpectMatch("ns", 22, 5); in TEST() 66 Visitor.ExpectMatch("Outer", 13, 12); in TEST() 67 Visitor.ExpectMatch("Outer", 16, 12); in TEST() 68 Visitor.ExpectMatch("Outer", 19, 12); in TEST() 69 Visitor.ExpectMatch("Outer", 22, 9); in TEST()
|
D | Attr.cpp | 36 Visitor.ExpectMatch("Attr", 4, 24); in TEST() 37 Visitor.ExpectMatch("guarded_by", 4, 24); in TEST() 38 Visitor.ExpectMatch("mu1", 4, 35); in TEST() 39 Visitor.ExpectMatch("Attr", 5, 29); in TEST() 40 Visitor.ExpectMatch("mu1", 5, 54); in TEST() 41 Visitor.ExpectMatch("mu2", 5, 59); in TEST()
|
D | LambdaExpr.cpp | 51 Visitor.ExpectMatch("", 1, 12); in TEST() 60 Visitor.ExpectMatch("", 1, 12); in TEST() 61 Visitor.ExpectMatch("", 1, 16); in TEST() 71 Visitor.ExpectMatch("", 1, 10); in TEST() 72 Visitor.ExpectMatch("", 1, 14); in TEST() 82 Visitor.ExpectMatch("", 1, 12); in TEST() 93 Visitor.ExpectMatch("", 1, 12); in TEST()
|
D | CXXMemberCall.cpp | 27 Visitor.ExpectMatch("Y::x", 3, 3); in TEST() 38 Visitor.ExpectMatch("Y::x", 4, 5); in TEST() 51 Visitor.ExpectMatch("A::x", 5, 7); in TEST() 69 Visitor.ExpectMatch("A::x", 6, 20); in TEST() 86 Visitor.ExpectMatch("A::f", 4, 5); in TEST()
|
D | InitListExprPreOrder.cpp | 36 Visitor.ExpectMatch("syntactic", 2, 21); in TEST() 37 Visitor.ExpectMatch("semantic", 2, 21); in TEST() 45 Visitor.ExpectMatch("syntactic", 2, 21); in TEST()
|
D | LambdaTemplateParams.cpp | 43 Visitor.ExpectMatch("T", 2, 15); in TEST() 44 Visitor.ExpectMatch("I", 2, 24); in TEST() 45 Visitor.ExpectMatch("TT", 2, 31); in TEST()
|
D | CXXMethodDecl.cpp | 41 Visitor.ExpectMatch("declref", 8, 28); in TEST() 45 Visitor.ExpectMatch("parm", 8, 27); in TEST() 63 Visitor.ExpectMatch("declref", 4, 58, /*Times=*/2); in TEST()
|
D | InitListExprPostOrder.cpp | 28 Visitor.ExpectMatch("syntactic", 2, 21); in TEST() 29 Visitor.ExpectMatch("semantic", 2, 21); in TEST()
|
D | InitListExprPreOrderNoQueue.cpp | 30 Visitor.ExpectMatch("syntactic", 2, 21); in TEST() 31 Visitor.ExpectMatch("semantic", 2, 21); in TEST()
|
D | InitListExprPostOrderNoQueue.cpp | 32 Visitor.ExpectMatch("syntactic", 2, 21); in TEST() 33 Visitor.ExpectMatch("semantic", 2, 21); in TEST()
|
D | MemberPointerTypeLoc.cpp | 35 Visitor.ExpectMatch("Bar", 4, 36); in TEST() 36 Visitor.ExpectMatch("T", 7, 23); in TEST()
|
D | TraversalScope.cpp | 45 V.ExpectMatch("bar", 3, 10); in TEST() 46 V.ExpectMatch("baz", 4, 12); in TEST()
|
/external/clang/unittests/Tooling/ |
D | RecursiveASTVisitorTestDeclVisitor.cpp | 27 Visitor.ExpectMatch("i", 2, 17); in TEST() 54 Visitor.ExpectMatch("", 1, 7); in TEST() 55 Visitor.ExpectMatch("", 3, 7); in TEST() 84 Visitor.ExpectMatch("A<bool>", 1, 26); in TEST() 85 Visitor.ExpectMatch("A<char *>", 2, 26); in TEST() 95 Visitor.ExpectMatch("A<int>", 1, 29); in TEST() 103 Visitor.ExpectMatch("A<int>::B<char>", 2, 31); in TEST() 113 Visitor.ExpectMatch("A<int>", 1, 26); in TEST() 121 Visitor.ExpectMatch("A<int>::B<char>", 2, 35); in TEST() 132 Visitor.ExpectMatch("vector_iterator<int>", 2, 7); in TEST()
|
D | RecursiveASTVisitorTestExprVisitor.cpp | 27 Visitor.ExpectMatch("", 1, 9); in TEST() 48 Visitor.ExpectMatch("X", 2, 40); in TEST() 69 Visitor.ExpectMatch("true", 2, 19); in TEST() 94 Visitor.ExpectMatch("Simple", 2, 8); in TEST() 136 Visitor.ExpectMatch("WithCtor", 2, 8); in TEST() 173 Visitor.ExpectMatch("x", 2, 3); in TEST() 180 Visitor.ExpectMatch("x", 2, 25); in TEST() 181 Visitor.ExpectMatch("x", 2, 30); in TEST() 190 Visitor.ExpectMatch("x", 1, 22); in TEST() 209 Visitor.ExpectMatch("s", 1, 24); in TEST() [all …]
|
D | RecursiveASTVisitorTest.cpp | 43 Visitor.ExpectMatch("", 1, 12); in TEST() 69 Visitor.ExpectMatch("", 1, 20); in TEST() 121 Visitor.ExpectMatch("Attr", 4, 24); in TEST() 122 Visitor.ExpectMatch("guarded_by", 4, 24); in TEST() 123 Visitor.ExpectMatch("mu1", 4, 35); in TEST() 124 Visitor.ExpectMatch("Attr", 5, 29); in TEST() 125 Visitor.ExpectMatch("mu1", 5, 54); in TEST() 126 Visitor.ExpectMatch("mu2", 5, 59); in TEST() 147 Visitor.ExpectMatch("__i0", 1, 8); in TEST()
|
D | RecursiveASTVisitorTestTypeLocVisitor.cpp | 27 Visitor.ExpectMatch("class X", 1, 30); in TEST() 33 Visitor.ExpectMatch("class X", 3, 18); in TEST() 42 Visitor.ExpectMatch("class X", 2, 18); in TEST() 50 Visitor.ExpectMatch("X<class Y>", 2, 18); in TEST() 58 Visitor.ExpectMatch("class X", 2, 23); in TEST() 67 Visitor.ExpectMatch("struct S", 1, 26); in TEST() 75 Visitor.ExpectMatch("NSNumber", 2, 33); in TEST()
|
D | RecursiveASTVisitorTestCallVisitor.cpp | 29 Visitor.ExpectMatch("Y::x", 3, 3); in TEST() 40 Visitor.ExpectMatch("Y::x", 4, 5); in TEST() 53 Visitor.ExpectMatch("A::x", 5, 7); in TEST() 71 Visitor.ExpectMatch("A::x", 6, 20); in TEST() 88 Visitor.ExpectMatch("A::f", 4, 5); in TEST() 113 Visitor.ExpectMatch("()", 4, 9); in TEST()
|
/external/skia/tests/ |
D | PathOpsExtendedTest.cpp | 85 enum class ExpectMatch { enum 271 ExpectMatch expectMatch) { in comparePaths() 276 if (ExpectMatch::kNo == expectMatch) { in comparePaths() 285 if (ExpectMatch::kYes == expectMatch && errors2x2 >= MAX_ERRORS) { in comparePaths() 393 static void json_status(ExpectSuccess expectSuccess, ExpectMatch expectMatch, bool opSucceeded) { in json_status() 398 expectMatch = ExpectMatch::kFlaky; in json_status() 402 ExpectMatch::kNo == expectMatch ? "no" : in json_status() 403 ExpectMatch::kYes == expectMatch ? "yes" : "flaky"); in json_status() 462 ExpectSuccess expectSuccess, SkipAssert skipAssert, ExpectMatch expectMatch) { in inner_simplify() 498 if (ExpectMatch::kNo == expectMatch) { in inner_simplify() [all …]
|
/external/skqp/tests/ |
D | PathOpsExtendedTest.cpp | 84 enum class ExpectMatch { enum 365 ExpectMatch expectMatch) { in comparePaths() 369 if (ExpectMatch::kNo == expectMatch) { in comparePaths() 378 if (ExpectMatch::kYes == expectMatch && errors2x2 >= MAX_ERRORS) { in comparePaths() 487 static void json_status(ExpectSuccess expectSuccess, ExpectMatch expectMatch, bool opSucceeded) { in json_status() 492 expectMatch = ExpectMatch::kFlaky; in json_status() 496 ExpectMatch::kNo == expectMatch ? "no" : in json_status() 497 ExpectMatch::kYes == expectMatch ? "yes" : "flaky"); in json_status() 563 ExpectSuccess expectSuccess, SkipAssert skipAssert, ExpectMatch expectMatch) { in inner_simplify() 602 if (ExpectMatch::kNo == expectMatch) { in inner_simplify() [all …]
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTest.h | 86 const Twine &Code, const T &AMatcher, bool ExpectMatch, 132 if (!Found && ExpectMatch) { 135 } else if (Found && !ExpectMatch) { 144 matchesConditionally(const Twine &Code, const T &AMatcher, bool ExpectMatch, in matchesConditionally() argument 148 Code, AMatcher, ExpectMatch, getCommandLineArgsForTesting(Lang), in matchesConditionally() 173 bool ExpectMatch = true) { 174 return matchesConditionally(Code, AMatcher, ExpectMatch, 196 bool ExpectMatch, llvm::StringRef CompileArg) { in matchesConditionallyWithCuda() argument 240 if (!Found && ExpectMatch) { in matchesConditionallyWithCuda() 243 } else if (Found && !ExpectMatch) { in matchesConditionallyWithCuda()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTest.h | 63 const std::string &Code, const T &AMatcher, bool ExpectMatch, 97 if (!Found && ExpectMatch) { 100 } else if (Found && !ExpectMatch) { 159 const std::string &Code, const T &AMatcher, bool ExpectMatch, in matchesConditionallyWithCuda() argument 203 if (!Found && ExpectMatch) { in matchesConditionallyWithCuda() 206 } else if (Found && !ExpectMatch) { in matchesConditionallyWithCuda()
|