Lines Matching defs:FID
293 // header of \p FID (which should usually be the *expansion* file).
296 llvm::StringRef getIncludeHeader(FileID FID) {
297 auto R = CacheFIDToInclude.try_emplace(FID);
299 R.first->second = getIncludeHeaderUncached(FID);
444 llvm::StringRef getIncludeHeaderUncached(FileID FID) {
445 const auto FE = SM.getFileEntryRefForID(FID);
468 return getIncludeHeaderUncached(SM.getFileID(SM.getIncludeLoc(FID)));
667 auto FID = SM.getFileID(FileLoc);
668 if (Opts.RefsInHeaders || FID == SM.getMainFileID()) {
669 addRef(ID, SymbolRef{FileLoc, FID, Roles, index::getSymbolInfo(ND).Kind,
884 if (FileID FID = SM.getDecomposedExpansionLoc(DefLoc).first; FID.isValid())
885 IncludeFiles[S.ID] = FID;
944 FileID FID = IncludeFiles.lookup(SID);
945 // Determine if the FID is #include'd or #import'ed.
951 if ((CollectDirectives & Symbol::Import) != 0 && FID.isValid()) {
952 auto [It, Inserted] = FileToContainsImportsOrObjC.try_emplace(FID);
954 It->second = FilesWithObjCConstructs.contains(FID) ||
956 ASTCtx->getSourceManager().getBufferData(FID));
968 IncludeHeader = HeaderFileURIs->getIncludeHeader(FID);
1065 auto FID = SM.getFileID(Loc);
1066 shouldIndexFile(FID);
1124 FilesWithObjCConstructs.insert(FID);
1168 bool SymbolCollector::shouldIndexFile(FileID FID) {
1171 auto I = FilesToIndexCache.try_emplace(FID);
1173 I.first->second = Opts.FileFilter(ASTCtx->getSourceManager(), FID);
1188 shouldIndexFile(SR.FID);
1189 if (const auto FE = SM.getFileEntryRefForID(SR.FID)) {