clang  6.0.0svn
Public Types | Public Member Functions | List of all members
clang::driver::JobList Class Reference

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

#include "clang/Driver/Job.h"

Public Types

typedef SmallVector< std::unique_ptr< Command >, 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

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

Detailed Description

JobList - A sequence of jobs to perform.

Definition at line 166 of file Job.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 171 of file Job.h.

◆ iterator

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

Definition at line 170 of file Job.h.

◆ list_type

Definition at line 168 of file Job.h.

◆ size_type

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

Definition at line 169 of file Job.h.

Member Function Documentation

◆ addJob()

void clang::driver::JobList::addJob ( std::unique_ptr< Command J)
inline

Add a job to the list (taking ownership).

Definition at line 181 of file Job.h.

References clang::CodeGen::clear().

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

◆ begin() [1/2]

iterator clang::driver::JobList::begin ( )
inline

◆ begin() [2/2]

const_iterator clang::driver::JobList::begin ( ) const
inline

Definition at line 191 of file Job.h.

◆ clear()

void JobList::clear ( )

Clear the job list.

Definition at line 430 of file Job.cpp.

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

◆ empty()

bool clang::driver::JobList::empty ( ) const
inline

Definition at line 188 of file Job.h.

Referenced by shouldLinkerNotDedup().

◆ end() [1/2]

iterator clang::driver::JobList::end ( )
inline

Definition at line 192 of file Job.h.

◆ end() [2/2]

const_iterator clang::driver::JobList::end ( ) const
inline

Definition at line 193 of file Job.h.

◆ getJobs()

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

Definition at line 186 of file Job.h.

Referenced by stripPositionalArgs().

◆ Print()

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

◆ size()

size_type clang::driver::JobList::size ( ) const
inline

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