class FrontendInputFile
Declaration
class FrontendInputFile { /* full declaration omitted */ };
Description
An input file for the front end.
Declared at: clang/include/clang/Frontend/FrontendOptions.h:221
Member Variables
- private std::string File
- The file name, or "-" to read from standard input.
- private llvm::Optional<llvm::MemoryBufferRef> Buffer
- The input, if it comes from a buffer rather than a file. This object does not own the buffer, and the caller is responsible for ensuring that it outlives any users.
- private clang::InputKind Kind
- The kind of input, e.g., C source, AST file, LLVM IR.
- private bool IsSystem = false
- Whether we're dealing with a 'system' input (vs. a 'user' input).
Method Overview
- public FrontendInputFile()
- public FrontendInputFile(llvm::StringRef File, clang::InputKind Kind, bool IsSystem = false)
- public FrontendInputFile(llvm::MemoryBufferRef Buffer, clang::InputKind Kind, bool IsSystem = false)
- public llvm::MemoryBufferRef getBuffer() const
- public llvm::StringRef getFile() const
- public InputKind::HeaderUnitKind getHeaderUnitKind() const
- public clang::InputKind getKind() const
- public bool isBuffer() const
- public bool isEmpty() const
- public bool isFile() const
- public bool isHeader() const
- public bool isPreprocessed() const
- public bool isSystem() const
Methods
¶FrontendInputFile()
FrontendInputFile()
Declared at: clang/include/clang/Frontend/FrontendOptions.h:237
¶FrontendInputFile(llvm::StringRef File,
clang::InputKind Kind,
bool IsSystem = false)
FrontendInputFile(llvm::StringRef File,
clang::InputKind Kind,
bool IsSystem = false)
Declared at: clang/include/clang/Frontend/FrontendOptions.h:238
Parameters
- llvm::StringRef File
- clang::InputKind Kind
- bool IsSystem = false
¶FrontendInputFile(llvm::MemoryBufferRef Buffer,
clang::InputKind Kind,
bool IsSystem = false)
FrontendInputFile(llvm::MemoryBufferRef Buffer,
clang::InputKind Kind,
bool IsSystem = false)
Declared at: clang/include/clang/Frontend/FrontendOptions.h:240
Parameters
- llvm::MemoryBufferRef Buffer
- clang::InputKind Kind
- bool IsSystem = false
¶llvm::MemoryBufferRef getBuffer() const
llvm::MemoryBufferRef getBuffer() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:261
¶llvm::StringRef getFile() const
llvm::StringRef getFile() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:256
¶InputKind::HeaderUnitKind getHeaderUnitKind()
const
InputKind::HeaderUnitKind getHeaderUnitKind()
const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:252
¶clang::InputKind getKind() const
clang::InputKind getKind() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:244
¶bool isBuffer() const
bool isBuffer() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:249
¶bool isEmpty() const
bool isEmpty() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:247
¶bool isFile() const
bool isFile() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:248
¶bool isHeader() const
bool isHeader() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:251
¶bool isPreprocessed() const
bool isPreprocessed() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:250
¶bool isSystem() const
bool isSystem() const
Declared at: clang/include/clang/Frontend/FrontendOptions.h:245