Michael Forster
345a9147ec
Explicit SmallString->std::string conversion.
...
This is only needed temporarily until commit d7049213 from upstream
LLVM hits the swift/master branch.
2020-03-13 19:16:49 +01:00
Fred Riss
259d78a350
Adapt to llvm.org StringRef API change
2020-03-13 19:08:22 +01:00
Shoaib Meenai
b6301c256c
Include TargetInfo.h explicitly
...
https://github.com/llvm/llvm-project/commit/d7c5037e6b9f removes
implicit transitive includes of TargetInfo.h, so we must include it
explicitly where it's needed.
2020-03-11 23:36:59 -07:00
Slava Pestov
783ea28f1a
AST: Change AutoClosureExpr::isThunk() to getThunkType()
2020-02-26 23:09:54 -05:00
Slava Pestov
3604b21f2a
AST: Simplify Expr::getReferencedDecl()
2019-12-19 23:51:53 -05:00
Argyrios Kyrtzidis
4f07dcbb76
[lib/IDE] Improve error message outputted from getPlistEntry function. NFC
2019-10-02 13:54:49 -07:00
Slava Pestov
99ea1bb980
ClangImporter: Sink getEffectiveClangNode() down from IDE to the importer and clean up related code
2019-09-06 16:03:51 -04:00
Slava Pestov
be84556b9e
ClangImporter: Record the error wrapper's struct 'Code' member enum in a side table
2019-09-03 22:53:52 -04:00
Argyrios Kyrtzidis
66be4a58b4
[Parser] Introduce ParserUnit::parse() function to avoid duplication of code
2018-12-16 09:52:15 -08:00
Bob Wilson
3347d482e9
NFC: Simplify code by using Triple.getOSAndEnvironmentName
...
This avoids the need to check if the environment component is set.
2018-12-12 11:30:58 -08:00
Saleem Abdulrasool
7f6a333c16
IDE: preserve the environment in the triple
...
Adjust the triple manipulation to preserve the environment. This is
particularly important for android which is an environment for Linux,
and Windows, where we support specific environments only.
2018-12-04 19:50:39 -08:00
Xi Ge
3f58f1e6d3
swift-module-digester: add a flag to include Swift decls specifically.
...
This flag allows us to diagnose the overlay part exclusively without digesting
the entire SDK framework.
2018-10-09 12:57:22 -07:00
Xi Ge
24b0eac9a4
Parser: parse members in extension decls incrementally.
2018-09-05 17:00:39 -07:00
Jordan Rose
63cd1258ea
Stop using SourceManager::getBufferIdentifierForLoc to find buffer IDs
...
The right way is findBufferContainingLoc. getBufferIdentifierForLoc is
both slower and wrong in the presence of #sourceLocation.
I couldn't come up with a test for the change in IDE/Utils.cpp because
refactoring still seems to be broken around #sourceLocation. I'll file
bugs for that.
2018-08-29 11:46:41 -07:00
Huon Wilson
d4f49a1252
[IDE] std::function -> llvm::function_ref for some non-escaping params.
2018-05-01 08:29:06 +10:00
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