Coverage Report

Created: 2022-01-18 06:27

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ClangASTMetadata.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- ClangASTMetadata.cpp ----------------------------------------------===//
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
#include "Plugins/ExpressionParser/Clang/ClangASTMetadata.h"
10
#include "lldb/Utility/Stream.h"
11
12
using namespace lldb_private;
13
14
0
void ClangASTMetadata::Dump(Stream *s) {
15
0
  lldb::user_id_t uid = GetUserID();
16
17
0
  if (uid != LLDB_INVALID_UID) {
18
0
    s->Printf("uid=0x%" PRIx64, uid);
19
0
  }
20
21
0
  uint64_t isa_ptr = GetISAPtr();
22
0
  if (isa_ptr != 0) {
23
0
    s->Printf("isa_ptr=0x%" PRIx64, isa_ptr);
24
0
  }
25
26
0
  const char *obj_ptr_name = GetObjectPtrName();
27
0
  if (obj_ptr_name) {
28
0
    s->Printf("obj_ptr_name=\"%s\" ", obj_ptr_name);
29
0
  }
30
31
0
  if (m_is_dynamic_cxx) {
32
0
    s->Printf("is_dynamic_cxx=%i ", m_is_dynamic_cxx);
33
0
  }
34
0
  s->EOL();
35
0
}