[PATCH] D121328: Disable -Wmissing-prototypes for internal linkage functions that aren't explicitly marked "static"""
James Y Knight via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 22 14:25:25 PDT 2022
jyknight added a comment.
Given that this is an error `error: functions cannot be declared in an anonymous struct` (thus you can assume that function declarations inside a struct imply that the struct MUST have a linkage name)
struct {
static int foo();
};
then I don't think there's any conceptual reason why we cannot emit the desired diagnostics without the undesired side-effect.
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