Lines Matching full:framework

58 ALWAYS_ENABLED_STATISTIC(NumFrameworkLookups, "Number of framework lookups.");
104 llvm::errs() << NumFrameworkLookups << " framework lookups.\n" in PrintStats()
333 // Search for or infer a module map for a framework. Here we use in lookupModule()
338 llvm::sys::path::append(FrameworkDirName, SearchName + ".framework"); in lookupModule()
535 // Check if the headermap maps the filename to a framework include in LookupFile()
537 // framework include. in LookupFile()
556 /// Given a framework directory, find the top-most framework directory.
559 /// \param DirName The name of the framework directory.
561 /// returned top-level module to the originally named framework.
565 assert(llvm::sys::path::extension(DirName) == ".framework" && in getTopFrameworkDir()
566 "Not a framework directory"); in getTopFrameworkDir()
573 // #include <Foo/Frameworks/Bar.framework/Headers/Wibble.h> in getTopFrameworkDir()
575 // where 'Bar' used to be embedded in 'Foo', is now a top-level framework in getTopFrameworkDir()
580 // Similar issues occur when a top-level framework has moved into an in getTopFrameworkDir()
581 // embedded framework. in getTopFrameworkDir()
597 // If this is a framework directory, then we're a subframework of this in getTopFrameworkDir()
598 // framework. in getTopFrameworkDir()
599 if (llvm::sys::path::extension(DirName) == ".framework") { in getTopFrameworkDir()
615 /// DirectoryLookup, which is a framework directory.
623 // Framework names must have a '/' in the filename. in DoFrameworkLookup()
628 // Find out if this is the home for the specified framework, by checking in DoFrameworkLookup()
637 // Otherwise, construct the path to this framework dir. in DoFrameworkLookup()
649 // FrameworkName = "/System/Library/Frameworks/Cocoa.framework/" in DoFrameworkLookup()
650 FrameworkName += ".framework/"; in DoFrameworkLookup()
656 // If the framework dir doesn't exist, we fail. in DoFrameworkLookup()
662 // framework. in DoFrameworkLookup()
665 // If this is a user search directory, check if the framework has been in DoFrameworkLookup()
666 // user-specified as a system framework. in DoFrameworkLookup()
685 // Check "/System/Library/Frameworks/Cocoa.framework/Headers/file.h" in DoFrameworkLookup()
701 // Check "/System/Library/Frameworks/Cocoa.framework/PrivateHeaders/file.h" in DoFrameworkLookup()
715 // Find the framework in which this header occurs. in DoFrameworkLookup()
724 // If this is a framework directory, then we're a subframework of this in DoFrameworkLookup()
725 // framework. in DoFrameworkLookup()
726 if (llvm::sys::path::extension(FrameworkPath) == ".framework") { in DoFrameworkLookup()
808 // Detect different types of framework style paths: in isFrameworkStylePath()
810 // ...Foo.framework/{Headers,PrivateHeaders} in isFrameworkStylePath()
811 // ...Foo.framework/Versions/{A,Current}/{Headers,PrivateHeaders} in isFrameworkStylePath()
812 // ...Foo.framework/Frameworks/Nested.framework/{Headers,PrivateHeaders} in isFrameworkStylePath()
823 } else if (I->ends_with(".framework")) { in isFrameworkStylePath()
824 StringRef Name = I->drop_back(10); // Drop .framework in isFrameworkStylePath()
871 // Headers in Foo.framework/Headers should not include headers in diagnoseFrameworkInclude()
872 // from Foo.framework/PrivateHeaders, since this violates public/private in diagnoseFrameworkInclude()
977 StringRef Framework = FromHFI->Framework; in LookupFile() local
982 ToHFI.Framework = Framework; in LookupFile()
1108 // If the directory characteristic is User but this framework was in LookupFile()
1109 // user-specified to be treated as a system framework, promote the in LookupFile()
1124 // Set the `Framework` info if this file is in a header map with framework in LookupFile()
1125 // style include spelling or found in a framework dir. The header map case in LookupFile()
1130 HFI.Framework = in LookupFile()
1137 HFI.Framework = in LookupFile()
1159 // a header in a framework that is currently being built, and we couldn't in LookupFile()
1161 // "Foo" is the name of the framework in which the including header was found. in LookupFile()
1169 ScratchFilename += IncludingHFI->Framework; in LookupFile()
1206 /// within ".../Carbon.framework/Headers/Carbon.h", check to see if HIToolbox
1207 /// is a subframework within Carbon.framework. If so, return the FileEntry
1213 // Framework names must have a '/' in the filename. Find it. in LookupSubframeworkHeader()
1219 // Look up the base framework name of the ContextFileEnt. in LookupSubframeworkHeader()
1222 // If the context info wasn't a framework, couldn't be a subframework. in LookupSubframeworkHeader()
1224 auto FrameworkPos = ContextName.find(".framework"); in LookupSubframeworkHeader()
1234 // Append Frameworks/HIToolbox.framework/ in LookupSubframeworkHeader()
1237 FrameworkName += ".framework/"; in LookupSubframeworkHeader()
1254 // If the framework dir doesn't exist, we fail. in LookupSubframeworkHeader()
1260 // framework. in LookupSubframeworkHeader()
1270 // Check ".../Frameworks/HIToolbox.framework/Headers/HIToolbox.h" in LookupSubframeworkHeader()
1282 // Check ".../Frameworks/HIToolbox.framework/PrivateHeaders/HIToolbox.h" in LookupSubframeworkHeader()
1362 if (HFI.Framework.empty()) in mergeHeaderFileInfo()
1363 HFI.Framework = OtherHFI.Framework; in mergeHeaderFileInfo()
1601 StringRef HeaderSearch::getUniqueFrameworkName(StringRef Framework) { in getUniqueFrameworkName() argument
1602 return FrameworkNames.insert(Framework).first->first(); in getUniqueFrameworkName()
1635 ".framework")) { in hasModuleMap()
1741 // Find the top-level framework based on this framework. in findUsableModuleForFrameworkHeader()
1745 assert(TopFrameworkDir && "Could not find the top-most framework dir"); in findUsableModuleForFrameworkHeader()
1747 // Determine the name of the top-level framework. in findUsableModuleForFrameworkHeader()
1750 // Load this framework module. If that succeeds, find the suggested module in findUsableModuleForFrameworkHeader()
1756 // corresponds to a module. Possibly we should lock down framework modules in findUsableModuleForFrameworkHeader()
1779 << File.getDir().getName().ends_with(".framework"); in getPrivateModuleMap()
1810 if (DirName.ends_with(".framework")) in loadModuleMapFile()
1864 // module.map at the framework root is also accepted. in lookupModuleMapFile()
1898 // Try to infer a module map from the framework directory. in loadFrameworkModule()
1935 // E.g. Foo.framework/Modules/module.modulemap in loadModuleMapFile()
1958 // Search each of the ".framework" directories to load them as modules. in collectAllModules()
1963 if (llvm::sys::path::extension(Dir->path()) != ".framework") in collectAllModules()
1970 // Load this framework module. in collectAllModules()
2028 bool IsFramework = llvm::sys::path::extension(Dir->path()) == ".framework"; in loadSubdirectoryModuleMaps()
2112 // Framework includes by convention use <>. in suggestPathToFileForDiagnostics()
2144 // If the best prefix is a framework path, we need to compute the proper in suggestPathToFileForDiagnostics()
2145 // include spelling for the framework header. in suggestPathToFileForDiagnostics()