clang  14.0.0git
PartialTranslationUnit.h
Go to the documentation of this file.
1 //===--- Transaction.h - Incremental Compilation and Execution---*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines utilities tracking the incrementally processed pieces of
10 // code.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_CLANG_INTERPRETER_PARTIALTRANSLATIONUNIT_H
15 #define LLVM_CLANG_INTERPRETER_PARTIALTRANSLATIONUNIT_H
16 
17 #include <memory>
18 
19 namespace llvm {
20 class Module;
21 }
22 
23 namespace clang {
24 
25 class TranslationUnitDecl;
26 
27 /// The class keeps track of various objects created as part of processing
28 /// incremental inputs.
31 
32  /// The llvm IR produced for the input.
33  std::unique_ptr<llvm::Module> TheModule;
34 };
35 } // namespace clang
36 
37 #endif // LLVM_CLANG_INTERPRETER_PARTIALTRANSLATIONUNIT_H
llvm
Definition: Dominators.h:30
clang::PartialTranslationUnit::TheModule
std::unique_ptr< llvm::Module > TheModule
The llvm IR produced for the input.
Definition: PartialTranslationUnit.h:33
clang::TranslationUnitDecl
The top declaration context.
Definition: Decl.h:82
clang::index::SymbolKind::Module
@ Module
clang
Definition: CalledOnceCheck.h:17
clang::PartialTranslationUnit
The class keeps track of various objects created as part of processing incremental inputs.
Definition: PartialTranslationUnit.h:29
clang::PartialTranslationUnit::TUPart
TranslationUnitDecl * TUPart
Definition: PartialTranslationUnit.h:30