Add a way to dump a ClangASTType to stdout for debugging purposes.
llvm-svn: 178071
This commit is contained in:
parent
ba752b9bfd
commit
365fe21947
|
@ -203,6 +203,9 @@ public:
|
|||
lldb::offset_t data_offset,
|
||||
size_t data_byte_size);
|
||||
|
||||
void
|
||||
DumpTypeDescription (); // Dump to stdout
|
||||
|
||||
void
|
||||
DumpTypeDescription (Stream *s);
|
||||
|
||||
|
|
|
@ -1309,6 +1309,13 @@ ClangASTType::IsConst (lldb::clang_type_t clang_type)
|
|||
return qual_type.isConstQualified();
|
||||
}
|
||||
|
||||
void
|
||||
ClangASTType::DumpTypeDescription ()
|
||||
{
|
||||
StreamFile s (stdout, false);
|
||||
DumpTypeDescription (&s);
|
||||
}
|
||||
|
||||
void
|
||||
ClangASTType::DumpTypeDescription (Stream *s)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue