Disable -Wmissing-prototypes for internal linkage functions that aren't explicitly...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 1 Feb 2022 01:32:31 +0000 (17:32 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 1 Feb 2022 01:34:51 +0000 (17:34 -0800)
commit275c56226d7fbd6a4d554807374f78d323aa0c1c
tree305301f85c2f38a825df8d7761a33b499a6e51b3
parentd329dfd0c8576f022ce851a41d9555884b876390
Disable -Wmissing-prototypes for internal linkage functions that aren't explicitly marked "static"

Some functions can end up non-externally visible despite not being
declared "static" or in an unnamed namespace in C++ - such as by having
parameters that are of non-external types.

Such functions aren't mistakenly intended to be defining some function
that needs a declaration. They could be maybe more legible (except for
the `operator new` example) with an explicit static, but that's a
stylistic thing outside what should be addressed by a warning.
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/warn-missing-prototypes.cpp