clang 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::FileEntryRef::MapValue Struct Reference

Type stored in the StringMap. More...

#include "clang/Basic/FileEntry.h"

Public Member Functions

 MapValue ()=delete
 
 MapValue (FileEntry &FE, DirectoryEntryRef Dir)
 
 MapValue (MapEntry &ME, DirectoryEntryRef Dir)
 

Public Attributes

llvm::PointerUnion< FileEntry *, const MapEntry * > V
 The pointer at another MapEntry is used when the FileManager should silently forward from one name to another, which occurs in Redirecting VFSs that use external names.
 
DirectoryEntryRef Dir
 Directory the file was found in.
 

Detailed Description

Type stored in the StringMap.

Definition at line 115 of file FileEntry.h.

Constructor & Destructor Documentation

◆ MapValue() [1/3]

clang::FileEntryRef::MapValue::MapValue ( )
delete

◆ MapValue() [2/3]

clang::FileEntryRef::MapValue::MapValue ( FileEntry FE,
DirectoryEntryRef  Dir 
)
inline

Definition at line 127 of file FileEntry.h.

◆ MapValue() [3/3]

clang::FileEntryRef::MapValue::MapValue ( MapEntry ME,
DirectoryEntryRef  Dir 
)
inline

Definition at line 128 of file FileEntry.h.

Member Data Documentation

◆ Dir

DirectoryEntryRef clang::FileEntryRef::MapValue::Dir

Directory the file was found in.

Definition at line 124 of file FileEntry.h.

◆ V

llvm::PointerUnion<FileEntry *, const MapEntry *> clang::FileEntryRef::MapValue::V

The pointer at another MapEntry is used when the FileManager should silently forward from one name to another, which occurs in Redirecting VFSs that use external names.

In that case, the FileEntryRef returned by the FileManager will have the external name, and not the name that was used to lookup the file.

Definition at line 121 of file FileEntry.h.


The documentation for this struct was generated from the following file: