clang API Documentation
An input file for the front end. More...
#include <FrontendOptions.h>
Public Member Functions | |
| FrontendInputFile () | |
| FrontendInputFile (StringRef File, InputKind Kind, bool IsSystem=false) | |
| FrontendInputFile (llvm::MemoryBuffer *buffer, InputKind Kind, bool IsSystem=false) | |
| InputKind | getKind () const |
| bool | isSystem () const |
| bool | isEmpty () const |
| bool | isFile () const |
| bool | isBuffer () const |
| StringRef | getFile () const |
| llvm::MemoryBuffer * | getBuffer () const |
An input file for the front end.
Definition at line 80 of file FrontendOptions.h.
| clang::FrontendInputFile::FrontendInputFile | ( | ) | [inline] |
Definition at line 93 of file FrontendOptions.h.
| clang::FrontendInputFile::FrontendInputFile | ( | StringRef | File, |
| InputKind | Kind, | ||
| bool | IsSystem = false |
||
| ) | [inline] |
Definition at line 94 of file FrontendOptions.h.
| clang::FrontendInputFile::FrontendInputFile | ( | llvm::MemoryBuffer * | buffer, |
| InputKind | Kind, | ||
| bool | IsSystem = false |
||
| ) | [inline] |
Definition at line 96 of file FrontendOptions.h.
| llvm::MemoryBuffer* clang::FrontendInputFile::getBuffer | ( | ) | const [inline] |
Definition at line 111 of file FrontendOptions.h.
References isBuffer().
Referenced by clang::ASTUnit::getMainFileName(), and clang::CompilerInstance::InitializeSourceManager().
| StringRef clang::FrontendInputFile::getFile | ( | ) | const [inline] |
Definition at line 107 of file FrontendOptions.h.
References isFile().
Referenced by clang::FrontendAction::BeginSourceFile(), clang::ASTUnit::getMainFileName(), and clang::CompilerInstance::InitializeSourceManager().
| InputKind clang::FrontendInputFile::getKind | ( | ) | const [inline] |
Definition at line 100 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile().
| bool clang::FrontendInputFile::isBuffer | ( | ) | const [inline] |
Definition at line 105 of file FrontendOptions.h.
Referenced by getBuffer(), clang::CompilerInstance::InitializeSourceManager(), and isFile().
| bool clang::FrontendInputFile::isEmpty | ( | ) | const [inline] |
Definition at line 103 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile(), and clang::FrontendAction::isCurrentFileAST().
| bool clang::FrontendInputFile::isFile | ( | ) | const [inline] |
Definition at line 104 of file FrontendOptions.h.
References isBuffer().
Referenced by getFile(), and clang::ASTUnit::getMainFileName().
| bool clang::FrontendInputFile::isSystem | ( | ) | const [inline] |
Definition at line 101 of file FrontendOptions.h.
Referenced by clang::CompilerInstance::InitializeSourceManager().