http://llvm.org/bugs/show_bug.cgi?id=9058
Summary: warn on pointless qualifiers with fixit to remove them
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
We'd like a warning on the qualifier in code like:
bool const f();
void f(const int x);
with fixit to remove the dead qualifier. The one use case we want to not break
is:
void f(int *ptr);
void f(int * const ptr) {
*ptr++; // the const prevents the typo "ptr++;"
}
I'm proposing the warning name -Wpointless-qualifier.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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