swift-ci
b6b2919f08
Merge remote-tracking branch 'origin/main' into rebranch
2022-06-13 16:33:39 -07:00
Victoria Mitchell
3bec6223cb
re-exported synthesized extensions need to go under the base module
...
rdar://93928003
2022-05-27 13:10:24 -06:00
swift-ci
0f4ef3080e
Merge remote-tracking branch 'origin/main' into rebranch
2022-05-26 08:53:05 -07:00
QuietMisdreavus
bf66515858
add default values for SymbolGraphOptions ( #59037 )
...
rdar://93780666
2022-05-26 09:33:51 -06:00
Ben Barham
92b6dd24c2
Merge branch 'main' into manually-merge-main
2022-05-25 15:55:35 -07:00
QuietMisdreavus
baa4123bd7
use getConformingProtocols when printing opaque generic types ( #58991 )
...
* use getConformingProtocols when printing opaque generic types
rdar://93610106
2022-05-24 18:29:14 -06:00
swift-ci
284a50fa81
Merge remote-tracking branch 'origin/main' into rebranch
2022-05-24 10:54:14 -07:00
QuietMisdreavus
5bef9f2118
[SymbolGraphGen] Add filename and module name to symbols' doc comments ( #58857 )
...
* move symbol graph samples to the bottom of the file
* add information about a doc comment's file and module
rdar://81190369
* refactor: group file URI collection/serialization together
* test for docComment.module to identify externally-inherited docs
2022-05-24 11:36:13 -06:00
Ben Barham
ac4715bb33
[rebranch] Remove check for minor version
...
Minor isn't provided in the `Triple` for Linux, so it's no longer added
to the output.
2022-05-23 11:37:45 -07:00
swift-ci
86498132d6
Merge remote-tracking branch 'origin/main' into rebranch
2022-05-12 10:13:46 -07:00
QuietMisdreavus
e8194155f0
properly handle isolated and _const type reprs when printing ( #58729 )
...
* properly handle `isolated` and `_const` type reprs when printing
rdar://92756749
* make switch non-exhaustive
2022-05-12 10:58:57 -06:00
Ben Barham
f2bd6ce9cb
[next] Remove subminor version from various tests
...
The "0" subminor is no longer included after
114b4d96e4 (which generally doesn't add a
subminor). Remove it from checks depending on it.
2022-05-11 17:06:29 -07:00
QuietMisdreavus
c885dc6fd6
[SymbolGraphGen] consider modules not equal if they're not from the same compiler ( #58421 )
...
* consider modules not equal if they're not from the same compiler
rdar://92263972
* add swift-symbolgraph-extract command and checks to the test
2022-05-05 14:47:35 -06:00
Josh Soref
7bac130b9c
spelling: requirement
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
2022-05-01 03:40:12 -04:00
Josh Soref
7695f70ffb
spelling: because
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
2022-05-01 03:40:12 -04:00
QuietMisdreavus
1b5c3d79dd
skip underscored implicit Clang decls ( #42493 )
...
rdar://92018648
2022-04-22 16:43:31 -06:00
QuietMisdreavus
e24f126165
[SymbolGraph] don't emit symbols for implicit inherited initializers ( #41985 )
...
rdar://90401347
2022-04-01 10:02:19 -06:00
Franklin Schrans
9cd44ca5d1
[SymbolGraphGen] Emit symbols from exported modules
...
When emitting a symbol graph file for a module that import modules via
`@_exported import`, emits those modules' symbols as well.
SR-15753
rdar://89547374
2022-02-28 17:21:25 +00:00
QuietMisdreavus
036d78f6ad
Merge pull request #41115 from apple/QuietMisdreavus/duplicate-clang-syms
...
skip implicit clang decls in the duplicate-decl assertion
SR-15801
2022-02-19 10:30:53 -07:00
Franklin Schrans
7c5a8fd0a1
[SymbolGraph] Don't emit symbols that are unavailable on all platforms
...
rdar://88807294
2022-02-16 10:10:02 +00:00
QuietMisdreavus
f0c96b1c97
Merge pull request #41141 from apple/QuietMisdreavus/symgraph-synth-init
...
[SymbolGraph] don't filter out all implicit decls
2022-02-03 16:25:05 -07:00
Victoria Mitchell
08fe7c2134
[SymbolGraph] don't filter out all implicit decls
2022-02-02 12:57:40 -07:00
Victoria Mitchell
9bd3454566
[SymbolGraph] consider underscored symbols as private if they're internal
...
rdar://86294802
2022-02-02 09:56:50 -07:00
Victoria Mitchell
46f6b72ed6
skip implicit clang decls in the duplicate-decl assertion
...
SR-15801
rdar://88299954
2022-01-31 18:17:34 -07:00
Victoria Mitchell
7338eb02b7
add test for top-level decls of Clang submodules
2022-01-19 16:07:31 -07:00
Victoria Mitchell
ec6c3fb3d7
Revert "Merge pull request #40877 from apple/revert-40810-QuietMisdreavus/sourcefile-export"
...
This reverts commit caf2f087e3 , reversing
changes made to 5a9abb2119 .
2022-01-18 08:51:10 -07:00
nate-chandler
05a4c57149
Revert "[AST] scan @_exported import modules of source files for display decls"
2022-01-14 09:10:34 -08:00
Victoria Mitchell
e04092d87e
don't crawl exported imports more than once
2022-01-13 09:01:52 -07:00
Victoria Mitchell
1f7fe0220a
SourceFile::getDisplayDecls also walks @_exported imports
2022-01-13 09:01:52 -07:00
Victoria Mitchell
3011a3cfca
[SymbolGraphGen] don't emit access control attributes in declarations
...
rdar://85280786
2021-12-22 16:35:12 -07:00
Victoria Mitchell
583a45c169
add test for -symbol-graph-minimum-access-level
2021-10-21 17:13:09 -06:00
Ben Barham
6aa3e0fd00
[SymbolGraph] Determine optional requirement by presence of OptionalAttr
...
Rather than checking the underlying ObjectiveC decl, use the presence of
`OptionalAttr` to determine if a requirement is optional instead. This
is already added by the importer when necessary. An added benefit here
is that this also works for optional requirements defined in Swift (ie.
`@objc optional ...`).
2021-09-25 11:50:53 +10:00
Victoria Mitchell
f53a135dca
don't skip walking VarDecls from parent clang nodes
...
rdar://80235766
2021-07-14 15:58:01 -06:00
QuietMisdreavus
fd0e1e23ba
Merge pull request #38240 from apple/QuietMisdreavus/no-subclass-synth
...
[SymbolGraph] do not synthesize subclass methods
2021-07-12 08:18:11 -06:00
Victoria Mitchell
dd39496098
do not synthesize subclass methods
...
rdar://80091081
2021-07-02 14:43:53 -06:00
Victoria Mitchell
85fabb23ed
include comments on SPI symbols when they're in symbol graphs
2021-06-30 16:13:08 -06:00
Victoria Mitchell
183db81d12
rename symbol graph files for cross-import overlays
...
rdar://79474927
2021-06-22 16:50:34 -06:00
QuietMisdreavus
7277baa07b
Merge pull request #37777 from apple/QuietMisdreavus/sourceOrigin-with-feeling
...
[SymbolGraph] add sourceOrigin info for all protocol implementations
2021-06-11 17:11:35 -06:00
Victoria Mitchell
703ebb6861
also add sourceOrigin for local protocols without docs
2021-06-07 09:07:28 -06:00
Victoria Mitchell
6f53e1dc04
add sourceOrigin info for all protocol implementations
...
rdar://78680450
2021-06-03 17:07:28 -06:00
Victoria Mitchell
d281722589
add symbol-graph flag to include SPI symbols
...
rdar://70794131
2021-05-20 15:10:49 -06:00
Victoria Mitchell
8ae8dbc5a8
add situations where inheriting docs shouldn't happen
2021-05-11 08:38:24 -06:00
Victoria Mitchell
81bc80d565
add sourceOrigin field for symbols implementing remote protocol requirements
...
rdar://77626724
2021-05-10 16:41:50 -06:00
QuietMisdreavus
08d1c33e6f
Merge pull request #37278 from apple/QuietMisdreavus/default-relation
...
[SymbolGraph] add "memberOf" relations for remote protocol implementations
2021-05-07 16:19:18 -06:00
Victoria Mitchell
4b5045f25a
add "memberOf" relations for remote protocol implementations
...
rdar://75729692
2021-05-05 15:44:28 -06:00
Victoria Mitchell
d81d5d56d9
add sourceOrigin even if no docs exist
...
rdar://77205889
2021-05-04 10:47:13 -06:00
Victoria Mitchell
87fe71ec5a
fix SymbolGraph/EmitWhileBuilding output map
...
the new driver fails when running this test, because the file map and
the command-line specify the same module output for both the individual
swift file and the module as a whole
2021-04-22 14:12:33 -06:00
Victoria Mitchell
8faaee8ab7
synthesized symbols should always inherit docs
2021-04-13 11:47:44 -05:00
Victoria Mitchell
977f134aef
non-synthesized symbols can inherit docs too
2021-04-12 18:26:08 -05:00
Victoria Mitchell
f4154d6019
add flag to skip docs on synthesized symbols
2021-04-11 17:40:37 -05:00