Austin Belknap
6592b428f8
Style fixes.
2018-06-01 14:18:26 -07:00
Austin Belknap
3b38fa68a1
Preserve argv for the stack trace, and only create a copy if necessary.
2018-06-01 14:01:11 -07:00
swift-ci
2b556e05ee
Merge remote-tracking branch 'origin/master' into master-next
2018-05-31 18:28:59 -07:00
Xi Ge
e7e16ff12e
Merge pull request #16927 from nkcsgexi/parse-buffer
...
SwiftSourceKit: add API to generate a syntax tree from a given source buffer.
2018-05-31 18:26:51 -07:00
Xi Ge
d4b74065f6
SwiftSourceKit: add an API to parse a given source buffer to generate a syntax tree.
2018-05-31 16:43:23 -07:00
swift-ci
58a1ecfb7c
Merge remote-tracking branch 'origin/master' into master-next
2018-05-31 16:09:51 -07:00
Rintaro Ishizaki
66c71d1bf7
[SourceKit] Force print '?' for optional method call in code completion. ( #16910 )
...
Calling '@objc optional func' requires '?' or '!' after its name. When
completing method calls for them, 'key.sourcetext' should have '?'
whereas 'key.name' shouldn't.
Note that we deliberately do not use optional type name for
'key.typename'. This is consistent with optional chain '?.<propertyName>'
behavior.
rdar://problem/37904574
2018-05-31 16:06:23 -07:00
Saleem Abdulrasool
aa10c6e2bb
swift-reflection-test: preprocess for windows build
...
Windows does not support fork/exec, so preprocess away the calls to
those APIs on Windows. This allows for building more of the test
binaries.
2018-05-30 14:40:17 -07:00
swift-ci
ba633eead9
Merge remote-tracking branch 'origin/master' into master-next
2018-05-30 13:49:09 -07:00
Mike Ash
b5578252eb
Merge pull request #16904 from mikeash/fix-swift-reflection-test-warning
...
[Tests] Fix an unused function warning for PipeMemoryReader_receiveReflectionInfo in swift-reflection-test.c.
2018-05-30 16:46:46 -04:00
swift-ci
32ed7e2d02
Merge remote-tracking branch 'origin/master' into master-next
2018-05-30 12:49:02 -07:00
Ben Langmuir
ad442e955d
Merge pull request #16895 from benlangmuir/notify-parse-args
...
[sourcekit] Send compile notifications when argument parsing files
2018-05-30 12:45:11 -07:00
Mike Ash
137adcdc4d
[Tests] Fix an unused function warning for PipeMemoryReader_receiveReflectionInfo in swift-reflection-test.c.
...
rdar://problem/40626086
2018-05-30 10:19:50 -04:00
swift-ci
6bcc013437
Merge remote-tracking branch 'origin/master' into master-next
2018-05-30 00:49:45 -07:00
Robert Widmann
d7493dd0fa
[NFC] Expose the TaskQueue as a Compilation Parameter
...
Shuffle the responsibility for creating the TaskQueue out of the
Compilation's internal job state object and into the driver. Expose
a builder convenience function that handles the argument parsing.
2018-05-29 21:58:27 -07:00
Ben Langmuir
c3e5d63384
[sourcekit] Send notification if compiler argument parsing fails in editor.open
...
Since we will not reach `createAST` where we would normally send the
notification, send one from `getInvocation` when it fails.
rdar://39225180
2018-05-29 15:24:20 -07:00
swift-ci
1a9dc4c2de
Merge remote-tracking branch 'origin/master' into master-next
2018-05-25 12:49:01 -07:00
Xi Ge
7312fea3b2
migrator: emit error messages when migration scripts are missing.
...
We used to assert migration scripts exist. This patch further
decouples these scripts and the compiler by treating missing scripts
as a regular compiler error.
Related: rdar://40538097
2018-05-25 11:25:32 -07:00
swift-ci
18e8d74266
Merge remote-tracking branch 'origin/master' into master-next
2018-05-24 13:49:16 -07:00
Vedant Kumar
105a61e50d
Use LLVM_DEBUG() instead of DEBUG()
...
Upstream has renamed the DEBUG() macro to LLVM_DEBUG. This updates swift
accordingly:
$ find . -name \*.cpp -print -exec sed -i "" -E "s/ DEBUG\(/ LLVM_DEBUG(/g" {} \;
2018-05-24 13:10:45 -07:00
Xi Ge
b0084558a2
swift-api-digester: specify raw types when detecting the reversion of NS_TYPED_EXTENSIBLE_ENUM.
2018-05-24 13:01:21 -07:00
swift-ci
76bd350b43
Merge remote-tracking branch 'origin/master' into master-next
2018-05-24 08:09:06 -07:00
Arnold Schwaighofer
c0af215fd8
Merge pull request #16802 from aschwaighofer/swift5_sections
...
Rename swift sections from swift4 to swift5
2018-05-24 07:52:15 -07:00
swift-ci
b8605f732d
Merge remote-tracking branch 'origin/master' into master-next
2018-05-23 16:09:20 -07:00
Rintaro Ishizaki
025f4dde55
Merge pull request #16789 from rintaro/refactoring-nested-if
...
[Refactoring] Re-implement "collapse nested if" action
2018-05-24 07:56:02 +09:00
swift-ci
469fb047c1
Merge remote-tracking branch 'origin/master' into master-next
2018-05-23 13:29:12 -07:00
Xi Ge
82ca0a1891
swift-api-digester: detect type alias of raw types change to RawRepresentableStructs.
...
Related to: rdar://40076487
2018-05-23 12:23:47 -07:00
Arnold Schwaighofer
cc7f207cec
Rename swift sections from swift4 to swift5
...
rdar://38465220
2018-05-23 12:18:08 -07:00
Austin Belknap
3fe62b94e7
Reformat verbose and stack trace printouts for response-files.
2018-05-23 11:05:20 -07:00
Rintaro Ishizaki
639fb85c5f
[Refactoring] Rename CollapseNestedIfExpr to CollapseNestedIfStmt
...
'if' is not expression, but statement.
2018-05-23 17:13:35 +09:00
swift-ci
849245dd6f
Merge remote-tracking branch 'origin/master' into master-next
2018-05-22 14:29:23 -07:00
swift-ci
1b3f503d4d
Merge pull request #16776 from nkcsgexi/sort-mig-gen-item
2018-05-22 14:14:09 -07:00
Xi Ge
5212311cc0
swift-api-digester: sort migration scripts before serializing them.
2018-05-22 13:39:46 -07:00
Ben Langmuir
97b735359f
[sourcekit] Attempt to provide diagnostics when compilation fails for any reason
...
Refactors the diagnostic code to be run whenever a compilation
notification has been started and there are diagnostics available in the
consumer. This allows us to capture diagnostics on all exit paths, and
specifically when code-completion fails because of invalid arguments.
Note: the editor.open code path still doesn't report invalid arguments
because it fails before even trying to create an AST.
2018-05-22 12:40:06 -07:00
Ben Langmuir
a35b2d48a3
[code-completion] Sends compile notifications even if argument parsing fails
...
For now we don't get a diagnostic, but at least there is a will-compile
containing the arguments.
2018-05-22 11:38:57 -07:00
swift-ci
9d02f94670
Merge remote-tracking branch 'origin/master' into master-next
2018-05-22 10:49:24 -07:00
Alex Hoppen
2decf8ffaf
[libSyntax] Rename recordReuseInformation to setRecordReuseInformation
2018-05-22 09:07:56 -07:00
Alex Hoppen
b26dd1118c
[incrParse] Fix swift-syntax-test not complaining about unexpected reparsed functions
2018-05-22 08:52:40 -07:00
Alex Hoppen
c31a880a47
[incrParse] Allow whitespaces to be reparsed in test
...
This greatly improves the ergonomics of writing tests and outweighs the
ability to test which whitespaces get parsed since their parsing
overhead should be minimal.
2018-05-22 08:52:38 -07:00
Alex Hoppen
d026b2da04
[incrParse] Add verification of reparsed regions to swift-syntax-test
2018-05-22 08:52:37 -07:00
Alex Hoppen
4da37b1702
[incrParse] Add option to force coloured output
2018-05-22 08:52:36 -07:00
Alex Hoppen
6135f10151
[incrParse] Outdated documentation fixes
2018-05-22 08:52:36 -07:00
Alex Hoppen
bc5e4d709a
[incrParse] Compute byte offsets of pre-edit file based on that file
2018-05-22 08:52:35 -07:00
Alex Hoppen
d9fd523897
[swift-syntax-test] Refactor to allow incremental parsing on all actions
2018-05-22 08:52:34 -07:00
Alex Hoppen
8998b27dd4
[incrParse] Add coloured output indicating which code got reused
2018-05-22 08:52:34 -07:00
Alex Hoppen
92f8f34d22
[incrParse] Store reused regions and output them after parsing
2018-05-22 08:52:34 -07:00
Alex Hoppen
3382fac436
[incrParse] Allow line:column notation to specify edits
2018-05-22 08:52:34 -07:00
Alex Hoppen
186feb6f0e
[incrParse] Allow information about node reused be outputted
2018-05-22 08:52:33 -07:00
Alex Hoppen
db52819d94
[swift-syntax-test] Fix formatting of command-line-argument descriptions
2018-05-22 08:52:33 -07:00
Alex Hoppen
60d11d24f8
[incrParse] Reparse a node if the next leaf node has been modified
2018-05-22 08:52:33 -07:00