Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice, LGTM!
I guess it could also be nice to suppress note_safe_buffer_usage_suggestions_disabled in such functions but that's an extremely minor issue.
clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
---|---|---|
2145–2146 | IIRC redecls() picks up on the type, so this can be made even more idiomatic this way (didn't actually try). |
nitpick: since we already checked the Kind here, can we use cast instead of dyn_cast?