[LLVMbugs] [Bug 10011] New: clang should warn on "string.empty()" when the return value is ignored
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 25 09:39:23 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10011
Summary: clang should warn on "string.empty()" when the return
value is ignored
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
#include <string>
using namespace std;
void f(string& s) {
s.empty();
}
Chances are the programmer meant |s.clear()| instead.
--
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