clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::driver::JobList Class Reference

JobList - A sequence of jobs to perform. More...

#include <Job.h>

Inheritance diagram for clang::driver::JobList:
Inheritance graph
[legend]
Collaboration diagram for clang::driver::JobList:
Collaboration graph
[legend]

List of all members.

Public Types

typedef SmallVector
< std::unique_ptr< Job >, 4 > 
list_type
typedef list_type::size_type size_type
typedef llvm::pointee_iterator
< list_type::iterator > 
iterator
typedef llvm::pointee_iterator
< list_type::const_iterator > 
const_iterator

Public Member Functions

 JobList ()
virtual ~JobList ()
void Print (llvm::raw_ostream &OS, const char *Terminator, bool Quote, CrashReportInfo *CrashInfo=nullptr) const override
void addJob (std::unique_ptr< Job > J)
 Add a job to the list (taking ownership).
void clear ()
 Clear the job list.
const list_typegetJobs () const
size_type size () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const

Static Public Member Functions

static bool classof (const Job *J)

Detailed Description

JobList - A sequence of jobs to perform.

Definition at line 166 of file Job.h.


Member Typedef Documentation

typedef llvm::pointee_iterator<list_type::const_iterator> clang::driver::JobList::const_iterator

Definition at line 171 of file Job.h.

typedef llvm::pointee_iterator<list_type::iterator> clang::driver::JobList::iterator

Definition at line 170 of file Job.h.

typedef SmallVector<std::unique_ptr<Job>, 4> clang::driver::JobList::list_type

Definition at line 168 of file Job.h.

typedef list_type::size_type clang::driver::JobList::size_type

Definition at line 169 of file Job.h.


Constructor & Destructor Documentation

Definition at line 296 of file Job.cpp.

virtual clang::driver::JobList::~JobList ( ) [inline, virtual]

Definition at line 178 of file Job.h.


Member Function Documentation

void clang::driver::JobList::addJob ( std::unique_ptr< Job J) [inline]

Add a job to the list (taking ownership).

Definition at line 184 of file Job.h.

Referenced by clang::driver::Compilation::addCommand().

Definition at line 193 of file Job.h.

static bool clang::driver::JobList::classof ( const Job J) [inline, static]

Definition at line 197 of file Job.h.

References clang::driver::Job::getKind(), and clang::driver::Job::JobListClass.

void JobList::clear ( )

Clear the job list.

Definition at line 304 of file Job.cpp.

Referenced by clang::driver::Compilation::initCompilationForDiagnostics().

Definition at line 194 of file Job.h.

Definition at line 195 of file Job.h.

const list_type& clang::driver::JobList::getJobs ( ) const [inline]

Definition at line 189 of file Job.h.

Referenced by clang::tooling::stripPositionalArgs().

void JobList::Print ( llvm::raw_ostream &  OS,
const char *  Terminator,
bool  Quote,
CrashReportInfo CrashInfo = nullptr 
) const [override, virtual]

Print - Print this Job in -### format.

Parameters:
OS- The stream to print on.
Terminator- A string to print at the end of the line.
Quote- Should separate arguments be quoted.
CrashInfo- Details for inclusion in a crash report.

Implements clang::driver::Job.

Definition at line 298 of file Job.cpp.

References clang::driver::Job::Print().

Referenced by clang::createInvocationFromCommandLine(), clang::driver::Driver::ExecuteCompilation(), and clang::tooling::getCC1Arguments().


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