[PATCH] D121328: Disable -Wmissing-prototypes for internal linkage functions that aren't explicitly marked "static"""
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 24 12:11:57 PDT 2022
aaron.ballman accepted this revision.
aaron.ballman added a comment.
In D121328#3406017 <https://reviews.llvm.org/D121328#3406017>, @dblaikie wrote:
> @aaron.ballman wouldn't mind your take on this to see if this seems sufficiently robust, tested, etc. (should I move the isExternallyVisible check even further down? So its side effects are even less impactful (maybe there are other warnings that care about this sort of thing?) )
Oh this turned out to be a MUCH easier solution than I was thinking, good catch! The changes LGTM as-is. I think we could potentially move this check further down given that we know it has side effects. I *think* it'd be fine directly above the `for` loop, at least from looking at the implementations of those other functions, I don't see others that are caching bits in the way that `isExternallyVisible()` ends up doing. However, I don't insist on moving it, either.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121328/new/
https://reviews.llvm.org/D121328
More information about the cfe-commits
mailing list