[PATCH] D142738: Warn if _Optional used at top-level of decl

2023-01-29 Thread Christopher Bazley via Phabricator via cfe-commits
chrisbazley added a comment. Please refer to https://discourse.llvm.org/t/rfc-optional-a-type-qualifier-to-indicate-pointer-nullability/ and https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3089.pdf for the wider context of this commit. Repository: rG LLVM Github Monorepo CHANGES SINCE LA

[PATCH] D142738: Warn if _Optional used at top-level of decl

2023-01-27 Thread Christopher Bazley via Phabricator via cfe-commits
chrisbazley created this revision. Herald added a project: All. chrisbazley requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Parameter declarations using [] syntax can be written more naturally using an _Optional qualifier than using Clang's