Update Doxygen docs for class_diagram namespace
This commit is contained in:
@@ -1222,18 +1222,15 @@ translation_unit_visitor::create_class_model(clang::CXXRecordDecl *cls)
|
||||
config().using_namespace())};
|
||||
auto &c = *c_ptr;
|
||||
|
||||
// TODO: refactor to method get_qualified_name()
|
||||
auto qualified_name =
|
||||
cls->getQualifiedNameAsString(); // common::get_qualified_name(*cls);
|
||||
auto qualified_name = cls->getQualifiedNameAsString();
|
||||
|
||||
if (!cls->isLambda())
|
||||
if (!diagram().should_include(qualified_name))
|
||||
if (!should_include(cls))
|
||||
return {};
|
||||
|
||||
auto ns = common::get_tag_namespace(*cls);
|
||||
|
||||
if (cls->isLambda() &&
|
||||
!diagram().should_include(ns.to_string() + "::lambda"))
|
||||
if (cls->isLambda() && !diagram().should_include(ns | "lambda"))
|
||||
return {};
|
||||
|
||||
const auto *parent = cls->getParent();
|
||||
@@ -2202,7 +2199,8 @@ bool translation_unit_visitor::should_include(const clang::TagDecl *decl) const
|
||||
|
||||
const auto decl_file = decl->getLocation().printToString(source_manager());
|
||||
|
||||
return diagram().should_include(decl->getQualifiedNameAsString()) &&
|
||||
return diagram().should_include(
|
||||
namespace_{decl->getQualifiedNameAsString()}) &&
|
||||
diagram().should_include(common::model::source_file{decl_file});
|
||||
}
|
||||
|
||||
@@ -2255,7 +2253,8 @@ bool translation_unit_visitor::should_include(
|
||||
{
|
||||
const auto decl_file = decl->getLocation().printToString(source_manager());
|
||||
|
||||
return diagram().should_include(decl->getQualifiedNameAsString()) &&
|
||||
return diagram().should_include(
|
||||
namespace_{decl->getQualifiedNameAsString()}) &&
|
||||
diagram().should_include(common::model::source_file{decl_file});
|
||||
}
|
||||
|
||||
@@ -2273,7 +2272,8 @@ bool translation_unit_visitor::should_include(
|
||||
|
||||
const auto decl_file = decl->getLocation().printToString(source_manager());
|
||||
|
||||
return diagram().should_include(decl->getQualifiedNameAsString()) &&
|
||||
return diagram().should_include(
|
||||
namespace_{decl->getQualifiedNameAsString()}) &&
|
||||
diagram().should_include(common::model::source_file{decl_file});
|
||||
}
|
||||
} // namespace clanguml::sequence_diagram::visitor
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
namespace clanguml::sequence_diagram::visitor {
|
||||
|
||||
using common::model::namespace_;
|
||||
using common::model::template_parameter;
|
||||
|
||||
std::string to_string(const clang::FunctionTemplateDecl *decl);
|
||||
|
||||
Reference in New Issue
Block a user