Home | History | Annotate | Download | only in libclang

Lines Matching full:loc

28     SourceLocation Loc = *LI;
33 MakeCursorObjCProtocolRef(PD, Loc, IdxCtx.CXTU),
34 IdxCtx.getIndexLoc(Loc) };
38 IdxCtx.markEntityOccurrenceInFile(PD, Loc);
51 : AttrInfo(CXIdxAttr_IBOutletCollection, other.cursor, other.loc, other.A) {
73 CXIdxLoc Loc = IdxCtx.getIndexLoc(A->getLocation());
76 Attrs.push_back(AttrInfo(CXIdxAttr_Unexposed, C, Loc, A));
79 Attrs.push_back(AttrInfo(CXIdxAttr_IBAction, C, Loc, A));
82 Attrs.push_back(AttrInfo(CXIdxAttr_IBOutlet, C, Loc, A));
85 IBCollAttrs.push_back(IBOutletCollectionInfo(C, Loc, A));
131 SourceLocation Loc = getBaseLoc(Base);
146 IdxCtx.getIndexLoc(Loc) };
161 SourceLocation Loc = Base.getSourceRange().getBegin();
166 return Loc;
179 return Loc;
311 SourceLocation Loc, CXCursor Cursor,
322 || Loc.isInvalid())
329 markEntityOccurrenceInFile(D, Loc);
333 DInfo.loc = getIndexLoc(Loc);
367 SourceLocation Loc, CXCursor Cursor,
370 return handleDecl(D, Loc, Cursor, ContDInfo);
454 BaseClass.loc = getIndexLoc(SuperLoc);
596 SourceLocation Loc,
600 return handleDecl(D, Loc, getCursor(D), DInfo, LexicalDC);
652 bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc,
661 : getRefCursor(D, Loc);
662 return handleReference(D, Loc, Cursor, Parent, DC, E, Kind);
665 bool IndexingContext::handleReference(const NamedDecl *D, SourceLocation Loc,
676 if (Loc.isInvalid())
686 if (markEntityOccurrenceInFile(D, Loc))
703 getIndexLoc(Loc),
711 bool IndexingContext::isNotFromSourceFile(SourceLocation Loc) const {
712 if (Loc.isInvalid())
715 SourceLocation FileLoc = SM.getFileLoc(Loc);
772 Loc = SourceLocation::getFromRawEncoding(baseInfo->loc.int_data);
773 markEntityOccurrenceInFile(BaseD, Loc);
788 SourceLocation Loc) {
789 if (!D || Loc.isInvalid())
795 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SM.getFileLoc(Loc));
873 CXIdxLoc IndexingContext::getIndexLoc(SourceLocation Loc) const {
875 if (Loc.isInvalid())
879 idxLoc.int_data = Loc.getRawEncoding();
883 void IndexingContext::translateLoc(SourceLocation Loc,
887 if (Loc.isInvalid())
891 Loc = SM.getFileLoc(Loc);
893 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc);
1127 CXCursor IndexingContext::getRefCursor(const NamedDecl *D, SourceLocation Loc) {
1129 return MakeCursorTypeRef(TD, Loc, CXTU);
1131 return MakeCursorObjCClassRef(ID, Loc, CXTU);
1133 return MakeCursorObjCProtocolRef(PD, Loc, CXTU);
1135 return MakeCursorTemplateRef(Template, Loc, CXTU);
1137 return MakeCursorNamespaceRef(Namespace, Loc, CXTU);
1139 return MakeCursorNamespaceRef(Namespace, Loc, CXTU);
1141 return MakeCursorMemberRef(Field, Loc, CXTU);
1143 return MakeCursorVariableRef(Var, Loc, CXTU);