Jordan Rose
315761c4cf
[ClangImporter] Don't assume inner pointers are nullable.
...
Some inner pointers are explicitly annotated as _Nonnull, and we
should believe that. This is important when passing, say, pointers
to arrays.
2016-04-11 20:06:41 -07:00
Jordan Rose
a79a893f9a
[test] Add new tests for pointers with explicit nullability.
2016-04-11 20:06:40 -07:00
Xi Ge
f1ae3bbb64
Revert "[test] Put variadic definitions in a platform-independent header and remove the platform requirement."
...
The linux bots are still in oblivion of the variadic c function error.
Swift SVN r32915
2015-10-27 19:41:45 +00:00
Xi Ge
e048947869
[test] Put variadic definitions in a platform-independent header and remove the platform requirement.
...
Swift SVN r32914
2015-10-27 19:11:57 +00:00
Joe Groff
c9f24d1f2e
ClangImporter: Keep importing pointers to unimportable types as COpaquePointer in -enable-pointer-conversions mode.
...
Don't crash.
Swift SVN r19182
2014-06-25 21:35:21 +00:00
Joe Groff
527b97895a
ClangImporter: Import void* parameters as C*VoidPointer.
...
Swift SVN r15878
2014-04-03 17:04:37 +00:00
Doug Gregor
1dd795998f
Imported C functions never have API names.
...
The parameter names in C functions are not API in C and can easily be
inconsistent from one redeclaration to another. Therefore, those
parameter names are not considered API.
Swift SVN r15853
2014-04-03 04:13:29 +00:00
Joe Groff
b9299ed04d
ClangImporter: Import pointer parameters as CMutablePointer/CConstPointer.
...
When we see pointer types in function or method parameters, import them as the bridged CMutablePointer/CConstPointer types instead of UnsafePointer, enabling the array and inout conversions with imported APIs.
Swift SVN r15705
2014-03-31 23:06:50 +00:00
Dmitri Hrybenko
d35cf945e6
Move Clang importer test SDK to a toplevel dir test/Inputs where it can be
...
shared between Clang importer and IDE tests
Swift SVN r11292
2013-12-14 02:20:32 +00:00