OmniSciDB  7bf56492aa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UdfClangDriver Class Reference

#include <UDFCompiler.h>

Public Member Functions

 UdfClangDriver (const std::string &)
 
clang::driver::Driver * getClangDriver ()
 

Private Attributes

llvm::IntrusiveRefCntPtr
< clang::DiagnosticOptions > 
diag_options
 
clang::DiagnosticConsumer * diag_client
 
llvm::IntrusiveRefCntPtr
< clang::DiagnosticIDs > 
diag_id
 
clang::DiagnosticsEngine diags
 
std::unique_ptr
< clang::DiagnosticConsumer > 
diag_client_owner
 
clang::driver::Driver the_driver
 

Detailed Description

Definition at line 34 of file UDFCompiler.h.

Constructor & Destructor Documentation

UdfClangDriver::UdfClangDriver ( const std::string &  clang_path)

Definition at line 149 of file UDFCompiler.cpp.

150  : diag_options(new DiagnosticOptions())
151  , diag_client(new TextDiagnosticPrinter(llvm::errs(), diag_options.get()))
152  , diag_id(new clang::DiagnosticIDs())
154  , diag_client_owner(diags.takeClient())
155  , the_driver(clang_path.c_str(), llvm::sys::getDefaultTargetTriple(), diags) {}
llvm::IntrusiveRefCntPtr< clang::DiagnosticIDs > diag_id
Definition: UDFCompiler.h:42
std::unique_ptr< clang::DiagnosticConsumer > diag_client_owner
Definition: UDFCompiler.h:44
clang::driver::Driver the_driver
Definition: UDFCompiler.h:45
clang::DiagnosticsEngine diags
Definition: UDFCompiler.h:43
llvm::IntrusiveRefCntPtr< clang::DiagnosticOptions > diag_options
Definition: UDFCompiler.h:40
clang::DiagnosticConsumer * diag_client
Definition: UDFCompiler.h:41

Member Function Documentation

clang::driver::Driver* UdfClangDriver::getClangDriver ( )
inline

Definition at line 37 of file UDFCompiler.h.

References the_driver.

Referenced by UdfCompiler::compileFromCommandLine(), and UdfCompiler::parseToAst().

37 { return &the_driver; }
clang::driver::Driver the_driver
Definition: UDFCompiler.h:45

+ Here is the caller graph for this function:

Member Data Documentation

clang::DiagnosticConsumer* UdfClangDriver::diag_client
private

Definition at line 41 of file UDFCompiler.h.

std::unique_ptr<clang::DiagnosticConsumer> UdfClangDriver::diag_client_owner
private

Definition at line 44 of file UDFCompiler.h.

llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> UdfClangDriver::diag_id
private

Definition at line 42 of file UDFCompiler.h.

llvm::IntrusiveRefCntPtr<clang::DiagnosticOptions> UdfClangDriver::diag_options
private

Definition at line 40 of file UDFCompiler.h.

clang::DiagnosticsEngine UdfClangDriver::diags
private

Definition at line 43 of file UDFCompiler.h.

clang::driver::Driver UdfClangDriver::the_driver
private

Definition at line 45 of file UDFCompiler.h.

Referenced by getClangDriver().


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