Skip to content

Commit

Permalink
(Issue #16) Skip typedef'd anon tags while mapping namespaces or Clan…
Browse files Browse the repository at this point in the history
…g modules.
  • Loading branch information
Syniurge committed May 18, 2015
1 parent f1c0936 commit 1dca571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmd2/cpp/cppmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ static clang::Module *tryFindClangModule(Loc loc, Identifiers *packages, Identif
static inline bool isTopLevelInNamespaceModule (const clang::Decl *D)
{
auto Tag = dyn_cast<clang::TagDecl>(D);
if (Tag && Tag->getIdentifier())
if (Tag && (Tag->getIdentifier() || Tag->getTypedefNameForAnonDecl()))
return false; // anonymous tags are added as well

auto Func = dyn_cast<clang::FunctionDecl>(D);
Expand Down

0 comments on commit 1dca571

Please sign in to comment.