clang API Documentation
JobList - A sequence of jobs to perform. More...
#include <Job.h>


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_type & | getJobs () 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) |
| typedef llvm::pointee_iterator<list_type::const_iterator> clang::driver::JobList::const_iterator |
| typedef llvm::pointee_iterator<list_type::iterator> clang::driver::JobList::iterator |
| typedef SmallVector<std::unique_ptr<Job>, 4> clang::driver::JobList::list_type |
| typedef list_type::size_type clang::driver::JobList::size_type |
| JobList::JobList | ( | ) |
| virtual clang::driver::JobList::~JobList | ( | ) | [inline, virtual] |
| 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().
| iterator clang::driver::JobList::begin | ( | ) | [inline] |
Definition at line 192 of file Job.h.
Referenced by clang::createInvocationFromCommandLine(), and clang::tooling::getCC1Arguments().
| const_iterator clang::driver::JobList::begin | ( | ) | const [inline] |
| 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().
| iterator clang::driver::JobList::end | ( | ) | [inline] |
| const_iterator clang::driver::JobList::end | ( | ) | const [inline] |
| 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.
| 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().
| size_type clang::driver::JobList::size | ( | ) | const [inline] |
Definition at line 191 of file Job.h.
Referenced by clang::createInvocationFromCommandLine(), and clang::tooling::getCC1Arguments().