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
20#include <string>
21
22namespace lldb_private {
23class Stream;
24
25namespace npdb {
26
28public:
29 virtual ~PdbAstBuilder() = default;
30
34
35 virtual void EnsureFunction(PdbCompilandSymId func_id) = 0;
36 virtual void EnsureInlinedFunction(PdbCompilandSymId inlinesite_id) = 0;
37 virtual void EnsureBlock(PdbCompilandSymId block_id) = 0;
38 virtual void EnsureVariable(PdbCompilandSymId scope_id,
39 PdbCompilandSymId var_id) = 0;
40 virtual void EnsureVariable(PdbGlobalSymId var_id) = 0;
41
44 virtual bool CompleteType(CompilerType ct) = 0;
45
46 virtual void ParseDeclsForContext(CompilerDeclContext context) = 0;
47
49 llvm::StringRef name) = 0;
50
51 /// Convert a CodeView qualified name into the spelling used by the
52 /// language of this AST (e.g. anonymous namespaces).
53 virtual std::string GetQualifiedName(llvm::StringRef name) = 0;
54
55 virtual void Dump(Stream &stream, llvm::StringRef filter,
56 bool show_color) = 0;
57};
58
59} // namespace npdb
60} // namespace lldb_private
61
62#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 std::string GetQualifiedName(llvm::StringRef name)=0
Convert a CodeView qualified name into the spelling used by the language of this AST (e....
virtual void EnsureVariable(PdbCompilandSymId scope_id, PdbCompilandSymId var_id)=0
A class that represents a running process on the host machine.