Home | History | Annotate | Download | only in ASTMatchers

Lines Matching refs:Code

53 testing::AssertionResult matchesConditionally(const std::string &Code,
63 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args)) {
64 return testing::AssertionFailure() << "Parsing error in \"" << Code << "\"";
68 << "Could not find match in \"" << Code << "\"";
71 << "Found unexpected match in \"" << Code << "\"";
77 testing::AssertionResult matches(const std::string &Code, const T &AMatcher) {
78 return matchesConditionally(Code, AMatcher, true, "-std=c++11");
82 testing::AssertionResult notMatches(const std::string &Code,
84 return matchesConditionally(Code, AMatcher, false, "-std=c++11");
89 matchAndVerifyResultConditionally(const std::string &Code, const T &AMatcher,
100 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args)) {
101 return testing::AssertionFailure() << "Parsing error in \"" << Code << "\"";
105 << "Could not verify result in \"" << Code << "\"";
108 << "Verified unexpected result in \"" << Code << "\"";
117 matchAndVerifyResultTrue(const std::string &Code, const T &AMatcher,
120 Code, AMatcher, FindResultVerifier, true);
125 matchAndVerifyResultFalse(const std::string &Code, const T &AMatcher,
128 Code, AMatcher, FindResultVerifier, false);