Commit Graph

85 Commits

Author SHA1 Message Date
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
Victoria Mitchell
983cbdf12f include information about synthesized symbols' sources
rdar://75741632
2021-04-11 17:40:32 -05:00
Victoria Mitchell
2745247f6b re-enable SymbolGraph/verbose test
rdar://76461340
2021-04-09 12:39:42 -06:00
Victoria Mitchell
653d3f9e91 make SymbolGraph/verbose test less flaky 2021-04-09 12:34:21 -06:00
Victoria Mitchell
f6e0ea2b0f update BatchMode test to fully match the source range data 2021-04-09 12:34:20 -06:00
Victoria Mitchell
8f3f06899a make ASTContext RawComment cache aware of serialization
rdar://76162972
2021-04-09 12:34:20 -06:00
Holly Borla
a1f85282ae [Test] Disable a failing SymbolGraph test. 2021-04-09 11:23:05 -07:00
Victoria Mitchell
0c5955b7fa silence symbolgraph-extract output without -v flag
rdar://72630103
2021-04-06 16:40:38 -06:00
Victoria Mitchell
6c7dfa6384 all supplementary outputs affect incremental builds
rdar://75536036
2021-03-26 16:55:09 -05:00
Victoria Mitchell
94b3805bb0 allow -emit-symbol-graph-dir and -supplementary-output-file-map at the same time 2021-03-18 12:23:55 -06:00
QuietMisdreavus
84165788d8 Merge pull request #36422 from apple/QuietMisdreavus/enum-titles
[SymbolGraph] use fully qualified titles for enum elements
2021-03-15 10:04:14 -06:00
QuietMisdreavus
5871025259 Merge pull request #36367 from apple/QuietMisdreavus/symbol-availability
[SymbolGraph] don't filter out symbols if their availability was for a platform-agnostic target

rdar://74670284
2021-03-15 08:03:22 -06:00
Victoria Mitchell
5d1b588273 use fully qualified titles for enum elements
rdar://74051287
2021-03-12 13:45:11 -07:00
Victoria Mitchell
fe4984b9a7 don't filter symbols if they have platform-agnostic availability 2021-03-10 09:17:22 -07:00
Victoria Mitchell
3e22b20551 don't pop the last path component from -emit-symbol-graph-dir
rdar://74318113
2021-03-08 12:04:17 -07:00
QuietMisdreavus
1451960933 [SymbolGraph] add a USR for RHS types in generic conformances (#36242)
rdar://70442228
2021-03-05 08:24:57 -07:00
Victoria Mitchell
db3685aa29 don't emit navigator name if it's the same as subHeading 2021-03-01 10:57:54 -07:00
QuietMisdreavus
55199f510a Merge pull request #35919 from apple/QuietMisdreavus/invalid-range-raw-comment
don't load raw comments for invalid serialized ranges
2021-02-13 16:20:47 -07:00
QuietMisdreavus
51bbea6132 Merge pull request #35923 from apple/QuietMisdreavus/dont-crash-on-failed-loads
don't crash the symbol graph tool when a module fails to load
2021-02-12 10:05:28 -07:00
AG
a5b804602d Merge pull request #35110 from bitjammer/acgarland/emit-symbol-graph
Add optional -emit-symbol-graph output when emitting modules
2021-02-12 09:00:58 -08:00
Victoria Mitchell
3e8b3e82b1 add a test for busted source info in symbol graph tool 2021-02-11 12:40:12 -07:00
Victoria Mitchell
65665ebffa don't crash the symbol graph tool when a module fails to load 2021-02-11 12:04:58 -07:00
Victoria Mitchell
1e5dc37538 don't print USRs for type parameters into symbol graphs
rdar://73478316
2021-01-28 11:15:54 -07:00
Ashley Garland
69c4fc47cb Add optional -emit-symbol-graph output when emitting modules
rdar://71497047
2021-01-28 09:55:33 -08:00
Victoria Mitchell
bf9274d390 add the overlay module name to the overlay symbol graph file name 2020-12-11 12:08:25 -07:00
Victoria Mitchell
85ad81625c add test for cross-import overlay symbol graphs 2020-12-10 19:13:37 -07:00
Anthony Latsis
4ce7a2d060 CodeCompletion: Annotate archetypes, generic parameters and dependent members 2020-10-27 14:39:52 +03:00
AG
528ace8324 Merge pull request #33374 from bitjammer/acgarland/rdar-64178490-dont-link-private-symbols
[SymbolGraph] Don't link type identifier fragments to private symbols
2020-08-11 14:06:37 -07:00
Ashley Garland
ecf8d556e5 [SymbolGraph] Don't link type identifier fragments to private symbols
These links will never resolve because the symbols are never emitted
in the first place.

rdar://64178490
2020-08-07 14:20:28 -07:00
Ashley Garland
635550cd83 [SymbolGraph] Check Loc validity before extracting text
Hit this crash while walking an `import protocol ...` declaration.
Check loc validity before calling `SourceManager::extractText`:
there is an assertion at the beginning of this function.

rdar://65258208
2020-08-07 13:53:22 -07:00
Ashley Garland
50c365d268 [SymbolGraph] UnconditionallyUnavailable test should only run on macOS
NFC.
2020-06-21 19:44:43 -07:00
Ashley Garland
0a29ba8839 [SymbolGraph] Add back isUnconditionallyUnavailable
It turns out this needed to prevent automatically inheriting a
default introduced availability for a given module.

rdar://64536460
2020-06-19 11:16:54 -07:00
Ashley Garland
a9d692c1fb [SymbolGraph] Only include where clause constraints in swiftExtension
Otherwise, this creates noise in conditional conformance phrasings.

rdar://64425199
2020-06-17 09:51:59 -07:00
Doug Gregor
80e2b48d36 [Test] Version cleanup 2020-06-15 14:26:28 -07:00
AG
29d3cc40cf Merge pull request #32246 from bitjammer/acgarland/rdar-63941806-dont-link-self-fragment
[SymbolGraph] Don't add precise identifier to `Self` fragment
2020-06-08 15:37:38 -07:00
AG
0257c7e71a Merge pull request #32241 from bitjammer/acgarland/rdar-64047985-fully-qualified-title
[SymbolGraph] Use fully qualified name for type's page titles
2020-06-08 13:12:56 -07:00
Ashley Garland
580bf4d2c9 [SymbolGraph] Don't add precise identifier to Self fragment
So that these identifiers aren't turned into links.

rdar://63941806
2020-06-08 12:51:59 -07:00
AG
11ef9bd92f Merge pull request #32217 from bitjammer/acgarland/rdar-63120829-show-in-interface-not-underscored
[SymbolGraph] Don't consider @show_in_interface for underscored names
2020-06-08 12:21:56 -07:00
Ashley Garland
f822296cb2 [SymbolGraph] Use fully qualified name for type's page titles
rdar://64047985
2020-06-08 10:36:06 -07:00
Ashley Garland
c647c11bb5 [SymbolGraph] Don't consider @show_in_interface for underscored names
The fact that a declaration has `@_show_in_interface` shouldn't be
used to decide whether something has underscored naming, which
is just one specific kind of check regarding naming only.

Move the check for this attribute out one level.

rdar://63120829
2020-06-05 16:52:35 -07:00
Ashley Garland
dd7a7f7c89 [SymbolGraph] Print non-underscored attributes in declarations
rdar://63338507
2020-06-05 13:36:22 -07:00
AG
fb99cfcf6b Merge pull request #32189 from bitjammer/acgarland/rdar-63033669-sgf-full-decl-no-inherited
[SymbolGraph] Don't print inherited list in declaration fragments
2020-06-05 12:55:42 -07:00