clang API Documentation

Public Member Functions
clang::driver::Tool Class Reference

Tool - Information on a specific compilation tool. More...

#include <Tool.h>

Inheritance diagram for clang::driver::Tool:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Tool (const char *Name, const char *ShortName, const ToolChain &TC)
virtual ~Tool ()
const char * getName () const
const char * getShortName () const
const ToolChaingetToolChain () const
virtual bool hasIntegratedAssembler () const
virtual bool hasIntegratedCPP () const =0
virtual bool isLinkJob () const
virtual bool hasGoodDiagnostics () const
 Does this tool have "good" standardized diagnostics, or should the driver add an additional "command failed" diagnostic on failures.
virtual void ConstructJob (Compilation &C, const JobAction &JA, const InputInfo &Output, const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const =0

Detailed Description

Tool - Information on a specific compilation tool.

Definition at line 27 of file Tool.h.


Constructor & Destructor Documentation

Tool::Tool ( const char *  Name,
const char *  ShortName,
const ToolChain TC 
)

Definition at line 14 of file Tool.cpp.

Tool::~Tool ( ) [virtual]

Definition at line 20 of file Tool.cpp.


Member Function Documentation

virtual void clang::driver::Tool::ConstructJob ( Compilation C,
const JobAction JA,
const InputInfo Output,
const InputInfoList Inputs,
const ArgList TCArgs,
const char *  LinkingOutput 
) const [pure virtual]
const char* clang::driver::Tool::getName ( ) const [inline]

Definition at line 44 of file Tool.h.

const char* clang::driver::Tool::getShortName ( ) const [inline]

Definition at line 46 of file Tool.h.

Referenced by clang::driver::Driver::ExecuteCompilation().

const ToolChain& clang::driver::Tool::getToolChain ( ) const [inline]

Definition at line 48 of file Tool.h.

virtual bool clang::driver::Tool::hasGoodDiagnostics ( ) const [inline, virtual]

Does this tool have "good" standardized diagnostics, or should the driver add an additional "command failed" diagnostic on failures.

Reimplemented in clang::driver::tools::darwin::CC1, clang::driver::tools::gcc::Compile, clang::driver::tools::gcc::Precompile, clang::driver::tools::gcc::Preprocess, clang::driver::tools::ClangAs, and clang::driver::tools::Clang.

Definition at line 56 of file Tool.h.

Referenced by clang::driver::Driver::ExecuteCompilation().

virtual bool clang::driver::Tool::hasIntegratedAssembler ( ) const [inline, virtual]

Reimplemented in clang::driver::tools::ClangAs, and clang::driver::tools::Clang.

Definition at line 50 of file Tool.h.

Referenced by SelectToolForJob().

virtual bool clang::driver::Tool::hasIntegratedCPP ( ) const [pure virtual]
virtual bool clang::driver::Tool::isLinkJob ( ) const [inline, virtual]

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