[LLVMbugs] [Bug 16286] New: -Wmissing-declarations is not implemented to mean what GCC means

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jun 9 13:18:12 PDT 2013


            Bug ID: 16286
           Summary: -Wmissing-declarations is not implemented to mean what
                    GCC means
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: b.r.longbons at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10660
  --> http://llvm.org/bugs/attachment.cgi?id=10660&action=edit
basic test case for both warnings

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

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.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130609/0e8a8e3d/attachment.html>

More information about the llvm-bugs mailing list