Added to_string function for cpp_entity_kind for logging

This commit is contained in:
Bartek Kryza
2022-03-07 22:32:46 +01:00
parent bbd6133b20
commit b4d691539c
4 changed files with 46 additions and 9 deletions

View File

@@ -728,10 +728,8 @@ void translation_unit_visitor::process_field(
auto tr_declaration = cppast::to_string(tr);
#ifndef __APPLE__
LOG_DBG("Processing field {} with unreferenced type of kind {}", mv.name(),
tr.kind());
#endif
cx::to_string(tr.kind()));
if (tr.kind() == cppast::cpp_type_kind::builtin_t) {
LOG_DBG("Builtin type found for field: {}", m.name());
@@ -1214,10 +1212,8 @@ bool translation_unit_visitor::find_relationships(const cppast::cpp_type &t_,
const auto fn =
cx::util::full_name(cppast::remove_cv(t_), ctx.entity_index(), false);
#ifndef __APPLE__
LOG_DBG("Finding relationships for type {}, {}, {}", cppast::to_string(t_),
t_.kind(), fn);
#endif
cx::to_string(t_.kind()), fn);
relationship_t relationship_type = relationship_hint;
const auto &t = cppast::remove_cv(cx::util::unreferenced(t_));