http://llvm.org/bugs/show_bug.cgi?id=16286
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: [email protected]
Reporter: [email protected]
CC: [email protected]
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
#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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs