clang 20.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
 
bool isHeader () const
 
InputKind::HeaderUnitKind getHeaderUnitKind () const
 
StringRef getFile () const
 
llvm::MemoryBufferRef getBuffer () const
 

Detailed Description

An input file for the front end.

Definition at line 232 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 249 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 251 of file FrontendOptions.h.

Member Function Documentation

◆ getBuffer()

llvm::MemoryBufferRef clang::FrontendInputFile::getBuffer ( ) const
inline

◆ getFile()

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

◆ getHeaderUnitKind()

InputKind::HeaderUnitKind clang::FrontendInputFile::getHeaderUnitKind ( ) const
inline

Definition at line 263 of file FrontendOptions.h.

◆ 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

◆ isHeader()

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

Definition at line 262 of file FrontendOptions.h.

◆ isPreprocessed()

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

Definition at line 261 of file FrontendOptions.h.

Referenced by clang::FrontendAction::BeginSourceFile().

◆ isSystem()

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

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