Polly 23.0.0git
isl::clang Namespace Reference

Classes

struct  ClangAPI
struct  Wrap

Functions

static Driver * construct_driver (const char *binary, DiagnosticsEngine &Diags)
static void create_from_args (CompilerInvocation &invocation, const ArgStringList *args, DiagnosticsEngine &Diags)
static void set_sysroot (ArgStringList &args)
static void construct_invocation (CompilerInstance *Clang, const char *filename, DiagnosticsEngine &Diags)
static TargetInfo * create_target_info (CompilerInstance *Clang, DiagnosticsEngine &Diags)
static void create_diagnostics (CompilerInstance *Clang)
static void create_preprocessor (CompilerInstance *Clang)
static void add_path (HeaderSearchOptions &HSO, std::string Path)
template<typename T>
static void create_main_file_id (SourceManager &SM, const T &file)
static void set_lang_defaults (CompilerInstance *Clang)
template<class T>
static const FileEntry * ignore_error_helper (const T obj, int, int[1][sizeof(obj.getError())])
template<class T>
static const FileEntry * ignore_error_helper (const T obj, long, void *)
template<class T>
static const FileEntry * ignore_error (const T obj)
 ISL_VALID_EXPR_FOR_TEMPLATE_ARG (HasGetFileRef, std::declval< U >().getFileRef(std::declval< const std::string & >())) template< typename T
template<typename T, typename std::enable_if<!TakesDiagnosticOptionsRef< T >::value, bool >::type = true>
static DiagnosticOptions * diag_opts_type ()

Variables

static const char * ResourceDir = ISL_CLANG_RESOURCE_DIR

Function Documentation

◆ add_path()

void isl::clang::add_path ( HeaderSearchOptions & HSO,
std::string Path )
static

Definition at line 181 of file clang_wrap.h.

Referenced by Extractor::add_paths().

◆ construct_driver()

Driver * isl::clang::construct_driver ( const char * binary,
DiagnosticsEngine & Diags )
static

Definition at line 47 of file clang_wrap.h.

Referenced by construct_invocation().

◆ construct_invocation()

void isl::clang::construct_invocation ( CompilerInstance * Clang,
const char * filename,
DiagnosticsEngine & Diags )
static

◆ create_diagnostics()

void isl::clang::create_diagnostics ( CompilerInstance * Clang)
static

Definition at line 165 of file clang_wrap.h.

Referenced by isl::clang::Wrap::invoke().

◆ create_from_args()

void isl::clang::create_from_args ( CompilerInvocation & invocation,
const ArgStringList * args,
DiagnosticsEngine & Diags )
static

Definition at line 77 of file clang_wrap.h.

Referenced by construct_invocation().

◆ create_main_file_id()

template<typename T>
void isl::clang::create_main_file_id ( SourceManager & SM,
const T & file )
static

Definition at line 187 of file clang_wrap.h.

Referenced by isl::clang::Wrap::invoke().

◆ create_preprocessor()

void isl::clang::create_preprocessor ( CompilerInstance * Clang)
static

Definition at line 172 of file clang_wrap.h.

Referenced by isl::clang::Wrap::invoke().

◆ create_target_info()

TargetInfo * isl::clang::create_target_info ( CompilerInstance * Clang,
DiagnosticsEngine & Diags )
static

Definition at line 146 of file clang_wrap.h.

Referenced by isl::clang::Wrap::invoke().

◆ diag_opts_type()

template<typename T, typename std::enable_if<!TakesDiagnosticOptionsRef< T >::value, bool >::type = true>
DiagnosticOptions * isl::clang::diag_opts_type ( )
static

References diag_opts_type().

Referenced by diag_opts_type().

◆ ignore_error()

template<class T>
const FileEntry * isl::clang::ignore_error ( const T obj)
static

Definition at line 242 of file clang_wrap.h.

References ignore_error_helper(), and obj.

◆ ignore_error_helper() [1/2]

template<class T>
const FileEntry * isl::clang::ignore_error_helper ( const T obj,
int ,
int [1][sizeof(obj.getError())] )
static

Definition at line 222 of file clang_wrap.h.

References obj.

Referenced by ignore_error().

◆ ignore_error_helper() [2/2]

template<class T>
const FileEntry * isl::clang::ignore_error_helper ( const T obj,
long ,
void *  )
static

Definition at line 233 of file clang_wrap.h.

References obj.

◆ ISL_VALID_EXPR_FOR_TEMPLATE_ARG()

isl::clang::ISL_VALID_EXPR_FOR_TEMPLATE_ARG ( HasGetFileRef ,
std::declval< U > ).getFileRef(std::declval< const std::string & >() )

References obj, and type.

◆ set_lang_defaults()

void isl::clang::set_lang_defaults ( CompilerInstance * Clang)
static

Definition at line 209 of file clang_wrap.h.

Referenced by isl::clang::Wrap::invoke().

◆ set_sysroot()

void isl::clang::set_sysroot ( ArgStringList & args)
static

Definition at line 102 of file clang_wrap.h.

Referenced by construct_invocation().

Variable Documentation

◆ ResourceDir

const char* isl::clang::ResourceDir = ISL_CLANG_RESOURCE_DIR
static

Definition at line 45 of file clang_wrap.h.

Referenced by isl::clang::Wrap::invoke().