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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
   Estimated Hours: 0.0


I would like clang to optionally warn me about 'f0' in this:
--
ddun...@giles:tmp$ cat t.cpp
void f1();
namespace foo {
  void f0();
  void f1();
}
void f0() {} // expected-warning {{something nice}}
void f1() {}
ddun...@giles:tmp$ clang -Wall -c t.cpp
ddun...@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to