clang  14.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::Interpreter Class Reference

Provides top-level interfaces for incremental compilation and execution. More...

#include "clang/Interpreter/Interpreter.h"

Public Member Functions

 ~Interpreter ()
const CompilerInstancegetCompilerInstance () const
llvm::Expected< PartialTranslationUnit & > Parse (llvm::StringRef Code)
llvm::Error Execute (PartialTranslationUnit &T)
llvm::Error ParseAndExecute (llvm::StringRef Code)

Static Public Member Functions

static llvm::Expected< std::unique_ptr< Interpreter > > create (std::unique_ptr< CompilerInstance > CI)

Detailed Description

Provides top-level interfaces for incremental compilation and execution.

Definition at line 46 of file Interpreter.h.

Constructor & Destructor Documentation

◆ ~Interpreter()

Interpreter::~Interpreter ( )

Definition at line 184 of file Interpreter.cpp.

Member Function Documentation

◆ create()

llvm::Expected< std::unique_ptr< Interpreter > > Interpreter::create ( std::unique_ptr< CompilerInstance CI)

Definition at line 187 of file Interpreter.cpp.

◆ Execute()

llvm::Error Interpreter::Execute ( PartialTranslationUnit T)

◆ getCompilerInstance()

const CompilerInstance * Interpreter::getCompilerInstance ( ) const

Definition at line 196 of file Interpreter.cpp.

Referenced by Execute().

◆ Parse()

llvm::Expected< PartialTranslationUnit & > Interpreter::Parse ( llvm::StringRef  Code)

Definition at line 201 of file Interpreter.cpp.

Referenced by ParseAndExecute().

◆ ParseAndExecute()

llvm::Error clang::Interpreter::ParseAndExecute ( llvm::StringRef  Code)

Definition at line 60 of file Interpreter.h.

References Execute(), and Parse().

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