Lines Matching refs:Code

46   void parse(StringRef Code) {  in parse()  argument
49 Parser::parseExpression(Code, this, &Value, &Error); in parse()
223 StringRef Code = in TEST() local
227 Parser::parseMatcherExpression(Code, &Error)); in TEST()
235 Code = "implicitCastExpr(hasCastKind(\"CK_IntegralToBoolean\"))"; in TEST()
237 Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error)); in TEST()
244 Code = "functionDecl(hasParameter(1, hasName(\"x\")))"; in TEST()
246 Parser::parseMatcherExpression(Code, &Error)); in TEST()
256 Code = "functionDecl(hasParamA, hasParameter(1, hasName(nameX)))"; in TEST()
258 Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error)); in TEST()
265 Code = "unaryExprOrTypeTraitExpr(ofKind(\"UETT_SizeOf\"))"; in TEST()
267 Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error)); in TEST()
273 Code = in TEST()
276 Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error)); in TEST()
282 Code = "hasInitializer(\n binaryOperator(hasLHS(\"A\")))"; in TEST()
283 EXPECT_TRUE(!Parser::parseMatcherExpression(Code, &Error)); in TEST()
295 StringRef Code = in TEST() local
298 Parser::parseMatcherExpression(Code, &Error)); in TEST()
305 std::string ParseWithError(StringRef Code) { in ParseWithError() argument
308 Parser::parseExpression(Code, &Value, &Error); in ParseWithError()
312 std::string ParseMatcherWithError(StringRef Code) { in ParseMatcherWithError() argument
314 Parser::parseMatcherExpression(Code, &Error); in ParseMatcherWithError()
415 StringRef Code; in TEST() local
419 Code = R"matcher(varDecl( in TEST()
424 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error)); in TEST()
428 Code = R"matcher(varDecl( in TEST()
435 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error)); in TEST()
439 Code = R"matcher(decl().bind( in TEST()
443 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error)); in TEST()
447 Code = R"matcher(decl().bind( in TEST()
452 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error).has_value()); in TEST()
456 Code = R"matcher(decl(decl() in TEST()
459 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error).has_value()); in TEST()
463 Code = R"matcher(decl(decl(), in TEST()
466 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error).has_value()); in TEST()
470 Code = "namedDecl(hasName(\"n\"\n))"; in TEST()
472 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error).has_value()); in TEST()
480 Code = R"matcher(hasParamA.bind in TEST()
483 M = Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error); in TEST()
493 Code = R"matcher(hasParamA. in TEST()
496 M = Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error); in TEST()
505 Code = R"matcher(varDecl in TEST()
508 M = Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error); in TEST()
519 Code = R"matcher(varDecl( in TEST()
523 M = Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error); in TEST()
532 StringRef Code = "while"; in TEST() local
533 std::vector<MatcherCompletion> Comps = Parser::completeExpression(Code, 5); in TEST()
539 Code = "whileStmt()."; in TEST()
540 Comps = Parser::completeExpression(Code, 12); in TEST()
545 Code = "mapAny"; in TEST()
546 Comps = Parser::completeExpression(Code, 6); in TEST()
554 Code = "mapAnyOf(ifStmt)."; in TEST()
555 Comps = Parser::completeExpression(Code, 17); in TEST()
562 Code = "mapAnyOf(ifS"; in TEST()
563 Comps = Parser::completeExpression(Code, 12); in TEST()
572 StringRef Code = "functionDecl(hasName("; in TEST() local
574 Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues); in TEST()
580 Code = "cxxMethodDecl(hasName(nameX), "; in TEST()
581 Comps = Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues); in TEST()
585 Code = "functionDecl(hasP"; in TEST()
586 Comps = Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues); in TEST()
611 StringRef Code = "hasParamA.bind(\"parmABinding\")"; in TEST() local
613 Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error)); in TEST()
626 StringRef Code = "functionDecl(hasParamA.bind(\"parmABinding\"))"; in TEST() local
628 Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error)); in TEST()