clang  14.0.0git
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::MemoryBufferRef 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::MemoryBufferRef getBuffer () const
 

Detailed Description

An input file for the front end.

Definition at line 185 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 202 of file FrontendOptions.h.

References clang::File.

◆ FrontendInputFile() [3/3]

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

Definition at line 204 of file FrontendOptions.h.

Member Function Documentation

◆ getBuffer()

llvm::MemoryBufferRef 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

◆ isEmpty()

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

◆ isFile()

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

◆ isPreprocessed()

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

Definition at line 214 of file FrontendOptions.h.

◆ isSystem()

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

Definition at line 209 of file FrontendOptions.h.

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


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