Lines Matching refs:Code
46 void parse(StringRef Code) { in parse() argument
49 Parser::parseExpression(Code, this, &Value, &Error); in parse()
221 StringRef Code = in TEST() local
225 Parser::parseMatcherExpression(Code, &Error)); in TEST()
233 Code = "implicitCastExpr(hasCastKind(\"CK_IntegralToBoolean\"))"; in TEST()
235 Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error)); in TEST()
242 Code = "functionDecl(hasParameter(1, hasName(\"x\")))"; in TEST()
244 Parser::parseMatcherExpression(Code, &Error)); in TEST()
254 Code = "functionDecl(hasParamA, hasParameter(1, hasName(nameX)))"; in TEST()
256 Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error)); in TEST()
263 Code = "unaryExprOrTypeTraitExpr(ofKind(\"UETT_SizeOf\"))"; in TEST()
265 Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error)); in TEST()
271 Code = in TEST()
274 Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error)); in TEST()
280 Code = "hasInitializer(\n binaryOperator(hasLHS(\"A\")))"; in TEST()
281 EXPECT_TRUE(!Parser::parseMatcherExpression(Code, &Error)); in TEST()
293 StringRef Code = in TEST() local
296 Parser::parseMatcherExpression(Code, &Error)); in TEST()
303 std::string ParseWithError(StringRef Code) { in ParseWithError() argument
306 Parser::parseExpression(Code, &Value, &Error); in ParseWithError()
310 std::string ParseMatcherWithError(StringRef Code) { in ParseMatcherWithError() argument
312 Parser::parseMatcherExpression(Code, &Error); in ParseMatcherWithError()
414 StringRef Code; in TEST() local
418 Code = R"matcher(varDecl( in TEST()
423 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error)); in TEST()
427 Code = R"matcher(varDecl( in TEST()
434 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error)); in TEST()
438 Code = R"matcher(decl().bind( in TEST()
442 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error)); in TEST()
446 Code = R"matcher(decl().bind( in TEST()
451 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error).has_value()); in TEST()
455 Code = R"matcher(decl(decl() in TEST()
458 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error).has_value()); in TEST()
462 Code = R"matcher(decl(decl(), in TEST()
465 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error).has_value()); in TEST()
469 Code = "namedDecl(hasName(\"n\"\n))"; in TEST()
471 EXPECT_TRUE(Parser::parseMatcherExpression(Code, &Error).has_value()); in TEST()
479 Code = R"matcher(hasParamA.bind in TEST()
482 M = Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error); in TEST()
492 Code = R"matcher(hasParamA. in TEST()
495 M = Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error); in TEST()
504 Code = R"matcher(varDecl in TEST()
507 M = Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error); in TEST()
518 Code = R"matcher(varDecl( in TEST()
522 M = Parser::parseMatcherExpression(Code, nullptr, nullptr, &Error); in TEST()
531 StringRef Code = "while"; in TEST() local
532 std::vector<MatcherCompletion> Comps = Parser::completeExpression(Code, 5); in TEST()
538 Code = "whileStmt()."; in TEST()
539 Comps = Parser::completeExpression(Code, 12); in TEST()
544 Code = "mapAny"; in TEST()
545 Comps = Parser::completeExpression(Code, 6); in TEST()
553 Code = "mapAnyOf(ifStmt)."; in TEST()
554 Comps = Parser::completeExpression(Code, 17); in TEST()
561 Code = "mapAnyOf(ifS"; in TEST()
562 Comps = Parser::completeExpression(Code, 12); in TEST()
571 StringRef Code = "functionDecl(hasName("; in TEST() local
573 Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues); in TEST()
579 Code = "cxxMethodDecl(hasName(nameX), "; in TEST()
580 Comps = Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues); in TEST()
584 Code = "functionDecl(hasP"; in TEST()
585 Comps = Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues); in TEST()
610 StringRef Code = "hasParamA.bind(\"parmABinding\")"; in TEST() local
612 Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error)); in TEST()
625 StringRef Code = "functionDecl(hasParamA.bind(\"parmABinding\"))"; in TEST() local
627 Parser::parseMatcherExpression(Code, nullptr, &NamedValues, &Error)); in TEST()