Lines Matching defs:Name
148 /// for 'Name' during visitation.
149 void Match(StringRef Name, SourceLocation Location) {
155 EXPECT_FALSE(It->Matches(Name, FullLocation))
162 It->UpdateFor(Name, FullLocation, this->Context->getSourceManager());
172 MatchCandidate(Twine Name, unsigned LineNumber, unsigned ColumnNumber)
173 : ExpectedName(Name.str()), LineNumber(LineNumber),
177 bool Matches(StringRef Name, FullSourceLoc const &Location) const {
178 return MatchesName(Name) && MatchesLocation(Location);
181 bool PartiallyMatches(StringRef Name, FullSourceLoc const &Location) const {
182 return MatchesName(Name) || MatchesLocation(Location);
185 bool MatchesName(StringRef Name) const {
186 return Name == ExpectedName;
203 ExpectedMatch(Twine Name, unsigned LineNumber, unsigned ColumnNumber)
204 : Candidate(Name, LineNumber, ColumnNumber), Found(false) {}
206 void UpdateFor(StringRef Name, FullSourceLoc Location, SourceManager &SM) {
207 if (Candidate.Matches(Name, Location)) {
210 } else if (!Found && Candidate.PartiallyMatches(Name, Location)) {
212 Stream << ", partial match: \"" << Name << "\" at ";