We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cacfeaa commit 9c2f62cCopy full SHA for 9c2f62c
src/CppParser/Parser.cpp
@@ -3811,8 +3811,7 @@ Declaration* Parser::WalkDeclaration(const clang::Decl* D)
3811
3812
for (auto D : ND->decls())
3813
{
3814
- auto ND = dyn_cast<NamedDecl>(D);
3815
- if (IsSupported(ND))
+ if (!isa<NamedDecl>(D) || IsSupported(cast<NamedDecl>(D)))
3816
Decl = WalkDeclarationDef(D);
3817
}
3818
tests/Common/Common.h
@@ -1412,3 +1412,9 @@ struct TemplateWithUsingTemplateMember
1412
UsingTemplatePtr<TemplateWithUsingTemplateMember> _Ref;
1413
};
1414
1415
+namespace hasUnnamedDecl
1416
+{
1417
+ extern "C"
1418
+ {
1419
+ }
1420
+}
0 commit comments