-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer
Description
| Bugzilla Link | 16286 |
| Version | unspecified |
| OS | Linux |
| Attachments | basic test case for both warnings |
| Reporter | LLVM Bugzilla Contributor |
| CC | @dwblaikie |
Extended Description
Even more than the still-unfixed bug #4803, I find -Wmissing-declarations essential in C++ to make accidental parameter mismatches compiler errors rather than linker errors.
However, -Wmissing-declarations seems to be used for something else, as in bug #10830.
Additionally, you could emit better warnings than GCC if, when emitting the warning for -Wmissing-declarations, you also emit the location of any declarations this definition is overloading.
zopsicle
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer