• Home
  • Raw
  • Download

Lines Matching refs:Code

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