[LLVMbugs] [Bug 6367] New: [QOI] warn about free functions which shadow one in a namespace
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Feb 21 11:08:55 PST 2010
http://www.llvm.org/bugs/show_bug.cgi?id=6367
Summary: [QOI] warn about free functions which shadow one in a
namespace
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: dgregor at apple.com
Estimated Hours: 0.0
I would like clang to optionally warn me about 'f0' in this:
--
ddunbar at giles:tmp$ cat t.cpp
void f1();
namespace foo {
void f0();
void f1();
}
void f0() {} // expected-warning {{something nice}}
void f1() {}
ddunbar at giles:tmp$ clang -Wall -c t.cpp
ddunbar at giles:tmp$
--
I almost never care to implement a non-static, undeclared function. I want
clang to point out that I am doing this when it can find a 'f0' inside a
different namespace. I want a fixit for adding 'foo::'.
--
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the llvm-bugs
mailing list