1 //===-- ASTDumper.h ---------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_ASTDumper_h_
10 #define liblldb_ASTDumper_h_
12 #include "clang/AST/DeclVisitor.h"
13 #include "clang/AST/TypeVisitor.h"
15 #include "lldb/Utility/Stream.h"
16 #include "llvm/ADT/DenseSet.h"
18 namespace lldb_private {
22 ASTDumper(clang::Decl *decl);
23 ASTDumper(clang::DeclContext *decl_ctx);
24 ASTDumper(const clang::Type *type);
25 ASTDumper(clang::QualType type);
26 ASTDumper(lldb::opaque_compiler_type_t type);
27 ASTDumper(const CompilerType &compiler_type);
29 const char *GetCString();
31 void ToLog(Log *log, const char *prefix);
32 void ToStream(lldb::StreamSP &stream);
38 } // namespace lldb_private