1 //===--- HeaderSearch.h - Resolve Header File Locations ---------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the HeaderSearch interface.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CLANG_LEX_HEADERSEARCH_H
15 #define LLVM_CLANG_LEX_HEADERSEARCH_H
17 #include "clang/Lex/DirectoryLookup.h"
18 #include "clang/Lex/ModuleMap.h"
19 #include "llvm/ADT/ArrayRef.h"
20 #include "llvm/ADT/IntrusiveRefCntPtr.h"
21 #include "llvm/ADT/StringMap.h"
22 #include "llvm/ADT/StringSet.h"
23 #include "llvm/Support/Allocator.h"
29 class DiagnosticsEngine;
30 class ExternalPreprocessorSource;
33 class HeaderSearchOptions;
37 /// \brief The preprocessor keeps track of this information for each
38 /// file that is \#included.
39 struct HeaderFileInfo {
40 /// \brief True if this is a \#import'd or \#pragma once file.
41 unsigned isImport : 1;
43 /// \brief True if this is a \#pragma once file.
44 unsigned isPragmaOnce : 1;
46 /// DirInfo - Keep track of whether this is a system header, and if so,
47 /// whether it is C++ clean or not. This can be set by the include paths or
48 /// by \#pragma gcc system_header. This is an instance of
49 /// SrcMgr::CharacteristicKind.
52 /// \brief Whether this header file info was supplied by an external source,
53 /// and has not changed since.
54 unsigned External : 1;
56 /// \brief Whether this header is part of a module.
57 unsigned isModuleHeader : 1;
59 /// \brief Whether this header is part of the module that we are building.
60 unsigned isCompilingModuleHeader : 1;
62 /// \brief Whether this structure is considered to already have been
63 /// "resolved", meaning that it was loaded from the external source.
64 unsigned Resolved : 1;
66 /// \brief Whether this is a header inside a framework that is currently
69 /// When a framework is being built, the headers have not yet been placed
70 /// into the appropriate framework subdirectories, and therefore are
71 /// provided via a header map. This bit indicates when this is one of
72 /// those framework headers.
73 unsigned IndexHeaderMapHeader : 1;
75 /// \brief Whether this file has been looked up as a header.
78 /// \brief The number of times the file has been included already.
79 unsigned short NumIncludes;
81 /// \brief The ID number of the controlling macro.
83 /// This ID number will be non-zero when there is a controlling
84 /// macro whose IdentifierInfo may not yet have been loaded from
86 unsigned ControllingMacroID;
88 /// If this file has a \#ifndef XXX (or equivalent) guard that
89 /// protects the entire contents of the file, this is the identifier
90 /// for the macro that controls whether or not it has any effect.
92 /// Note: Most clients should use getControllingMacro() to access
93 /// the controlling macro of this header, since
94 /// getControllingMacro() is able to load a controlling macro from
96 const IdentifierInfo *ControllingMacro;
98 /// \brief If this header came from a framework include, this is the name
103 : isImport(false), isPragmaOnce(false), DirInfo(SrcMgr::C_User),
104 External(false), isModuleHeader(false), isCompilingModuleHeader(false),
105 Resolved(false), IndexHeaderMapHeader(false), IsValid(0),
106 NumIncludes(0), ControllingMacroID(0), ControllingMacro(nullptr) {}
108 /// \brief Retrieve the controlling macro for this header file, if
110 const IdentifierInfo *
111 getControllingMacro(ExternalPreprocessorSource *External);
113 /// \brief Determine whether this is a non-default header file info, e.g.,
114 /// it corresponds to an actual header we've included or tried to include.
115 bool isNonDefault() const {
116 return isImport || isPragmaOnce || NumIncludes || ControllingMacro ||
121 /// \brief An external source of header file information, which may supply
122 /// information about header files already included.
123 class ExternalHeaderFileInfoSource {
125 virtual ~ExternalHeaderFileInfoSource();
127 /// \brief Retrieve the header file information for the given file entry.
129 /// \returns Header file information for the given file entry, with the
130 /// \c External bit set. If the file entry is not known, return a
131 /// default-constructed \c HeaderFileInfo.
132 virtual HeaderFileInfo GetHeaderFileInfo(const FileEntry *FE) = 0;
135 /// \brief Encapsulates the information needed to find the file referenced
136 /// by a \#include or \#include_next, (sub-)framework lookup, etc.
138 /// This structure is used to record entries in our framework cache.
139 struct FrameworkCacheEntry {
140 /// The directory entry which should be used for the cached framework.
141 const DirectoryEntry *Directory;
143 /// Whether this framework has been "user-specified" to be treated as if it
144 /// were a system framework (even if it was found outside a system framework
146 bool IsUserSpecifiedSystemFramework;
149 /// \brief Header-search options used to initialize this header search.
150 IntrusiveRefCntPtr<HeaderSearchOptions> HSOpts;
152 DiagnosticsEngine &Diags;
153 FileManager &FileMgr;
154 /// \#include search path information. Requests for \#include "x" search the
155 /// directory of the \#including file first, then each directory in SearchDirs
156 /// consecutively. Requests for <x> search the current dir first, then each
157 /// directory in SearchDirs, starting at AngledDirIdx, consecutively. If
158 /// NoCurDirSearch is true, then the check for the file in the current
159 /// directory is suppressed.
160 std::vector<DirectoryLookup> SearchDirs;
161 unsigned AngledDirIdx;
162 unsigned SystemDirIdx;
165 /// \brief \#include prefixes for which the 'system header' property is
168 /// For a \#include "x" or \#include \<x> directive, the last string in this
169 /// list which is a prefix of 'x' determines whether the file is treated as
171 std::vector<std::pair<std::string, bool> > SystemHeaderPrefixes;
173 /// \brief The path to the module cache.
174 std::string ModuleCachePath;
176 /// \brief All of the preprocessor-specific data about files that are
177 /// included, indexed by the FileEntry's UID.
178 mutable std::vector<HeaderFileInfo> FileInfo;
180 /// Keeps track of each lookup performed by LookupFile.
181 struct LookupFileCacheInfo {
182 /// Starting index in SearchDirs that the cached search was performed from.
183 /// If there is a hit and this value doesn't match the current query, the
184 /// cache has to be ignored.
186 /// The entry in SearchDirs that satisfied the query.
188 /// This is non-null if the original filename was mapped to a framework
189 /// include via a headermap.
190 const char *MappedName;
192 /// Default constructor -- Initialize all members with zero.
193 LookupFileCacheInfo(): StartIdx(0), HitIdx(0), MappedName(nullptr) {}
195 void reset(unsigned StartIdx) {
196 this->StartIdx = StartIdx;
197 this->MappedName = nullptr;
200 llvm::StringMap<LookupFileCacheInfo, llvm::BumpPtrAllocator> LookupFileCache;
202 /// \brief Collection mapping a framework or subframework
203 /// name like "Carbon" to the Carbon.framework directory.
204 llvm::StringMap<FrameworkCacheEntry, llvm::BumpPtrAllocator> FrameworkMap;
206 /// IncludeAliases - maps include file names (including the quotes or
207 /// angle brackets) to other include file names. This is used to support the
208 /// include_alias pragma for Microsoft compatibility.
209 typedef llvm::StringMap<std::string, llvm::BumpPtrAllocator>
211 std::unique_ptr<IncludeAliasMap> IncludeAliases;
213 /// HeaderMaps - This is a mapping from FileEntry -> HeaderMap, uniquing
214 /// headermaps. This vector owns the headermap.
215 std::vector<std::pair<const FileEntry*, const HeaderMap*> > HeaderMaps;
217 /// \brief The mapping between modules and headers.
218 mutable ModuleMap ModMap;
220 /// \brief Describes whether a given directory has a module map in it.
221 llvm::DenseMap<const DirectoryEntry *, bool> DirectoryHasModuleMap;
223 /// \brief Set of module map files we've already loaded, and a flag indicating
224 /// whether they were valid or not.
225 llvm::DenseMap<const FileEntry *, bool> LoadedModuleMaps;
227 /// \brief Uniqued set of framework names, which is used to track which
228 /// headers were included as framework headers.
229 llvm::StringSet<llvm::BumpPtrAllocator> FrameworkNames;
231 /// \brief Entity used to resolve the identifier IDs of controlling
232 /// macros into IdentifierInfo pointers, and keep the identifire up to date,
234 ExternalPreprocessorSource *ExternalLookup;
236 /// \brief Entity used to look up stored header file information.
237 ExternalHeaderFileInfoSource *ExternalSource;
239 // Various statistics we track for performance analysis.
240 unsigned NumIncluded;
241 unsigned NumMultiIncludeFileOptzn;
242 unsigned NumFrameworkLookups, NumSubFrameworkLookups;
244 const LangOptions &LangOpts;
246 // HeaderSearch doesn't support default or copy construction.
247 HeaderSearch(const HeaderSearch&) = delete;
248 void operator=(const HeaderSearch&) = delete;
250 friend class DirectoryLookup;
253 HeaderSearch(IntrusiveRefCntPtr<HeaderSearchOptions> HSOpts,
254 SourceManager &SourceMgr, DiagnosticsEngine &Diags,
255 const LangOptions &LangOpts, const TargetInfo *Target);
258 /// \brief Retrieve the header-search options with which this header search
260 HeaderSearchOptions &getHeaderSearchOpts() const { return *HSOpts; }
262 FileManager &getFileMgr() const { return FileMgr; }
264 /// \brief Interface for setting the file search paths.
265 void SetSearchPaths(const std::vector<DirectoryLookup> &dirs,
266 unsigned angledDirIdx, unsigned systemDirIdx,
267 bool noCurDirSearch) {
268 assert(angledDirIdx <= systemDirIdx && systemDirIdx <= dirs.size() &&
269 "Directory indicies are unordered");
271 AngledDirIdx = angledDirIdx;
272 SystemDirIdx = systemDirIdx;
273 NoCurDirSearch = noCurDirSearch;
274 //LookupFileCache.clear();
277 /// \brief Add an additional search path.
278 void AddSearchPath(const DirectoryLookup &dir, bool isAngled) {
279 unsigned idx = isAngled ? SystemDirIdx : AngledDirIdx;
280 SearchDirs.insert(SearchDirs.begin() + idx, dir);
286 /// \brief Set the list of system header prefixes.
287 void SetSystemHeaderPrefixes(ArrayRef<std::pair<std::string, bool> > P) {
288 SystemHeaderPrefixes.assign(P.begin(), P.end());
291 /// \brief Checks whether the map exists or not.
292 bool HasIncludeAliasMap() const { return (bool)IncludeAliases; }
294 /// \brief Map the source include name to the dest include name.
296 /// The Source should include the angle brackets or quotes, the dest
297 /// should not. This allows for distinction between <> and "" headers.
298 void AddIncludeAlias(StringRef Source, StringRef Dest) {
300 IncludeAliases.reset(new IncludeAliasMap);
301 (*IncludeAliases)[Source] = Dest;
304 /// MapHeaderToIncludeAlias - Maps one header file name to a different header
305 /// file name, for use with the include_alias pragma. Note that the source
306 /// file name should include the angle brackets or quotes. Returns StringRef
307 /// as null if the header cannot be mapped.
308 StringRef MapHeaderToIncludeAlias(StringRef Source) {
309 assert(IncludeAliases && "Trying to map headers when there's no map");
311 // Do any filename replacements before anything else
312 IncludeAliasMap::const_iterator Iter = IncludeAliases->find(Source);
313 if (Iter != IncludeAliases->end())
318 /// \brief Set the path to the module cache.
319 void setModuleCachePath(StringRef CachePath) {
320 ModuleCachePath = CachePath;
323 /// \brief Retrieve the path to the module cache.
324 StringRef getModuleCachePath() const { return ModuleCachePath; }
326 /// \brief Consider modules when including files from this directory.
327 void setDirectoryHasModuleMap(const DirectoryEntry* Dir) {
328 DirectoryHasModuleMap[Dir] = true;
331 /// \brief Forget everything we know about headers so far.
332 void ClearFileInfo() {
336 void SetExternalLookup(ExternalPreprocessorSource *EPS) {
337 ExternalLookup = EPS;
340 ExternalPreprocessorSource *getExternalLookup() const {
341 return ExternalLookup;
344 /// \brief Set the external source of header information.
345 void SetExternalSource(ExternalHeaderFileInfoSource *ES) {
349 /// \brief Set the target information for the header search, if not
351 void setTarget(const TargetInfo &Target);
353 /// \brief Given a "foo" or \<foo> reference, look up the indicated file,
354 /// return null on failure.
356 /// \returns If successful, this returns 'UsedDir', the DirectoryLookup member
357 /// the file was found in, or null if not applicable.
359 /// \param IncludeLoc Used for diagnostics if valid.
361 /// \param isAngled indicates whether the file reference is a <> reference.
363 /// \param CurDir If non-null, the file was found in the specified directory
364 /// search location. This is used to implement \#include_next.
366 /// \param Includers Indicates where the \#including file(s) are, in case
367 /// relative searches are needed. In reverse order of inclusion.
369 /// \param SearchPath If non-null, will be set to the search path relative
370 /// to which the file was found. If the include path is absolute, SearchPath
371 /// will be set to an empty string.
373 /// \param RelativePath If non-null, will be set to the path relative to
374 /// SearchPath at which the file was found. This only differs from the
375 /// Filename for framework includes.
377 /// \param SuggestedModule If non-null, and the file found is semantically
378 /// part of a known module, this will be set to the module that should
379 /// be imported instead of preprocessing/parsing the file found.
380 const FileEntry *LookupFile(
381 StringRef Filename, SourceLocation IncludeLoc, bool isAngled,
382 const DirectoryLookup *FromDir, const DirectoryLookup *&CurDir,
383 ArrayRef<std::pair<const FileEntry *, const DirectoryEntry *>> Includers,
384 SmallVectorImpl<char> *SearchPath, SmallVectorImpl<char> *RelativePath,
385 Module *RequestingModule, ModuleMap::KnownHeader *SuggestedModule,
386 bool SkipCache = false);
388 /// \brief Look up a subframework for the specified \#include file.
390 /// For example, if \#include'ing <HIToolbox/HIToolbox.h> from
391 /// within ".../Carbon.framework/Headers/Carbon.h", check to see if
392 /// HIToolbox is a subframework within Carbon.framework. If so, return
393 /// the FileEntry for the designated file, otherwise return null.
394 const FileEntry *LookupSubframeworkHeader(
395 StringRef Filename, const FileEntry *RelativeFileEnt,
396 SmallVectorImpl<char> *SearchPath, SmallVectorImpl<char> *RelativePath,
397 Module *RequestingModule, ModuleMap::KnownHeader *SuggestedModule);
399 /// \brief Look up the specified framework name in our framework cache.
400 /// \returns The DirectoryEntry it is in if we know, null otherwise.
401 FrameworkCacheEntry &LookupFrameworkCache(StringRef FWName) {
402 return FrameworkMap[FWName];
405 /// \brief Mark the specified file as a target of of a \#include,
406 /// \#include_next, or \#import directive.
408 /// \return false if \#including the file will have no effect or true
409 /// if we should include it.
410 bool ShouldEnterIncludeFile(Preprocessor &PP, const FileEntry *File,
411 bool isImport, Module *CorrespondingModule);
413 /// \brief Return whether the specified file is a normal header,
414 /// a system header, or a C++ friendly system header.
415 SrcMgr::CharacteristicKind getFileDirFlavor(const FileEntry *File) {
416 return (SrcMgr::CharacteristicKind)getFileInfo(File).DirInfo;
419 /// \brief Mark the specified file as a "once only" file, e.g. due to
421 void MarkFileIncludeOnce(const FileEntry *File) {
422 HeaderFileInfo &FI = getFileInfo(File);
424 FI.isPragmaOnce = true;
427 /// \brief Mark the specified file as a system header, e.g. due to
428 /// \#pragma GCC system_header.
429 void MarkFileSystemHeader(const FileEntry *File) {
430 getFileInfo(File).DirInfo = SrcMgr::C_System;
433 /// \brief Mark the specified file as part of a module.
434 void MarkFileModuleHeader(const FileEntry *File,
435 ModuleMap::ModuleHeaderRole Role,
436 bool IsCompiledModuleHeader);
438 /// \brief Increment the count for the number of times the specified
439 /// FileEntry has been entered.
440 void IncrementIncludeCount(const FileEntry *File) {
441 ++getFileInfo(File).NumIncludes;
444 /// \brief Mark the specified file as having a controlling macro.
446 /// This is used by the multiple-include optimization to eliminate
447 /// no-op \#includes.
448 void SetFileControllingMacro(const FileEntry *File,
449 const IdentifierInfo *ControllingMacro) {
450 getFileInfo(File).ControllingMacro = ControllingMacro;
453 /// \brief Return true if this is the first time encountering this header.
454 bool FirstTimeLexingFile(const FileEntry *File) {
455 return getFileInfo(File).NumIncludes == 1;
458 /// \brief Determine whether this file is intended to be safe from
459 /// multiple inclusions, e.g., it has \#pragma once or a controlling
462 /// This routine does not consider the effect of \#import
463 bool isFileMultipleIncludeGuarded(const FileEntry *File);
465 /// CreateHeaderMap - This method returns a HeaderMap for the specified
466 /// FileEntry, uniquing them through the 'HeaderMaps' datastructure.
467 const HeaderMap *CreateHeaderMap(const FileEntry *FE);
469 /// \brief Retrieve the name of the module file that should be used to
470 /// load the given module.
472 /// \param Module The module whose module file name will be returned.
474 /// \returns The name of the module file that corresponds to this module,
475 /// or an empty string if this module does not correspond to any module file.
476 std::string getModuleFileName(Module *Module);
478 /// \brief Retrieve the name of the module file that should be used to
479 /// load a module with the given name.
481 /// \param ModuleName The module whose module file name will be returned.
483 /// \param ModuleMapPath A path that when combined with \c ModuleName
484 /// uniquely identifies this module. See Module::ModuleMap.
486 /// \returns The name of the module file that corresponds to this module,
487 /// or an empty string if this module does not correspond to any module file.
488 std::string getModuleFileName(StringRef ModuleName, StringRef ModuleMapPath);
490 /// \brief Lookup a module Search for a module with the given name.
492 /// \param ModuleName The name of the module we're looking for.
494 /// \param AllowSearch Whether we are allowed to search in the various
495 /// search directories to produce a module definition. If not, this lookup
496 /// will only return an already-known module.
498 /// \returns The module with the given name.
499 Module *lookupModule(StringRef ModuleName, bool AllowSearch = true);
501 /// \brief Try to find a module map file in the given directory, returning
502 /// \c nullptr if none is found.
503 const FileEntry *lookupModuleMapFile(const DirectoryEntry *Dir,
506 void IncrementFrameworkLookupCount() { ++NumFrameworkLookups; }
508 /// \brief Determine whether there is a module map that may map the header
509 /// with the given file name to a (sub)module.
510 /// Always returns false if modules are disabled.
512 /// \param Filename The name of the file.
514 /// \param Root The "root" directory, at which we should stop looking for
517 /// \param IsSystem Whether the directories we're looking at are system
518 /// header directories.
519 bool hasModuleMap(StringRef Filename, const DirectoryEntry *Root,
522 /// \brief Retrieve the module that corresponds to the given file, if any.
524 /// \param File The header that we wish to map to a module.
525 ModuleMap::KnownHeader findModuleForHeader(const FileEntry *File) const;
527 /// \brief Read the contents of the given module map file.
529 /// \param File The module map file.
530 /// \param IsSystem Whether this file is in a system header directory.
532 /// \returns true if an error occurred, false otherwise.
533 bool loadModuleMapFile(const FileEntry *File, bool IsSystem);
535 /// \brief Collect the set of all known, top-level modules.
537 /// \param Modules Will be filled with the set of known, top-level modules.
538 void collectAllModules(SmallVectorImpl<Module *> &Modules);
540 /// \brief Load all known, top-level system modules.
541 void loadTopLevelSystemModules();
544 /// \brief Retrieve a module with the given name, which may be part of the
547 /// \param Name The name of the module to retrieve.
549 /// \param Dir The framework directory (e.g., ModuleName.framework).
551 /// \param IsSystem Whether the framework directory is part of the system
554 /// \returns The module, if found; otherwise, null.
555 Module *loadFrameworkModule(StringRef Name,
556 const DirectoryEntry *Dir,
559 /// \brief Load all of the module maps within the immediate subdirectories
560 /// of the given search directory.
561 void loadSubdirectoryModuleMaps(DirectoryLookup &SearchDir);
563 /// \brief Find and suggest a usable module for the given file.
565 /// \return \c true if the file can be used, \c false if we are not permitted to
566 /// find this file due to requirements from \p RequestingModule.
567 bool findUsableModuleForHeader(const FileEntry *File,
568 const DirectoryEntry *Root,
569 Module *RequestingModule,
570 ModuleMap::KnownHeader *SuggestedModule,
571 bool IsSystemHeaderDir);
573 /// \brief Find and suggest a usable module for the given file, which is part of
574 /// the specified framework.
576 /// \return \c true if the file can be used, \c false if we are not permitted to
577 /// find this file due to requirements from \p RequestingModule.
578 bool findUsableModuleForFrameworkHeader(
579 const FileEntry *File, StringRef FrameworkDir, Module *RequestingModule,
580 ModuleMap::KnownHeader *SuggestedModule, bool IsSystemFramework);
582 /// \brief Look up the file with the specified name and determine its owning
585 getFileAndSuggestModule(StringRef FileName, const DirectoryEntry *Dir,
586 bool IsSystemHeaderDir, Module *RequestingModule,
587 ModuleMap::KnownHeader *SuggestedModule);
590 /// \brief Retrieve the module map.
591 ModuleMap &getModuleMap() { return ModMap; }
593 /// \brief Retrieve the module map.
594 const ModuleMap &getModuleMap() const { return ModMap; }
596 unsigned header_file_size() const { return FileInfo.size(); }
598 /// \brief Return the HeaderFileInfo structure for the specified FileEntry,
599 /// in preparation for updating it in some way.
600 HeaderFileInfo &getFileInfo(const FileEntry *FE);
602 /// \brief Return the HeaderFileInfo structure for the specified FileEntry,
603 /// if it has ever been filled in.
604 /// \param WantExternal Whether the caller wants purely-external header file
605 /// info (where \p External is true).
606 const HeaderFileInfo *getExistingFileInfo(const FileEntry *FE,
607 bool WantExternal = true) const;
609 // Used by external tools
610 typedef std::vector<DirectoryLookup>::const_iterator search_dir_iterator;
611 search_dir_iterator search_dir_begin() const { return SearchDirs.begin(); }
612 search_dir_iterator search_dir_end() const { return SearchDirs.end(); }
613 unsigned search_dir_size() const { return SearchDirs.size(); }
615 search_dir_iterator quoted_dir_begin() const {
616 return SearchDirs.begin();
618 search_dir_iterator quoted_dir_end() const {
619 return SearchDirs.begin() + AngledDirIdx;
622 search_dir_iterator angled_dir_begin() const {
623 return SearchDirs.begin() + AngledDirIdx;
625 search_dir_iterator angled_dir_end() const {
626 return SearchDirs.begin() + SystemDirIdx;
629 search_dir_iterator system_dir_begin() const {
630 return SearchDirs.begin() + SystemDirIdx;
632 search_dir_iterator system_dir_end() const { return SearchDirs.end(); }
634 /// \brief Retrieve a uniqued framework name.
635 StringRef getUniqueFrameworkName(StringRef Framework);
639 size_t getTotalMemory() const;
641 static std::string NormalizeDashIncludePath(StringRef File,
642 FileManager &FileMgr);
645 /// \brief Describes what happened when we tried to load a module map file.
646 enum LoadModuleMapResult {
647 /// \brief The module map file had already been loaded.
649 /// \brief The module map file was loaded by this invocation.
651 /// \brief There is was directory with the given name.
653 /// \brief There was either no module map file or the module map file was
658 LoadModuleMapResult loadModuleMapFileImpl(const FileEntry *File,
660 const DirectoryEntry *Dir);
662 /// \brief Try to load the module map file in the given directory.
664 /// \param DirName The name of the directory where we will look for a module
666 /// \param IsSystem Whether this is a system header directory.
667 /// \param IsFramework Whether this is a framework directory.
669 /// \returns The result of attempting to load the module map file from the
671 LoadModuleMapResult loadModuleMapFile(StringRef DirName, bool IsSystem,
674 /// \brief Try to load the module map file in the given directory.
676 /// \param Dir The directory where we will look for a module map file.
677 /// \param IsSystem Whether this is a system header directory.
678 /// \param IsFramework Whether this is a framework directory.
680 /// \returns The result of attempting to load the module map file from the
682 LoadModuleMapResult loadModuleMapFile(const DirectoryEntry *Dir,
683 bool IsSystem, bool IsFramework);
686 } // end namespace clang