Nathan Hawes
91ec9982a8
[refactoring] Avoid producing empty categorised edit ranges when renaming init. Also disallow renaming inits with no arguments.
2018-03-05 18:38:35 -08:00
Nathan Hawes
c326ec46c7
[Refactoring] Fix subscript rename
...
Adds support for renaming subscripts with external names, e.g.
subscript(x y: Int), and introduces a noncollapsible parameter name range for
subscript parameters, since these shouldn't be collapsed with an argument label
of the same name as function parameter names are.
2017-11-28 19:45:29 -08:00
Kacper Harasim
1bec63d911
[IDE] Remove convenience function added to SourceEditConsumer
2017-09-28 10:21:00 -07:00
Saleem Abdulrasool
7bd2256120
runtime: clean up last of -Wqual-cast warnings
...
This fixes up the remaining cast qualifier warnings from GCC 6. Use
multiple casts to adjust the const qualification. Prefer C++ style
casts. NFC.
2017-09-22 14:14:13 -07:00
Xi Ge
597d406468
IDE Utils: For DeclNameViewer, we should use empty StringRef to represent empty argument label instead of using "_". ( #9988 )
2017-06-14 14:21:51 -07:00
Xi Ge
03d4eb9ece
IDE: Add IsValid field to decl name viewer. NFC ( #10125 )
2017-06-05 17:27:14 -07:00
Xi Ge
ee4293fea1
IDE Utils: For DeclNameViewer, we should use empty StringRef to represent empty argument label instead of using "_". ( #9988 )
2017-05-30 17:29:57 -07:00
Xi Ge
65b9043eb1
migrator: handle function hoist API changes and several its varieties. rdar://31234806 ( #9544 )
2017-05-12 21:34:06 -07:00
practicalswift
797c2d8118
[gardening] Fix end of namespace comments
2017-04-20 22:01:01 +02:00
practicalswift
431e5a1440
[gardening] Use consistent end of namespace comments
2017-04-20 13:47:10 +02:00
Xi Ge
00b4d518bf
IDE: Rename Edit*Consumer to SourceEdit*Consumer. NFC ( #8732 )
2017-04-12 16:56:39 -07:00
Xi Ge
cc29886987
IDE/Utils: Move edit consumers to IDE utilities to allow broader audience. NFC
2017-04-12 13:05:57 -07:00
Hugh Bellamy
f001b7562b
Use relatively new LLVM_FALLLTHROUGH instead of our own SWIFT_FALLTHROUGH
2017-02-12 10:47:03 +07:00
Saleem Abdulrasool
ad6c40c6f8
Adjust for SVN r290718
...
Modify the ownership by using `std::unique_ptr` like clang does.
2017-01-08 17:11:30 -08:00
Bob Wilson
37e7d1c627
Merge remote-tracking branch 'origin/master' into master-next
2017-01-08 17:07:46 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Bob Wilson
13da3fa8b1
Merge remote-tracking branch 'origin/master' into master-next
2016-12-04 18:16:09 -08:00
Xi Ge
3b68ca2936
[IDE][Utils] Elevate a decl name viewer utility from swift-api-digester.
...
This utility parses a given StringRef to a base name and several argument
names and provides a convenient view on them.
2016-12-01 16:29:08 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Bob Wilson
36f7c548b8
Use Clang's LangOptions::isCompilingModule accessor.
...
Clang r279794 changed the LangOpts interface to prevent direct access
to the CompilingModules bitfield.
2016-10-15 11:02:19 -07:00
Michael Gottesman
fa1bb95923
Merge remote-tracking branch 'origin/master' into master-next
2016-08-30 19:50:12 -07:00
Saleem Abdulrasool
9dd9b3a1ab
[upstream-update] update header inclusion for PreprocessorOptions
...
The PreprocessorOptions type was moved into a separate header in clang. Update
the inclusion to fix the compilation.
2016-07-22 18:58:00 -07:00
Michael Gottesman
8d00a6cb59
Merge remote-tracking branch 'origin/master' into master-next
...
Conflicts:
stdlib/public/SDK/GameplayKit/CMakeLists.txt
test/DebugInfo/bound-namealiastype.swift
test/DebugInfo/structs.swift
test/IRGen/c_globals.swift
test/SourceKit/DocSupport/doc_clang_module.swift
test/SourceKit/Indexing/index_with_clang_module.swift
utils/update-checkout
2016-06-25 01:13:50 -07:00
Ben Langmuir
39d204d9e4
[IDE, SourceKit] Pass in clang as arg[0] in initInvocationByClangArguments
...
This applies the same fix as cfdb8ac2e61, but this time to libIDE so
that SourceKit and swift-ide-test will also pass in an appropriate
argv[0]. Re-enable the tests that broke.
rdar://problem/24431137
2016-06-09 09:37:36 -07:00
Michael Gottesman
0bc44a1436
[upstream-update] Update for removal of clang::LangOptions::ImplementationOfModule.
...
It was unified with ModuleName. Now a flag is set to say if ModuleName is the
implementation module or not.
2016-03-26 02:01:19 -07:00
William Dillon
ab7c87e7e8
Implemented ARMv6 and fixed up ARMv7
2016-01-29 21:41:22 +00:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
practicalswift
6e3b700b44
Fix typos.
2015-12-23 00:31:13 +01:00
Daniel Duan
ae601d2744
replace NULL with nullptr
2015-12-20 13:28:21 -08:00
Davide Italiano
2e78fdf58f
Fix a bunch of pessimizing moves which prevent copy elision.
2015-12-11 19:09:13 +00:00
Xi Ge
8cc155c9e0
[ObjcHeaderPrint] When initializing CompilerInvocation with clang tuples, update i386 to x86_64 so that Stdlib is available. rdar://22978765
...
Swift SVN r32709
2015-10-15 19:19:15 +00:00
Michael Gottesman
59099b627f
[ClangImporter] Make DetailedPreprocessingRecord a first-class option.
...
...though not one we set from the command line.
Swift SVN r31806
2015-09-09 04:37:23 +00:00
Michael Gottesman
c7cdf34110
Update module format handling to match upstream API.
...
Swift SVN r31802
2015-09-09 04:37:19 +00:00
Argyrios Kyrtzidis
f46b8a7b8a
[IDE] For clang header interface printing, adjust the cc1 triple string we got from clang, to make sure it will be accepted
...
when it goes throught the swift clang importer.
rdar://22139338
Swift SVN r31017
2015-08-04 22:49:27 +00:00
Argyrios Kyrtzidis
b3dd0fa461
[IDE] When doing ObjC header interface printing, make sure to handle -include properly.
...
rdar://20893507
Swift SVN r30939
2015-08-03 02:12:14 +00:00
Argyrios Kyrtzidis
76f1a06913
[sdk-analyzer] Remove modules that have become unavailable for swift.
...
Swift SVN r30909
2015-08-01 05:36:03 +00:00
Argyrios Kyrtzidis
9917e74533
[IDE] Support printing the header interface for a header, that belongs to a clang module
...
that the clang invocation is importing.
Fully addresses rdar://21067984
Swift SVN r28962
2015-05-23 08:14:59 +00:00
Argyrios Kyrtzidis
054ebaaa3c
[IDE] Handle properly the clang flag '-fmodule-implementation-of' when doing header interface printing.
...
Part of rdar://21067984
Swift SVN r28961
2015-05-23 08:14:57 +00:00
Argyrios Kyrtzidis
1ebfc0a51d
[sdk-analyzer] Update OSX module list.
...
Swift SVN r28617
2015-05-15 06:56:19 +00:00
Argyrios Kyrtzidis
5b29ebfb8f
[sdk-analyzer] Update the module lists.
...
Swift SVN r28510
2015-05-13 07:26:40 +00:00
Argyrios Kyrtzidis
a586753f0f
[IDE] Implement generating the Swift interface for an C/ObjC header
...
This translates clang arguments to swift ones, uses the bridging header
functionality to parse the provided file, and re-uses part of the module interface
printing implementation to print an interface for the header.
Part of rdar://19939192
Swift SVN r28062
2015-05-02 01:17:45 +00:00
Argyrios Kyrtzidis
92ec232e0c
[AST] Rename ValueDecl::getConformances() -> getSatisfiedProtocolRequirements(), NFC.
...
Swift SVN r27321
2015-04-15 17:19:19 +00:00
Xi Ge
f13bffcba3
[SDKAnalyzer] Add file existence check.
...
Also, this commit commented out several module names that fail to load.
Swift SVN r27039
2015-04-06 20:58:07 +00:00
Argyrios Kyrtzidis
fc1c526f27
[IDE] Fix attempt to break the string.
...
Swift SVN r26884
2015-04-02 19:43:51 +00:00
Xi Ge
fb2c8aa103
[SDKAnalyzer] The initial commit of swift sdk digester.
...
This tool takes the input of two versions of the same sdk and outputs
their diff to facilicate the auto-migration of sdk clients.
In this initial commit, we take the path of one sdk and generate
a tree describing its API content. Next, we will diff trees generated
from different versions of the sdk.
In addition, this commit also refactored out part of swift-sdk-analyzer
to the common utils shared with swift-sdk-digester.
Swift SVN r26656
2015-03-28 00:05:28 +00:00
Argyrios Kyrtzidis
0c54a120a0
[IDE] Introduce ide::replacePlaceholders() which replaces Xcode editor placeholders with dollar identifiers
...
and returns a new memory buffer.
Swift SVN r25897
2015-03-09 23:02:56 +00:00
Jordan Rose
dbd3b60f6b
[Serialization] Move (Module)Status and validateSerializedAST into a namespace.
...
Also into a separate file.
Before (swift/Serialization/SerializedModuleLoader.h):
ModuleStatus
SerializedModuleLoader::ValidationInfo
SerializedModuleLoader::ExtendedValidationInfo
SerializedModuleLoader::isSerializedAST
SerializedModuleLoader::validateSerializedAST
After (swift/Serialization/Validation.h):
serialization::Status
serialization::ValidationInfo
serialization::ExtendedValidationInfo
serialization::isSerializedAST
serialization::validateSerializedAST
No functionality change, just a lot of renaming and a bit of reorganizing.
Swift SVN r25226
2015-02-12 05:32:25 +00:00
Argyrios Kyrtzidis
d039fb6369
[AST] Move ide::findUnderlyingClangModule() to Module::findUnderlyingClangModule() so that the ASTPrinter can use it.
...
Swift SVN r23691
2014-12-04 20:17:03 +00:00
Dmitri Hrybenko
f5299e1108
Update for upstream LLVM API changes
...
Swift SVN r21527
2014-08-28 12:44:23 +00:00
Dmitri Hrybenko
42b25d939d
Update for upstream LLVM changes is MemoryBuffer APIs
...
Swift SVN r21409
2014-08-22 08:28:03 +00:00