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 cff2199 commit ecf7076Copy full SHA for ecf7076
clang/lib/AST/Decl.cpp
@@ -1738,13 +1738,12 @@ void NamedDecl::printNestedNameSpecifier(raw_ostream &OS,
1738
1739
// Suppress inline namespace if it doesn't make the result ambiguous.
1740
if (Ctx->isInlineNamespace() && NameInScope) {
1741
- bool isRedundant =
1742
- cast<NamespaceDecl>(Ctx)->isRedundantInlineQualifierFor(NameInScope);
1743
if (P.SuppressInlineNamespace ==
1744
PrintingPolicy::SuppressInlineNamespaceMode::All ||
1745
(P.SuppressInlineNamespace ==
1746
PrintingPolicy::SuppressInlineNamespaceMode::Redundant &&
1747
- isRedundant)) {
+ cast<NamespaceDecl>(Ctx)->isRedundantInlineQualifierFor(
+ NameInScope))) {
1748
continue;
1749
}
1750
0 commit comments