Fixes PR#51620.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I believe this is worth a note in the ReleaseNotes.rst file. People who might have disabled the check specifically for the reason outlined in the PR would get to know it's safe to reenable it.
clang-tools-extra/clang-tidy/altera/StructPackAlignCheck.cpp | ||
---|---|---|
81 | If we are changing this, can we make this more C++-y? |
Comment Actions
+1 to the request for a release note, but otherwise this LGTM (with or without the static_cast changes) in general. Should we also do something special for [[no_unique_address]] (if we should, I'm fine doing that in a follow-up)?
Comment Actions
I've added the static_cast and an entry in the release notes. I'm not sure how to handle [[no_unique_address]], so I'd rather leave this to future work.
Comment Actions
@aaron.ballman Alright, I think this can go. The ReleaseNotes.rst needs a rebase anyway.
If we are changing this, can we make this more C++-y?