File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -438,11 +438,13 @@ void ClangSyntaxPrinter::printKnownCType(
438
438
439
439
void ClangSyntaxPrinter::printSwiftMangledNameForDebugger (
440
440
const NominalTypeDecl *typeDecl) {
441
- auto mangled_name =
442
- mangler.mangleTypeForDebugger (typeDecl->getDeclaredInterfaceType (), nullptr );
443
- if (!mangled_name.empty ()) {
444
- os << " typedef char " << mangled_name << " ;\n " ;
445
- os << " static inline constexpr " << mangled_name
446
- << " $__swift_mangled_name = 0;\n " ;
447
- }
441
+ printIgnoredCxx17ExtensionDiagnosticBlock ([&]() {
442
+ auto mangled_name = mangler.mangleTypeForDebugger (
443
+ typeDecl->getDeclaredInterfaceType (), nullptr );
444
+ if (!mangled_name.empty ()) {
445
+ os << " typedef char " << mangled_name << " ;\n " ;
446
+ os << " static inline constexpr " << mangled_name
447
+ << " $__swift_mangled_name = 0;\n " ;
448
+ }
449
+ });
448
450
}
You can’t perform that action at this time.
0 commit comments