Lines Matching defs:is

201     // Check whether this file is in the public headers.
207 // Check whether this file is in the private headers.
256 /// Determine whether the given file name is the name of a builtin
275 /// Determine whether the given module name is the name of a builtin
276 /// module that is cyclic with a system module on some platforms.
342 // This is a system module with a top-level header. This header
478 // This check is not cheap, so enable it only for debugging.
544 // We have found a header, but it is private.
581 // FIXME: Considering whether the module is available rather than merely
582 // importable is non-hermetic and can result in surprising behavior for
618 // Iterate over all modules that 'File' is part of to find the best fit.
620 // Cannot use a module if the header is excluded in it.
656 // the actual header is located.
749 // When no requesting module is available, the caller is looking if a
750 // header is part a module by only looking into the module map. This is
753 // that a umbrella header is not including a textual header.
960 // Check that the main file is present.
1009 // In case this is a case-insensitive filesystem, use the canonical
1037 // We haven't looked here before. Load a module map, if there is
1081 // framework to load *everything*. But, it's not clear that this is a good
1104 // Chop off the first framework bit, as that is implied.
1135 // check whether it is actually a subdirectory of the parent directory.
1136 // This will not be the case if the 'subframework' is actually a symlink
1164 // If the module is a top-level framework, automatically link against the
1215 // If there is a builtin counterpart to this file, add it now so it can
1276 // This operation is logically const; we're just changing how we represent
1288 // FIXME: Should we diagnose if a header is listed twice in the
1299 // When we import HeaderFileInfo, the external source is expected to
1357 // on a case-insensitive filesystem. However, the extra canonicalization is
1361 // This is needed for separators between CanonicalDir and the filename.
1492 bool is(TokenKind K) const { return Kind == K; }
1529 /// Whether this module map is in a system header directory.
1548 /// On older Darwin SDK versions, 'requires excluded' is used to mark the
1578 /// is used with implicit module maps. Warn when private modules are written
1733 return !LToken.isAtStartOfLine() && LToken.is(tok::raw_identifier) &&
1762 if (Tok.is(K) && braceDepth == 0 && squareDepth == 0)
1769 if (Tok.is(K) && braceDepth == 0 && squareDepth == 0)
1778 else if (Tok.is(K))
1785 else if (Tok.is(K))
1790 if (braceDepth == 0 && squareDepth == 0 && Tok.is(K))
1809 if (Tok.is(MMToken::Identifier) || Tok.is(MMToken::StringLiteral)) {
1818 if (!Tok.is(MMToken::Period))
1851 /// is used with implicit module maps. Warn when private modules are written
1929 assert(Tok.is(MMToken::ExplicitKeyword) || Tok.is(MMToken::ModuleKeyword) ||
1930 Tok.is(MMToken::FrameworkKeyword) || Tok.is(MMToken::ExternKeyword));
1931 if (Tok.is(MMToken::ExternKeyword)) {
1943 if (Tok.is(MMToken::ExplicitKeyword)) {
1949 if (Tok.is(MMToken::FrameworkKeyword)) {
1955 if (!Tok.is(MMToken::ModuleKeyword)) {
1963 // If we have a wildcard for the module name, this is an inferred submodule.
1965 if (Tok.is(MMToken::Star))
1994 // is a submodule.
2031 if (!Tok.is(MMToken::LBrace)) {
2056 // the definition of Sub. Checking that qualifier on \c Existing is
2061 // that \c Existing is part of a framework iff the redefinition of FW
2076 if (Tok.is(MMToken::RBrace))
2089 // This is not a shawdowed module decl, it is an illegal redefinition.
2096 if (Tok.is(MMToken::RBrace))
2187 if (Tok.is(MMToken::HeaderKeyword))
2217 if (Tok.is(MMToken::RBrace))
2225 // If the active module is a top-level framework, and there are no link
2231 // If the module meets all requirements but is still unavailable, mark the
2249 assert(Tok.is(MMToken::ExternKeyword));
2253 if (!Tok.is(MMToken::ModuleKeyword)) {
2269 if (!Tok.is(MMToken::StringLiteral)) {
2334 assert(Tok.is(MMToken::RequiresKeyword));
2342 if (Tok.is(MMToken::Exclaim)) {
2347 if (!Tok.is(MMToken::Identifier)) {
2370 if (!Tok.is(MMToken::Comma))
2395 if (Tok.is(MMToken::TextualKeyword)) {
2413 if (!Tok.is(MMToken::HeaderKeyword)) {
2424 if (!Tok.is(MMToken::StringLiteral)) {
2447 if (Tok.is(MMToken::LBrace)) {
2450 while (!Tok.is(MMToken::RBrace) && !Tok.is(MMToken::EndOfFile)) {
2461 if (!Tok.is(MMToken::IntegerLiteral)) {
2474 if (!Tok.is(MMToken::IntegerLiteral)) {
2491 if (Tok.is(MMToken::RBrace))
2526 if (!Tok.is(MMToken::StringLiteral)) {
2565 // directory is relatively expensive, in practice this only applies to the
2608 assert(Tok.is(MMToken::ExportKeyword));
2616 if (Tok.is(MMToken::Identifier)) {
2621 if (Tok.is(MMToken::Period)) {
2629 if(Tok.is(MMToken::Star)) {
2651 assert(Tok.is(MMToken::ExportAsKeyword));
2654 if (!Tok.is(MMToken::Identifier)) {
2688 assert(Tok.is(MMToken::UseKeyword));
2705 assert(Tok.is(MMToken::LinkKeyword));
2710 if (Tok.is(MMToken::FrameworkKeyword)) {
2716 if (!Tok.is(MMToken::StringLiteral)) {
2737 assert(Tok.is(MMToken::ConfigMacros));
2756 if (!Tok.is(MMToken::Identifier))
2767 if (!Tok.is(MMToken::Comma))
2773 if (!Tok.is(MMToken::Identifier)) {
2807 assert(Tok.is(MMToken::Conflict));
2816 if (!Tok.is(MMToken::Comma)) {
2824 if (!Tok.is(MMToken::StringLiteral)) {
2846 assert(Tok.is(MMToken::Star));
2873 // Check for the 'framework' keyword, which is not permitted here.
2885 if (Tok.is(MMToken::LBrace)) {
2888 if (Tok.is(MMToken::RBrace))
2914 if (!Tok.is(MMToken::LBrace)) {
2940 if (!Tok.is(MMToken::Identifier)) {
2959 if (Tok.is(MMToken::Star))
2980 if (Tok.is(MMToken::RBrace))
3004 while (Tok.is(MMToken::LSquare)) {
3009 if (!Tok.is(MMToken::Identifier)) {
3012 if (Tok.is(MMToken::RSquare))
3050 if (!Tok.is(MMToken::RSquare)) {
3057 if (Tok.is(MMToken::RSquare))