Lines Matching refs:Location
131 void Match(StringRef Name, SourceLocation Location) { in Match() argument
132 const FullSourceLoc FullLocation = this->Context->getFullLoc(Location); in Match()
159 bool Matches(StringRef Name, FullSourceLoc const &Location) const { in Matches()
160 return MatchesName(Name) && MatchesLocation(Location); in Matches()
163 bool PartiallyMatches(StringRef Name, FullSourceLoc const &Location) const { in PartiallyMatches()
164 return MatchesName(Name) || MatchesLocation(Location); in PartiallyMatches()
171 bool MatchesLocation(FullSourceLoc const &Location) const { in MatchesLocation()
172 return Location.isValid() && in MatchesLocation()
173 Location.getSpellingLineNumber() == LineNumber && in MatchesLocation()
174 Location.getSpellingColumnNumber() == ColumnNumber; in MatchesLocation()
188 void UpdateFor(StringRef Name, FullSourceLoc Location, SourceManager &SM) { in UpdateFor()
189 if (Candidate.Matches(Name, Location)) { in UpdateFor()
192 } else if (!Found && Candidate.PartiallyMatches(Name, Location)) { in UpdateFor()
195 Location.print(Stream, SM); in UpdateFor()