[llvm-bugs] [Bug 32181] New: Warning about `scope:;name()` typos

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 8 08:26:21 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=32181

            Bug ID: 32181
           Summary: Warning about `scope:;name()` typos
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: arcata at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

https://twitter.com/sigfpe/status/839294766994989058

It's easy to make the type `std:;foo()` when you meant `std::foo()`, which can
end up quietly doing the same thing if you happening to be using the namespace.
It's unlikely that a user really meant a labeled empty statement followed by an
unqualified function call, so it'd be good to throw up a warning and fixit
here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170308/06c75309/attachment.html>


More information about the llvm-bugs mailing list