Brent Royal-Gordon
7f14affda0
[NFC] Give NullablePtr some PointerLikeTypeTraits
...
Allows it to be used in PointerIntPair and PointerUnion.
2020-10-09 18:59:19 -07:00
Hamish Knight
05d731048b
Adjust NullablePtr constructor template condition
...
We're interested in whether the pointers are
convertible, not the pointees.
2020-04-15 08:07:45 -07:00
David Ungar
6e1f6f25e3
Add getPtrOrNull to NullablePtr
2019-07-11 11:10:32 -07:00
Michael Gottesman
8311f2b050
[ast] Add helpers for grabbing various case stmt corresponding var decls to a specific case stmt var decl.
2019-04-03 13:38:03 -07:00
Michael Gottesman
3178f5cabb
[basic] Add comparison operators to NullablePtr<T> against T* and other NullablePtr<T>.
...
It is always safe to compare a nullptr with a non-null pointer.
2019-02-18 18:41:51 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01: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
Dan Raviv
29d76f3b68
Canonize swift header files headers and footers
...
- Added missing ifdef guard in PointerIntEnum header
- Consistent naming convention for ifdef guards
- Consistent 'end namespace swift'
- Consistent single EOL at end of header files
2016-03-23 09:04:12 +02:00
practicalswift
1339b5403b
Consistent use of header comment format.
...
Correct format:
//===--- Name of file - Description ----------------------------*- Lang -*-===//
2016-01-04 13:26:31 +01:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Michael Gottesman
6f8b468cb6
Change switches and selects to use NullablePtr<EnumElementDecl> instead of EnumElementDecl * when their API explicitly requires the user to check for nullptr. NFC.
...
This is just good to do and hopefully will help prevent people from forgetting
to check in the future by annotating the API explicitly as returning a
potentially nullptr.
Swift SVN r25364
2015-02-18 02:11:57 +00:00
Argyrios Kyrtzidis
43061a7391
Move NullablePtr from llvm into Swift.
...
There are no other uses of it outside of swift.
Swift SVN r6113
2013-07-10 15:33:40 +00:00