[clang] [clang][NFC] Fix some more incorrectly formatted comments (PR #138342)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue May 6 12:52:58 PDT 2025
================
@@ -4911,8 +4911,8 @@ std::optional<NullabilityKind> Type::getNullability() const {
bool Type::canHaveNullability(bool ResultIfUnknown) const {
QualType type = getCanonicalTypeInternal();
+ // We'll only see canonical types here.
----------------
efriedma-quic wrote:
Actually, maybe move this inside the define, like:
```
#define NON_CANONICAL_TYPE(Class, Parent) \
// We'll only see canonical types here. \
case Type::Class: \
llvm_unreachable("non-canonical type");
```
(Not that the comment is really useful, but I don't want to modify it in a format-fixing commit.)
https://github.com/llvm/llvm-project/pull/138342
More information about the cfe-commits
mailing list