clang 24.0.0git
clang::driver::InputInfo Class Reference

InputInfo - Wrapper for information about an input source. More...

#include "clang/Driver/InputInfo.h"

Public Member Functions

 InputInfo ()
 InputInfo (const Action *A, const char *_BaseInput)
 InputInfo (types::ID _Type, const char *_Filename, const char *_BaseInput)
 InputInfo (const Action *A, const char *_Filename, const char *_BaseInput)
 InputInfo (types::ID _Type, const llvm::opt::Arg *_InputArg, const char *_BaseInput)
 InputInfo (const Action *A, const llvm::opt::Arg *_InputArg, const char *_BaseInput)
bool isNothing () const
bool isFilename () const
bool isInputArg () const
types::ID getType () const
const char * getBaseInput () const
const Action * getAction () const
 The action for which this InputInfo was created. May be null.
void setAction (const Action *A)
const char * getFilename () const
const llvm::opt::Arg & getInputArg () const
std::string getAsString () const
 getAsString - Return a string name for this input, for debugging.

Detailed Description

InputInfo - Wrapper for information about an input source.

Definition at line 22 of file InputInfo.h.

Constructor & Destructor Documentation

◆ InputInfo() [1/6]

clang::driver::InputInfo::InputInfo ( )
inline

Definition at line 50 of file InputInfo.h.

References InputInfo(), and clang::nullptr.

Referenced by InputInfo().

◆ InputInfo() [2/6]

clang::driver::InputInfo::InputInfo ( const Action * A,
const char * _BaseInput )
inline

Definition at line 51 of file InputInfo.h.

◆ InputInfo() [3/6]

clang::driver::InputInfo::InputInfo ( types::ID _Type,
const char * _Filename,
const char * _BaseInput )
inline

Definition at line 54 of file InputInfo.h.

References Filename, and clang::nullptr.

◆ InputInfo() [4/6]

clang::driver::InputInfo::InputInfo ( const Action * A,
const char * _Filename,
const char * _BaseInput )
inline

Definition at line 58 of file InputInfo.h.

References Filename.

◆ InputInfo() [5/6]

clang::driver::InputInfo::InputInfo ( types::ID _Type,
const llvm::opt::Arg * _InputArg,
const char * _BaseInput )
inline

Definition at line 63 of file InputInfo.h.

References InputArg, and clang::nullptr.

◆ InputInfo() [6/6]

clang::driver::InputInfo::InputInfo ( const Action * A,
const llvm::opt::Arg * _InputArg,
const char * _BaseInput )
inline

Definition at line 68 of file InputInfo.h.

References InputArg.

Member Function Documentation

◆ getAction()

const Action * clang::driver::InputInfo::getAction ( ) const
inline

The action for which this InputInfo was created. May be null.

Definition at line 80 of file InputInfo.h.

◆ getAsString()

std::string clang::driver::InputInfo::getAsString ( ) const
inline

getAsString - Return a string name for this input, for debugging.

Definition at line 94 of file InputInfo.h.

References getFilename(), isFilename(), and isInputArg().

◆ getBaseInput()

const char * clang::driver::InputInfo::getBaseInput ( ) const
inline

Definition at line 78 of file InputInfo.h.

◆ getFilename()

◆ getInputArg()

const llvm::opt::Arg & clang::driver::InputInfo::getInputArg ( ) const
inline

Definition at line 87 of file InputInfo.h.

References isInputArg().

◆ getType()

types::ID clang::driver::InputInfo::getType ( ) const
inline

Definition at line 77 of file InputInfo.h.

Referenced by clang::driver::tools::Clang::ConstructJob().

◆ isFilename()

bool clang::driver::InputInfo::isFilename ( ) const
inline

◆ isInputArg()

bool clang::driver::InputInfo::isInputArg ( ) const
inline

Definition at line 76 of file InputInfo.h.

References InputArg.

Referenced by getAsString(), and getInputArg().

◆ isNothing()

bool clang::driver::InputInfo::isNothing ( ) const
inline

◆ setAction()

void clang::driver::InputInfo::setAction ( const Action * A)
inline

Definition at line 81 of file InputInfo.h.

Member Data Documentation

◆ Filename

const char* clang::driver::InputInfo::Filename

Definition at line 37 of file InputInfo.h.

Referenced by InputInfo(), InputInfo(), and isFilename().

◆ InputArg

const llvm::opt::Arg* clang::driver::InputInfo::InputArg

Definition at line 38 of file InputInfo.h.

Referenced by InputInfo(), InputInfo(), and isInputArg().


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