[llvm-bugs] [Bug 32250] New: PVS-Studio: copy-paste code

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 13 02:09:58 PDT 2017


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

            Bug ID: 32250
           Summary: PVS-Studio: copy-paste code
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: razmyslov at viva64.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18086
  --> https://bugs.llvm.org/attachment.cgi?id=18086&action=edit
svn patch

We have found and fixed an error using PVS-Studio tool: PVS-Studio is a static
code analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/

Analyzer warning: V517 The use of 'if (A) {...} else if (A) {...}' pattern was
detected. There is a probability of logical error presence.

-- 
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/20170313/bcb96622/attachment.html>


More information about the llvm-bugs mailing list