class InputAction

Declaration

class InputAction : public Action { /* full declaration omitted */ };

Description

Action - Represent an abstract compilation step to perform. An action represents an edge in the compilation graph; typically it is a job to transform an input using some tool. The current driver is hard wired to expect actions which produce a single primary output, at least in terms of controlling the compilation. Actions can produce auxiliary files, but can only produce a single output to feed into subsequent actions. Actions are usually owned by a Compilation, which creates new actions via MakeAction().

Declared at: clang/include/clang/Driver/Action.h:230

Inherits from: Action

Member Variables

private const llvm::opt::Arg& Input
private std::string Id

Inherited from Action:

protected ActiveOffloadKindMask = 0U
protected OffloadingDeviceKind = OFK_None
protected OffloadingArch = nullptr
protected OffloadingToolChain = nullptr

Method Overview

  • public InputAction(const llvm::opt::Arg & Input, types::ID Type, llvm::StringRef Id = llvm::StringRef())
  • private virtual void anchor()
  • public static bool classof(const clang::driver::Action * A)
  • public llvm::StringRef getId() const
  • public const llvm::opt::Arg & getInputArg() const
  • public void setId(llvm::StringRef _Id)

Inherited from Action:

Methods

InputAction(
    const llvm::opt::Arg& Input,
    types::ID Type,
    llvm::StringRef Id = llvm::StringRef())

Declared at: clang/include/clang/Driver/Action.h:236

Parameters

const llvm::opt::Arg& Input
types::ID Type
llvm::StringRef Id = llvm::StringRef()

virtual void anchor()

Declared at: clang/include/clang/Driver/Action.h:233

static bool classof(
    const clang::driver::Action* A)

Declared at: clang/include/clang/Driver/Action.h:244

Parameters

const clang::driver::Action* A

llvm::StringRef getId() const

Declared at: clang/include/clang/Driver/Action.h:242

const llvm::opt::Arg& getInputArg() const

Declared at: clang/include/clang/Driver/Action.h:239

void setId(llvm::StringRef _Id)

Declared at: clang/include/clang/Driver/Action.h:241

Parameters

llvm::StringRef _Id