clang 20.0.0git
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
17#include "clang/AST/Mangle.h"
22#include "clang/Driver/Driver.h"
23#include "clang/Driver/Job.h"
25#include "clang/Driver/Tool.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
35namespace clang {
36IntegerLiteral *IntegerLiteralExpr(ASTContext &C, uint64_t Val);
37
38Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, Expr *E);
39
40Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, uintptr_t Ptr);
41
43
44NamespaceDecl *LookupNamespace(Sema &S, llvm::StringRef Name,
45 const DeclContext *Within = nullptr);
46
47NamedDecl *LookupNamed(Sema &S, llvm::StringRef Name,
48 const DeclContext *Within);
49
50std::string GetFullTypeName(ASTContext &Ctx, QualType QT);
51} // namespace clang
52
53#endif
Defines the clang::ASTContext interface.
const Decl * D
Expr * E
OpaquePtr< DeclGroupRef > DeclGroupPtrTy
Definition: Sema.h:953
Defines the clang::TargetInfo interface.
The JSON file list parser is used to communicate input to InstallAPI.
NamedDecl * LookupNamed(Sema &S, llvm::StringRef Name, const DeclContext *Within)
Sema::DeclGroupPtrTy CreateDGPtrFrom(Sema &S, Decl *D)
std::string GetFullTypeName(ASTContext &Ctx, QualType QT)
IntegerLiteral * IntegerLiteralExpr(ASTContext &C, uint64_t Val)
NamespaceDecl * LookupNamespace(Sema &S, llvm::StringRef Name, const DeclContext *Within)
Expr * CStyleCastPtrExpr(Sema &S, QualType Ty, Expr *E)
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...