Commit Graph

4 Commits

Author SHA1 Message Date
John McCall
c36c7e2c86 Include what you use.
Swift SVN r1382
2012-04-11 02:59:58 +00:00
John McCall
8aefa67399 Add a convenient way to construct an empty Optional without naming
a potentially long template-id.



Swift SVN r872
2011-11-17 09:27:56 +00:00
Doug Gregor
1334180b3b Add non-const operator-> and operator* overloads to Optional.
Swift SVN r846
2011-11-09 17:51:18 +00:00
Doug Gregor
e12215b1be Introduce InFlightDiagnostic, a move-only class that will be used to emit "extra" information (ranges, Fix-Its, etc.) for a diagnostic. It's quite similar in design to Clang's DiagnosticBuilder, but slightly cleaner/more restrictive.
Note that I had to re-implement llvm::Optional, since it lamely requires a default constructor. At some point, I'll push a proper implementation back to LLVM.

Swift SVN r845
2011-11-09 17:19:30 +00:00