Commit Graph

6 Commits

Author SHA1 Message Date
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
Ben Langmuir
4082355244 Split KnownProtocolKind enum case from protocol name
This avoids us using reserved identifiers as the enum case names of all
our underscored protocols like _ObjectiveCBridgeable. I used the
convention PROTOCOL_WITH_NAME to mirror how the known identifiers work.

Swift SVN r32924
2015-10-27 23:10:36 +00:00
Jordan Rose
f5b1efb354 Move client-affecting configuration options into a generated Config.h.
This way they can be used from other projects, like LLDB. The downside
is we now have to make sure the header is included consistently in all
the places we care about, but I think in practice that won't be a problem,
especially not with tests.

rdar://problem/22240127

Swift SVN r31173
2015-08-12 17:50:13 +00:00
Doug Gregor
f82f001518 Migrate TypeChecker::getProtocol() over to ASTContext.
All of the known protocols are part of the Swift standard library
anyway, so look there for these special protocols.


Swift SVN r7694
2013-08-28 22:37:38 +00:00
Jordan Rose
4c74b6ced7 Add a comment for the preprocessor trick used to calculate NumKnownProtocols.
...and per DaveA's recommendation, drop the leading zero and reorder, so
people notice that something weird's going on.

No functionality change.

Swift SVN r7267
2013-08-15 18:43:31 +00:00
Jordan Rose
ae788c8638 Mark compiler-known protocols as such early on in type-checking.
This doesn't do anything yet, but will be used to record which decls
conform to these protocols when serializing a module.

This introduces a new metaprogramming file, KnownProtocols.def.

Swift SVN r7263
2013-08-15 17:32:10 +00:00