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
Sonny Falk
8094d8d633
[IDE] Add utility function for walking overridden declarations, including
...
protocol conformances and clang declarations.
Swift SVN r20909
2014-08-01 19:07:15 +00:00
Argyrios Kyrtzidis
3175251bb1
[IDE] Handle annotation of clang submodule imports properly.
...
rdar://17780613
Swift SVN r20595
2014-07-26 20:58:19 +00:00
Argyrios Kyrtzidis
8eb7d43d32
[Parser] Introduce a convenience wrapper for Parser functionality.
...
This is useful when wanting to just do some syntactic parsing for a snippet of code.
Swift SVN r20174
2014-07-18 19:57:32 +00:00
Chris Lattner
29421227e1
mark some global variables const, fix trivial coding standards issue.
...
Swift SVN r19554
2014-07-04 05:55:27 +00:00
Jordan Rose
574054b8fd
Distance SourceManager from llvm::SourceMgr.
...
...in preparation for non-source locations, i.e. locations that don't come
frome source buffers.
No functionality change, but a fair bit of SourceManager API and idioms have
changed.
Swift SVN r18942
2014-06-17 01:15:47 +00:00
Greg Clayton
61c4e6f1a4
The command-line REPL doesn't accept pastes properly when it contains a if/else.
...
The problem was the IndentPrefix for the following 3 lines:
if a ==12 {
println("if")
} else {
was returning " } " as the indent prefix. The indent prefix should always be spaces, so now we trim off anything past any non-space characters.
<rdar://problem/17172600>
Swift SVN r18878
2014-06-13 20:56:24 +00:00
Argyrios Kyrtzidis
9afa0333db
[Frontend] Make sure we don't do any module imports during parse-only pass.
...
Fixes performance regression of rdar://16816861
Swift SVN r17600
2014-05-07 02:37:49 +00:00
Argyrios Kyrtzidis
2380966931
[IDE] Enhance ide::isSourceInputComplete() function to also return indentation information.
...
Patch provided by GregC.
Swift SVN r16552
2014-04-18 22:12:40 +00:00
Dmitri Hrybenko
68e8fee5fc
Comment parsing: put more information into the generated XML documents
...
This commit adds infrastructure for conversion and testing it.
The conversion is still incomplete, pending discussion about which tags should
we use in the XML documents. I copied the RelaxNG schema from Clang, and will
edit it accordingly.
Swift SVN r16451
2014-04-17 15:42:51 +00:00
Dmitri Hrybenko
d196805275
Comment-to-XML conversion: don't try to get line and column number for imported
...
declarations
Swift SVN r15461
2014-03-25 16:32:44 +00:00
Dmitri Hrybenko
a598087505
ide::getDocumentationCommentAsXML(): pass through comments from Clang
...
Swift SVN r15208
2014-03-18 22:38:12 +00:00
Dmitri Hrybenko
f7699f59b5
Comment parsing: generate a basic XML document from the brief comment
...
Swift SVN r15186
2014-03-18 11:09:53 +00:00
Dmitri Hrybenko
49754619ee
Move USR generation to AST library, so that Serialization library can use it
...
Swift SVN r14681
2014-03-05 11:31:31 +00:00
Argyrios Kyrtzidis
bb4b57c053
[IDE] Introduce ide::printDeclUSR() which uses the mangler to provide a USR for a swift symbol.
...
Swift SVN r14279
2014-02-23 06:54:48 +00:00
Jordan Rose
cbcf17f9bd
Stop leaking memory from Module and FileUnit.
...
Also, disallow creating Modules and FileUnits on the stack. They must always
live as long as the ASTContext.
<rdar://problem/15596964>
Swift SVN r13671
2014-02-08 02:12:57 +00:00
Argyrios Kyrtzidis
d073e3026c
[IDE] Add a convenient overload for ide::isSourceInputComplete that accepts a StringRef.
...
Swift SVN r13318
2014-02-02 06:49:59 +00:00
Argyrios Kyrtzidis
8758451a43
[Parser/IDE] Introduce ide::isSourceInputComplete() which returns true if the input source is fully formed,
...
or false if, for example, a closing brace is missing.
This is useful for the REPL.
rdar://15948039
Swift SVN r13313
2014-02-02 03:14:33 +00:00