Skip to content

Commit d9c3719

Browse files
committed
ASTPrinter: explicitly set SkipUnderscoredKeywords to false when printing module interface.
1 parent 2f32a12 commit d9c3719

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ PrintOptions PrintOptions::printParseableInterfaceFile() {
106106
result.CollapseSingleGetterProperty = false;
107107
result.VarInitializers = true;
108108

109+
// We should print __consuming, __owned, etc for the module interface file.
110+
result.SkipUnderscoredKeywords = false;
111+
109112
result.FunctionBody = [](const ValueDecl *decl, ASTPrinter &printer) {
110113
auto AFD = dyn_cast<AbstractFunctionDecl>(decl);
111114
if (!AFD || !AFD->hasInlinableBodyText()) return;

0 commit comments

Comments
 (0)