clang
20.0.0git
lib
Interpreter
InterpreterUtils.h
Go to the documentation of this file.
1
//===--- InterpreterUtils.h - Incremental Utils --------*- 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 implements some common utils used in the incremental library.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_CLANG_INTERPRETER_UTILS_H
14
#define LLVM_CLANG_INTERPRETER_UTILS_H
15
16
#include "
clang/AST/ASTContext.h
"
17
#include "
clang/AST/Mangle.h
"
18
#include "
clang/AST/TypeVisitor.h
"
19
#include "
clang/Basic/TargetInfo.h
"
20
#include "
clang/CodeGen/ModuleBuilder.h
"
21
#include "
clang/Driver/Compilation.h
"
22
#include "
clang/Driver/Driver.h
"
23
#include "
clang/Driver/Job.h
"
24
#include "
clang/Driver/Options.h
"
25
#include "
clang/Driver/Tool.h
"
26
#include "
clang/Frontend/CompilerInstance.h
"
27
#include "
clang/Frontend/TextDiagnosticBuffer.h
"
28
#include "
clang/Lex/PreprocessorOptions.h
"
29
30
#include "
clang/Sema/Lookup.h
"
31
#include "llvm/IR/Module.h"
32
#include "llvm/Support/Errc.h"
33
#include "llvm/TargetParser/Host.h"
34
35
namespace
clang
{
36
IntegerLiteral *
IntegerLiteralExpr
(ASTContext &
C
, uint64_t Val);
37
38
Expr *
CStyleCastPtrExpr
(Sema &S, QualType Ty, Expr *
E
);
39
40
Expr *
CStyleCastPtrExpr
(Sema &S, QualType Ty,
uintptr_t
Ptr);
41
42
Sema::DeclGroupPtrTy
CreateDGPtrFrom
(Sema &S, Decl *
D
);
43
44
NamespaceDecl *
LookupNamespace
(Sema &S, llvm::StringRef Name,
45
const
DeclContext *Within =
nullptr
);
46
47
NamedDecl *
LookupNamed
(Sema &S, llvm::StringRef Name,
48
const
DeclContext *Within);
49
50
std::string
GetFullTypeName
(ASTContext &Ctx, QualType QT);
51
}
// namespace clang
52
53
#endif
ASTContext.h
Defines the clang::ASTContext interface.
D
const Decl * D
Definition:
CheckExprLifetime.cpp:200
E
Expr * E
Definition:
CheckExprLifetime.cpp:198
Compilation.h
CompilerInstance.h
Driver.h
Job.h
Mangle.h
ModuleBuilder.h
Options.h
PreprocessorOptions.h
Lookup.h
TextDiagnosticBuffer.h
Tool.h
TypeVisitor.h
clang::Sema::DeclGroupPtrTy
OpaquePtr< DeclGroupRef > DeclGroupPtrTy
Definition:
Sema.h:953
TargetInfo.h
Defines the clang::TargetInfo interface.
clang
The JSON file list parser is used to communicate input to InstallAPI.
Definition:
CalledOnceCheck.h:17
clang::LookupNamed
NamedDecl * LookupNamed(Sema &S, llvm::StringRef Name, const DeclContext *Within)
Definition:
InterpreterUtils.cpp:71
clang::CreateDGPtrFrom
Sema::DeclGroupPtrTy CreateDGPtrFrom(Sema &S, Decl *D)
Definition:
InterpreterUtils.cpp:39
clang::LinkageSpecLanguageIDs::C
@ C
clang::GetFullTypeName
std::string GetFullTypeName(ASTContext &Ctx, QualType QT)
Definition:
InterpreterUtils.cpp:105
clang::IntegerLiteralExpr
IntegerLiteral * IntegerLiteralExpr(ASTContext &C, uint64_t Val)
Definition:
InterpreterUtils.cpp:17
clang::LookupNamespace
NamespaceDecl * LookupNamespace(Sema &S, llvm::StringRef Name, const DeclContext *Within)
Definition:
InterpreterUtils.cpp:46
clang::CStyleCastPtrExpr
Expr * CStyleCastPtrExpr(Sema &S, QualType Ty, Expr *E)
Definition:
InterpreterUtils.cpp:22
uintptr_t
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...
Definition:
opencl-c-base.h:164
Generated on Tue Dec 17 2024 13:30:10 for clang by
1.9.6