Desugar array type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice!
clang/lib/AST/ASTDiagnostic.cpp | ||
---|---|---|
134 | this doesn't directly express the idea "we handle all array types". You *could* write: if (const auto *AT = dyn_cast<ArrayType>(Ty)) { QualType ElementTy = desugar(...); switch(AT->getTypeClass()) { case Type::ConstantArray: QT = Context.getConstantArrayType(...); break; ... default: llvm_unreachable("Unhandled array type"); } break; } Up to you whether you think this is clearer. |
this doesn't directly express the idea "we handle all array types". You *could* write:
Up to you whether you think this is clearer.