Lines Matching full:point
10 /// point.
35 // Finds the NamedDecl at a point in the source.
36 // \param Point the location in the source to search for the NamedDecl.
37 explicit NamedDeclOccurrenceFindingVisitor(const SourceLocation Point, in NamedDeclOccurrenceFindingVisitor() argument
41 Point(Point), Context(Context) {} in NamedDeclOccurrenceFindingVisitor()
61 // Determines if the Point is within Start and End.
63 // FIXME: Add tests for Point == End. in isPointWithin()
64 return Point == Start || Point == End || in isPointWithin()
66 Point) && in isPointWithin()
67 Context.getSourceManager().isBeforeInTranslationUnit(Point, End)); in isPointWithin()
71 const SourceLocation Point; // The location to find the NamedDecl. member in clang::tooling::__anonbc7ca6930111::NamedDeclOccurrenceFindingVisitor
78 const SourceLocation Point) { in getNamedDeclAt() argument
80 NamedDeclOccurrenceFindingVisitor Visitor(Point, Context); in getNamedDeclAt()
83 // see. If both start and end is either before or after the point we're in getNamedDeclAt()
84 // looking for the point cannot be inside of this decl. Don't even look at it. in getNamedDeclAt()
89 SM.isBeforeInTranslationUnit(StartLoc, Point) != in getNamedDeclAt()
90 SM.isBeforeInTranslationUnit(EndLoc, Point)) in getNamedDeclAt()