[llvm-bugs] [Bug 39150] New: Warning for multiple variable declarations with pointer nad not pointer type

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 2 02:50:52 PDT 2018


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

            Bug ID: 39150
           Summary: Warning for multiple variable declarations with
                    pointer nad not pointer type
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: dcoughlin at apple.com
          Reporter: david.bolvansky at gmail.com
                CC: llvm-bugs at lists.llvm.org

void foo() {
      char* a, b;
}

Maybe it would be useful to warn that type of b is 'char' (and not 'char *') as
someone may expect that b is 'char *'?

-- 
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/20181002/6948b9a9/attachment.html>


More information about the llvm-bugs mailing list