clang 17.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"

Collaboration diagram for clang::FileEntryRef::MapValue:
Collaboration graph
[legend]

Public Member Functions

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

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.
 
OptionalDirectoryEntryRef Dir
 Directory the file was found in. Set if and only if V is a FileEntry.
 

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)
inline

Definition at line 128 of file FileEntry.h.

Member Data Documentation

◆ Dir

OptionalDirectoryEntryRef clang::FileEntryRef::MapValue::Dir

Directory the file was found in. Set if and only if V is a FileEntry.

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: