clang  19.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 
16 #include "clang/AST/ASTContext.h"
17 #include "clang/AST/Mangle.h"
18 #include "clang/AST/TypeVisitor.h"
19 #include "clang/Basic/TargetInfo.h"
23 #include "clang/Driver/Driver.h"
24 #include "clang/Driver/Job.h"
25 #include "clang/Driver/Options.h"
26 #include "clang/Driver/Tool.h"
30 
31 #include "clang/Sema/Lookup.h"
32 #include "llvm/IR/Module.h"
33 #include "llvm/Support/Errc.h"
34 #include "llvm/TargetParser/Host.h"
35 
36 namespace clang {
37 IntegerLiteral *IntegerLiteralExpr(ASTContext &C, uint64_t Val);
38 
39 Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, Expr *E);
40 
41 Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, uintptr_t Ptr);
42 
43 Sema::DeclGroupPtrTy CreateDGPtrFrom(Sema &S, Decl *D);
44 
45 NamespaceDecl *LookupNamespace(Sema &S, llvm::StringRef Name,
46  const DeclContext *Within = nullptr);
47 
48 NamedDecl *LookupNamed(Sema &S, llvm::StringRef Name,
49  const DeclContext *Within);
50 
51 std::string GetFullTypeName(ASTContext &Ctx, QualType QT);
52 } // namespace clang
53 
54 #endif
Defines the clang::ASTContext interface.
OpaquePtr< DeclGroupRef > DeclGroupPtrTy
Definition: Sema.h:848
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)
unsigned long uint64_t
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...