clang  7.0.0svn
Public Member Functions | List of all members
clang::FrontendInputFile Class Reference

An input file for the front end. More...

#include "clang/Frontend/FrontendOptions.h"

Public Member Functions

 FrontendInputFile ()=default
 
 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
 
bool isPreprocessed () const
 
StringRef getFile () const
 
llvm::MemoryBuffer * getBuffer () const
 

Detailed Description

An input file for the front end.

Definition at line 202 of file FrontendOptions.h.

Constructor & Destructor Documentation

◆ FrontendInputFile() [1/3]

clang::FrontendInputFile::FrontendInputFile ( )
default

◆ FrontendInputFile() [2/3]

clang::FrontendInputFile::FrontendInputFile ( StringRef  File,
InputKind  Kind,
bool  IsSystem = false 
)
inline

Definition at line 219 of file FrontendOptions.h.

◆ FrontendInputFile() [3/3]

clang::FrontendInputFile::FrontendInputFile ( llvm::MemoryBuffer *  Buffer,
InputKind  Kind,
bool  IsSystem = false 
)
inline

Definition at line 221 of file FrontendOptions.h.

Member Function Documentation

◆ getBuffer()

llvm::MemoryBuffer* clang::FrontendInputFile::getBuffer ( ) const
inline

◆ getFile()

StringRef clang::FrontendInputFile::getFile ( ) const
inline

◆ getKind()

InputKind clang::FrontendInputFile::getKind ( ) const
inline

◆ isBuffer()

bool clang::FrontendInputFile::isBuffer ( ) const
inline

Definition at line 230 of file FrontendOptions.h.

Referenced by clang::CompilerInstance::InitializeSourceManager().

◆ isEmpty()

bool clang::FrontendInputFile::isEmpty ( ) const
inline

◆ isFile()

bool clang::FrontendInputFile::isFile ( ) const
inline

Definition at line 229 of file FrontendOptions.h.

Referenced by clang::ASTUnit::getMainFileName().

◆ isPreprocessed()

bool clang::FrontendInputFile::isPreprocessed ( ) const
inline

◆ isSystem()

bool clang::FrontendInputFile::isSystem ( ) const
inline

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