[LLVMbugs] [Bug 9058] New: warn on pointless qualifiers with fixit to remove them
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 26 11:09:17 PST 2011
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: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list