<div dir="ltr"><div>Hi, </div><div><br></div><div>We want to enable the warning -Wmissing-prototypes to enforce internal linkage as much as possible. It works great, with one caveat - it suggests to use "static". Internal linkage can also be achieved with anonymous namespaces and Clang will not issue a warning.</div><div><br></div><div>Now, the question as to what to use (static vs anonymous namespaces) is mostly a style issue (a "Microscopic Detail" in the LLVM Coding Guidelines). At our company we have decided to prefer anonymous namespaces over static, so we wouldn't want Clang to start suggesting people (especially junior devs that trust the tools blindly) to use static.</div><div><br></div><div>Therefore I wanted to ask here - would it be possible to make the suggestion more generic, maybe displaying both alternatives? Best would be making this user-configurable but I'm guessing that's not a trivial thing to do.</div><div><br></div><div>I'm happy to implement the changes given some pointers, but I want to check here first if you'd agree with it.</div><div><br></div><div>Thanks!</div><div>/Carlos</div><div><br></div><div><br></div><div><br></div></div>