Polly 20.0.0git
|
#include "isl_config.h"
#include <assert.h>
#include <iostream>
#include <stdlib.h>
#include <memory>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Support/CommandLine.h>
#include <llvm/Support/ManagedStatic.h>
#include <llvm/TargetParser/Host.h>
#include <clang/AST/ASTContext.h>
#include <clang/AST/ASTConsumer.h>
#include <clang/Basic/Builtins.h>
#include <clang/Basic/FileSystemOptions.h>
#include <clang/Basic/FileManager.h>
#include <clang/Basic/TargetOptions.h>
#include <clang/Basic/TargetInfo.h>
#include <clang/Basic/Version.h>
#include <clang/Driver/Compilation.h>
#include <clang/Driver/Driver.h>
#include <clang/Driver/Tool.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Frontend/CompilerInvocation.h>
#include <clang/Frontend/DiagnosticOptions.h>
#include <clang/Frontend/TextDiagnosticPrinter.h>
#include <clang/Frontend/Utils.h>
#include <clang/Lex/HeaderSearch.h>
#include <clang/Frontend/PreprocessorOptions.h>
#include <clang/Lex/Preprocessor.h>
#include <clang/Parse/ParseAST.h>
#include <clang/Sema/Sema.h>
#include "extract_interface.h"
#include "generator.h"
#include "python.h"
#include "plain_cpp.h"
#include "cpp_conversion.h"
#include "template_cpp.h"
Go to the source code of this file.
Classes | |
struct | MyASTConsumer |
Functions | |
static llvm::cl::opt< string > | InputFilename (llvm::cl::Positional, llvm::cl::Required, llvm::cl::desc("<input file>")) |
static llvm::cl::list< string > | Includes ("I", llvm::cl::desc("Header search path"), llvm::cl::value_desc("path"), llvm::cl::Prefix) |
static llvm::cl::opt< string > | OutputLanguage (llvm::cl::Required, llvm::cl::ValueRequired, "language", llvm::cl::desc("Bindings to generate"), llvm::cl::value_desc("name")) |
bool | has_annotation (Decl *decl, const char *name) |
static bool | is_exported (Decl *decl) |
static CompilerInvocation * | construct_invocation (const char *filename, DiagnosticsEngine &Diags) |
static TextDiagnosticPrinter * | construct_printer (void) |
static TargetInfo * | create_target_info (CompilerInstance *Clang, DiagnosticsEngine &Diags) |
static void | create_diagnostics (CompilerInstance *Clang) |
static void | create_preprocessor (CompilerInstance *Clang) |
void | add_path (HeaderSearchOptions &HSO, string Path) |
static void | create_main_file_id (SourceManager &SM, const FileEntry *file) |
static void | set_lang_defaults (CompilerInstance *Clang) |
static void | set_invocation (CompilerInstance *Clang, CompilerInvocation *invocation) |
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) |
static const FileEntry * | getFile (CompilerInstance *Clang, std::string Filename) |
static void | generate (MyASTConsumer &consumer, SourceManager &SM) |
int | main (int argc, char *argv[]) |
Variables | |
static const char * | ResourceDir |
void add_path | ( | HeaderSearchOptions & | HSO, |
string | Path | ||
) |
Definition at line 398 of file extract_interface.cc.
Referenced by main().
|
static |
Definition at line 292 of file extract_interface.cc.
Referenced by main().
|
static |
Definition at line 309 of file extract_interface.cc.
Referenced by create_diagnostics().
|
static |
Definition at line 358 of file extract_interface.cc.
References construct_printer().
Referenced by main().
|
static |
Definition at line 415 of file extract_interface.cc.
Referenced by main().
|
static |
Definition at line 374 of file extract_interface.cc.
Referenced by main().
|
static |
Definition at line 339 of file extract_interface.cc.
Referenced by main().
|
static |
Definition at line 505 of file extract_interface.cc.
References MyASTConsumer::exported_functions, MyASTConsumer::exported_types, MyASTConsumer::functions, generator::generate(), and OutputLanguage().
Referenced by main().
|
static |
Definition at line 497 of file extract_interface.cc.
References ignore_error().
Referenced by main().
bool has_annotation | ( | Decl * | decl, |
const char * | name | ||
) |
Definition at line 118 of file extract_interface.cc.
References name.
Referenced by generator::gives(), generator::is_constructor(), is_exported(), generator::is_overload(), generator::keeps(), and generator::takes().
|
static |
Definition at line 489 of file extract_interface.cc.
References ignore_error_helper(), and obj.
Referenced by getFile().
|
static |
|
static |
Definition at line 480 of file extract_interface.cc.
References obj.
|
static |
Referenced by main().
|
static |
Referenced by main().
|
static |
Definition at line 137 of file extract_interface.cc.
References has_annotation().
Referenced by MyASTConsumer::HandleTopLevelDecl().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 534 of file extract_interface.cc.
References add_path(), assert, construct_invocation(), create_diagnostics(), create_main_file_id(), create_preprocessor(), create_target_info(), generate(), getFile(), Includes(), InputFilename(), ResourceDir, set_invocation(), and set_lang_defaults().
|
static |
Referenced by generate().
|
static |
Definition at line 456 of file extract_interface.cc.
Referenced by main().
|
static |
Definition at line 438 of file extract_interface.cc.
Referenced by main().
|
static |
Definition at line 111 of file extract_interface.cc.
Referenced by main().