clang
13.0.0git
|
Wrapper around Optional<FileEntryRef> that degrades to 'const FileEntry*', facilitating incremental patches to propagate FileEntryRef. More...
#include "clang/Basic/FileEntry.h"
Wrapper around Optional<FileEntryRef> that degrades to 'const FileEntry*', facilitating incremental patches to propagate FileEntryRef.
This class can be used as return value or field where it's convenient for an Optional<FileEntryRef> to degrade to a 'const FileEntry*'. The purpose is to avoid code churn due to dances like the following:
FIXME: Once FileEntryRef is "everywhere" and FileEntry::LastRef and FileEntry::getName have been deleted, delete this class and replace instances with Optional<FileEntryRef>.
Definition at line 280 of file FileEntry.h.
|
default |
|
default |
|
default |
|
inline |
Definition at line 293 of file FileEntry.h.
|
inline |
Definition at line 294 of file FileEntry.h.
|
inline |
Definition at line 296 of file FileEntry.h.
|
inline |
Degrade to 'const FileEntry *' to allow FileEntry::LastRef and FileEntry::getName have been deleted, delete this class and replace instances with Optional<FileEntryRef>
Definition at line 316 of file FileEntry.h.
References getValue().
|
default |
|
inline |
Definition at line 303 of file FileEntry.h.
|
inline |
Definition at line 299 of file FileEntry.h.
|
inline |
Definition at line 308 of file FileEntry.h.
|
default |