[llvm-bugs] [Bug 32065] New: split off subgroup of -Wold-style-cast for casts that resolve to reinterpret_cast or const_cast

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 24 11:49:13 PST 2017


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

            Bug ID: 32065
           Summary: split off subgroup of -Wold-style-cast for casts that
                    resolve to reinterpret_cast or const_cast
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

-Wold-style-cast is effectively a stylistic warning right now (warning on a
particular, older syntax). It would be useful to have a special case of that
warning group that only warns on "unsafe" casts performed via an old-style
cast: specifically, one that cannot also be performed by a static_cast.

-- 
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/20170224/5b8fe9c4/attachment-0001.html>


More information about the llvm-bugs mailing list