Skip to content

Commit

Permalink
populating Record maintains base classes
Browse files Browse the repository at this point in the history
#fix
  • Loading branch information
alandefreitas committed Jan 2, 2025
1 parent 78a28c3 commit 56f175a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions example/external/url/mrdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ see-below:
- 'boost::urls::grammar::see_below'
- 'boost::urls::string_token::see_below'

# Metadata Extraction
private-bases: false

# Generator
generate: adoc
base-url: https://www.github.com/boostorg/url/blob/develop/include/ # boost/url/url_view.hpp
Expand Down
4 changes: 2 additions & 2 deletions src/lib/AST/ASTVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -896,14 +896,14 @@ populate(

// Extract direct bases. D->bases() will get the bases
// from whichever declaration is the definition (if any)
if(D->hasDefinition())
if(D->hasDefinition() && I.Bases.empty())
{
for (const CXXBaseSpecifier& B : D->bases())
{
AccessSpecifier const access = B.getAccessSpecifier();

if (!config_->privateBases &&
access == AccessSpecifier::AS_private)
access == AS_private)
{
continue;
}
Expand Down

0 comments on commit 56f175a

Please sign in to comment.