Path: blob/main/contrib/llvm-project/clang/lib/Interpreter/InterpreterUtils.h
35233 views
//===--- InterpreterUtils.h - Incremental Utils --------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file implements some common utils used in the incremental library.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_CLANG_INTERPRETER_UTILS_H13#define LLVM_CLANG_INTERPRETER_UTILS_H1415#include "clang/AST/ASTContext.h"16#include "clang/AST/Mangle.h"17#include "clang/AST/TypeVisitor.h"18#include "clang/Basic/TargetInfo.h"19#include "clang/CodeGen/ModuleBuilder.h"20#include "clang/CodeGen/ObjectFilePCHContainerOperations.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"2930#include "clang/Sema/Lookup.h"31#include "llvm/IR/Module.h"32#include "llvm/Support/Errc.h"33#include "llvm/TargetParser/Host.h"3435namespace clang {36IntegerLiteral *IntegerLiteralExpr(ASTContext &C, uint64_t Val);3738Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, Expr *E);3940Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, uintptr_t Ptr);4142Sema::DeclGroupPtrTy CreateDGPtrFrom(Sema &S, Decl *D);4344NamespaceDecl *LookupNamespace(Sema &S, llvm::StringRef Name,45const DeclContext *Within = nullptr);4647NamedDecl *LookupNamed(Sema &S, llvm::StringRef Name,48const DeclContext *Within);4950std::string GetFullTypeName(ASTContext &Ctx, QualType QT);51} // namespace clang5253#endif545556