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.
2 parents 289f7a5 + 35bfbb3 commit ecdcb51Copy full SHA for ecdcb51
clang/lib/AST/QualTypeNames.cpp
@@ -270,8 +270,8 @@ static NestedNameSpecifier *createNestedNameSpecifierForScopeOf(
270
assert(Decl);
271
272
const DeclContext *DC = Decl->getDeclContext()->getRedeclContext();
273
- const auto *Outer = dyn_cast_or_null<NamedDecl>(DC);
274
- const auto *OuterNS = dyn_cast_or_null<NamespaceDecl>(DC);
+ const auto *Outer = dyn_cast<NamedDecl>(DC);
+ const auto *OuterNS = dyn_cast<NamespaceDecl>(DC);
275
if (Outer && !(OuterNS && OuterNS->isAnonymousNamespace())) {
276
if (const auto *CxxDecl = dyn_cast<CXXRecordDecl>(DC)) {
277
if (ClassTemplateDecl *ClassTempl =
0 commit comments