LLDB mainline
PdbAstBuilder.h
Go to the documentation of this file.
1//===-- PdbAstBuilder.h -----------------------------------*- 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#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_PDBASTBUILDER_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_PDBASTBUILDER_H
11
15#include "lldb/lldb-types.h"
16#include "llvm/ADT/StringRef.h"
17
18#include "PdbSymUid.h"
19
20namespace lldb_private {
21class Stream;
22
23namespace npdb {
24
26public:
27 virtual ~PdbAstBuilder() = default;
28
32
33 virtual void EnsureFunction(PdbCompilandSymId func_id) = 0;
34 virtual void EnsureInlinedFunction(PdbCompilandSymId inlinesite_id) = 0;
35 virtual void EnsureBlock(PdbCompilandSymId block_id) = 0;
36 virtual void EnsureVariable(PdbCompilandSymId scope_id,
37 PdbCompilandSymId var_id) = 0;
38 virtual void EnsureVariable(PdbGlobalSymId var_id) = 0;
39
42 virtual bool CompleteType(CompilerType ct) = 0;
43
44 virtual void ParseDeclsForContext(CompilerDeclContext context) = 0;
45
47 llvm::StringRef name) = 0;
48
49 virtual void Dump(Stream &stream, llvm::StringRef filter,
50 bool show_color) = 0;
51};
52
53} // namespace npdb
54} // namespace lldb_private
55
56#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_NATIVEPDB_PDBASTBUILDER_H
Represents a generic declaration context in a program.
Represents a generic declaration such as a function declaration.
Generic representation of a type in a programming language.
A stream class that can stream formatted output to a file.
Definition Stream.h:28
virtual CompilerType GetOrCreateTypedefType(PdbGlobalSymId id)=0
virtual void Dump(Stream &stream, llvm::StringRef filter, bool show_color)=0
virtual CompilerDeclContext FindNamespaceDecl(CompilerDeclContext parent_ctx, llvm::StringRef name)=0
virtual bool CompleteType(CompilerType ct)=0
virtual void EnsureVariable(PdbGlobalSymId var_id)=0
virtual void EnsureBlock(PdbCompilandSymId block_id)=0
virtual CompilerDeclContext GetParentDeclContext(PdbSymUid uid)=0
virtual CompilerType GetOrCreateType(PdbTypeSymId type)=0
virtual CompilerDecl GetOrCreateDeclForUid(PdbSymUid uid)=0
virtual void EnsureInlinedFunction(PdbCompilandSymId inlinesite_id)=0
virtual void EnsureFunction(PdbCompilandSymId func_id)=0
virtual void ParseDeclsForContext(CompilerDeclContext context)=0
virtual CompilerDeclContext GetOrCreateDeclContextForUid(PdbSymUid uid)=0
virtual void EnsureVariable(PdbCompilandSymId scope_id, PdbCompilandSymId var_id)=0
A class that represents a running process on the host machine.