Missing 'static' on functions that are intended to be local to a translation
unit seems to be the most common cause of -Wmissing-prototypes warnings, so
suggesting a fix seems to be convenient and useful.
Details
Diff Detail
- Build Status
Buildable 5622 Build 5622: arc lint + arc unit
Event Timeline
lib/Sema/SemaDecl.cpp | ||
---|---|---|
11652 | Fix the format while here? | |
11653 | Maybe s/Possible/Possibly/ ? | |
11708 | Does this exclude templated functions? If not, the "static" might be put into the wrong place. | |
12114 | I wonder whether it is useful to display the changed message here. In the cases I have seen where the function definition is coming from a macro, you'd actually need to surround it with an unnamed namespace to fix. Maybe just add this logic to the outer if statement? |
Fix the format while here?