Is there a way to dump the list of all standard library symbols on linux?

title says it all. i’m looking for a way to get the symbol hierarchy of the standard library, for API documentation generation purposes. The basic use case is to determine if an identifier-path like

T.Scalar where T:SIMD

refers to a standard library symbol or not (in this case, SIMDStorage.Scalar)

On 5.4+ something like:

swift symbolgraph-extract -module-name Swift -target x86_64-unknown-linux-gnu -output-dir $(pwd)

...gives enough information to have a decent go at solving what you want.

(target from swift --version if your platform is uncertain)

1 Like

this turned out to be exactly what i needed, thanks!

Terms of Service

Privacy Policy

Cookie Policy