Home | History | Annotate | Download | only in Lex

Lines Matching defs:Framework

56 ALWAYS_ENABLED_STATISTIC(NumFrameworkLookups, "Number of framework lookups.");
107 llvm::errs() << NumFrameworkLookups << " framework lookups.\n"
265 // Search for or infer a module map for a framework. Here we use
270 llvm::sys::path::append(FrameworkDirName, SearchName + ".framework");
432 // Check if the headermap maps the filename to a framework include
434 // framework include.
451 /// Given a framework directory, find the top-most framework directory.
454 /// \param DirName The name of the framework directory.
456 /// returned top-level module to the originally named framework.
460 assert(llvm::sys::path::extension(DirName) == ".framework" &&
461 "Not a framework directory");
468 // #include <Foo/Frameworks/Bar.framework/Headers/Wibble.h>
470 // where 'Bar' used to be embedded in 'Foo', is now a top-level framework
475 // Similar issues occur when a top-level framework has moved into an
476 // embedded framework.
494 // If this is a framework directory, then we're a subframework of this
495 // framework.
496 if (llvm::sys::path::extension(DirName) == ".framework") {
512 /// DirectoryLookup, which is a framework directory.
520 // Framework names must have a '/' in the filename.
525 // Find out if this is the home for the specified framework, by checking
534 // Otherwise, construct the path to this framework dir.
546 // FrameworkName = "/System/Library/Frameworks/Cocoa.framework/"
547 FrameworkName += ".framework/";
553 // If the framework dir doesn't exist, we fail.
559 // framework.
562 // If this is a user search directory, check if the framework has been
563 // user-specified as a system framework.
582 // Check "/System/Library/Frameworks/Cocoa.framework/Headers/file.h"
598 // Check "/System/Library/Frameworks/Cocoa.framework/PrivateHeaders/file.h"
612 // Find the framework in which this header occurs.
621 // If this is a framework directory, then we're a subframework of this
622 // framework.
623 if (llvm::sys::path::extension(FrameworkPath) == ".framework") {
688 // Detect different types of framework style paths:
690 // ...Foo.framework/{Headers,PrivateHeaders}
691 // ...Foo.framework/Versions/{A,Current}/{Headers,PrivateHeaders}
692 // ...Foo.framework/Frameworks/Nested.framework/{Headers,PrivateHeaders}
700 if (I->endswith(".framework")) {
730 NewInclude += StringRef(ToFramework).drop_back(10); // drop .framework
740 // Headers in Foo.framework/Headers should not include headers
741 // from Foo.framework/PrivateHeaders, since this violates public/private
839 StringRef Framework = FromHFI.Framework;
844 ToHFI.Framework = Framework;
949 // If the directory characteristic is User but this framework was
950 // user-specified to be treated as a system framework, promote the
965 // If this file is found in a header map and uses the framework style of
966 // includes, then this header is part of a framework we're building.
971 HFI.Framework = getUniqueFrameworkName(StringRef(Filename.begin(),
995 // a header in a framework that is currently being built, and we couldn't
997 // "Foo" is the name of the framework in which the including header was found.
1003 ScratchFilename += IncludingHFI.Framework;
1041 /// within ".../Carbon.framework/Headers/Carbon.h", check to see if HIToolbox
1042 /// is a subframework within Carbon.framework. If so, return the FileEntry
1050 // Framework names must have a '/' in the filename. Find it.
1056 // Look up the base framework name of the ContextFileEnt.
1059 // If the context info wasn't a framework, couldn't be a subframework.
1061 auto FrameworkPos = ContextName.find(".framework");
1071 // Append Frameworks/HIToolbox.framework/
1074 FrameworkName += ".framework/";
1091 // If the framework dir doesn't exist, we fail.
1097 // framework.
1107 // Check ".../Frameworks/HIToolbox.framework/Headers/HIToolbox.h"
1119 // Check ".../Frameworks/HIToolbox.framework/PrivateHeaders/HIToolbox.h"
1177 if (HFI.Framework.empty())
1178 HFI.Framework = OtherHFI.Framework;
1360 StringRef HeaderSearch::getUniqueFrameworkName(StringRef Framework) {
1361 return FrameworkNames.insert(Framework).first->first();
1387 ".framework")) {
1481 // Find the top-level framework based on this framework.
1486 // Determine the name of the top-level framework.
1489 // Load this framework module. If that succeeds, find the suggested module
1495 // corresponds to a module. Possibly we should lock down framework modules
1545 if (DirName.endswith(".framework"))
1599 // module.map at the framework root is also accepted.
1634 // Try to infer a module map from the framework directory.
1670 // E.g. Foo.framework/Modules/module.modulemap
1694 // Search each of the ".framework" directories to load them as modules.
1699 if (llvm::sys::path::extension(Dir->path()) != ".framework")
1707 // Load this framework module.
1769 bool IsFramework = llvm::sys::path::extension(Dir->path()) == ".framework";