Lines Matching defs:HFI

728     HeaderFileInfo &HFI = getFileInfo(FE);
729 HFI.DirInfo = CurDir->getDirCharacteristic();
734 if (HFI.DirInfo == SrcMgr::C_User && InUserSpecifiedSystemFramework)
735 HFI.DirInfo = SrcMgr::C_System;
741 HFI.DirInfo = SystemHeaderPrefixes[j-1].second ? SrcMgr::C_System
752 HFI.IndexHeaderMapHeader = 1;
753 HFI.Framework = getUniqueFrameworkName(StringRef(Filename.begin(),
926 /// header file info (\p HFI)
927 static void mergeHeaderFileInfo(HeaderFileInfo &HFI,
929 assert(OtherHFI.External && "expected to merge external HFI");
931 HFI.isImport |= OtherHFI.isImport;
932 HFI.isPragmaOnce |= OtherHFI.isPragmaOnce;
933 HFI.isModuleHeader |= OtherHFI.isModuleHeader;
934 HFI.NumIncludes += OtherHFI.NumIncludes;
936 if (!HFI.ControllingMacro && !HFI.ControllingMacroID) {
937 HFI.ControllingMacro = OtherHFI.ControllingMacro;
938 HFI.ControllingMacroID = OtherHFI.ControllingMacroID;
941 HFI.DirInfo = OtherHFI.DirInfo;
942 HFI.External = (!HFI.IsValid || HFI.External);
943 HFI.IsValid = true;
944 HFI.IndexHeaderMapHeader = OtherHFI.IndexHeaderMapHeader;
946 if (HFI.Framework.empty())
947 HFI.Framework = OtherHFI.Framework;
956 HeaderFileInfo *HFI = &FileInfo[FE->getUID()];
958 if (ExternalSource && !HFI->Resolved) {
959 HFI->Resolved = true;
962 HFI = &FileInfo[FE->getUID()];
964 mergeHeaderFileInfo(*HFI, ExternalHFI);
967 HFI->IsValid = true;
970 HFI->External = false;
971 return *HFI;
979 HeaderFileInfo *HFI;
987 HFI = &FileInfo[FE->getUID()];
988 if (!WantExternal && (!HFI->IsValid || HFI->External))
990 if (!HFI->Resolved) {
991 HFI->Resolved = true;
994 HFI = &FileInfo[FE->getUID()];
996 mergeHeaderFileInfo(*HFI, ExternalHFI);
1001 HFI = &FileInfo[FE->getUID()];
1004 if (!HFI->IsValid || (HFI->External && !WantExternal))
1007 return HFI;
1012 if (auto *HFI = getExistingFileInfo(File))
1013 return HFI->isPragmaOnce || HFI->isImport || HFI->ControllingMacro ||
1014 HFI->ControllingMacroID;
1027 auto *HFI = getExistingFileInfo(FE);
1028 if (HFI && HFI->isModuleHeader)
1032 auto &HFI = getFileInfo(FE);
1033 HFI.isModuleHeader |= isModularHeader;
1034 HFI.isCompilingModuleHeader |= isCompilingModuleHeader;