Skip to content

Commit ec821ef

Browse files
authored
Merge pull request #15038 from xedin/rdar-38203776-4.1
[4.1][AST] Disable comment printing while emitting diagnostics
2 parents f452171 + 3855855 commit ec821ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/swift/AST/PrintOptions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ struct PrintOptions {
397397
result.PrintIfConfig = false;
398398
result.ShouldQualifyNestedDeclarations =
399399
QualifyNestedDeclarations::TypesOnly;
400+
result.PrintDocumentationComments = false;
400401
return result;
401402
}
402403

@@ -413,6 +414,7 @@ struct PrintOptions {
413414
result.ElevateDocCommentFromConformance = true;
414415
result.ShouldQualifyNestedDeclarations =
415416
QualifyNestedDeclarations::Always;
417+
result.PrintDocumentationComments = true;
416418
return result;
417419
}
418420

0 commit comments

Comments
 (0)