-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.1] doc-serialization: exclude non-public decls when serializing module group info. #24047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…roup info. This reduces the size of x86_64.swiftdoc about 10%. rdar://48689311
@swift-ci please test |
Build failed |
@swift-ci Please clean test Linux platform |
@@ -4,7 +4,16 @@ | |||
// RUN: not %target-swift-frontend -emit-module %s -module-name HasArray -o %t -module-cache-path %t/mcp -group-info-path %S/Inputs/corrupted_group_info.json -emit-module-doc &> %t/result.txt | |||
// RUN: %FileCheck %s -check-prefix=CORRUPTED < %t/result.txt | |||
|
|||
public protocol P {} | |||
// RUN: %target-swift-frontend -emit-module %s -module-name HasArray -o %t -module-cache-path %t/mcp -group-info-path %S/Inputs/group_info.json -emit-module-doc &> %t/result.txt | |||
// RUN: strings %t/HasArray.swiftdoc > %t/doc_strings.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahmishal @compnerd should use of strings
binary in the test be guarded with // REQUIRES: shell
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, you should use llvm-strings
instead (using the substitution %llvm-strings
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice, I wasn't aware of this, @nkcsgexi could you make such a change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -4,7 +4,16 @@ | |||
// RUN: not %target-swift-frontend -emit-module %s -module-name HasArray -o %t -module-cache-path %t/mcp -group-info-path %S/Inputs/corrupted_group_info.json -emit-module-doc &> %t/result.txt | |||
// RUN: %FileCheck %s -check-prefix=CORRUPTED < %t/result.txt | |||
|
|||
public protocol P {} | |||
// RUN: %target-swift-frontend -emit-module %s -module-name HasArray -o %t -module-cache-path %t/mcp -group-info-path %S/Inputs/group_info.json -emit-module-doc &> %t/result.txt | |||
// RUN: strings %t/HasArray.swiftdoc > %t/doc_strings.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice, I wasn't aware of this, @nkcsgexi could you make such a change ?
`strings` is not available, use `%llvm-strings` which uses the LLVM `strings` implementation instead.
@swift-ci please test |
Build failed |
Build failed |
This reduces the size of x86_64.swiftdoc about 10%.
rdar://48689311