[llvm-bugs] [Bug 37674] New: Could Clang warn about string concatenation here?

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 4 01:21:45 PDT 2018


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

            Bug ID: 37674
           Summary: Could Clang warn about string concatenation here?
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvm-bugs at lists.llvm.org

Just a thought: maybe Clang could figure out the user didn't intend for string
concatenation here, but forgot a comma:

  const char *ss[] = {
  "foo", "bar",
  "baz", "qux"  // <-- Missing comma!
  "abc", "xyz"
  };

-- 
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/20180604/c85f54d3/attachment.html>


More information about the llvm-bugs mailing list