[LLVMbugs] [Bug 4084] New: fix-it diagnostics on multiple lines need fixin'

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Apr 26 17:16:40 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4084

           Summary: fix-it diagnostics on multiple lines need fixin'
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


This is confusing and weird:
--
ddunbar at frank:tmp$ cat t.c
int f0(char *a, char *b) {
  return ("a" != 
          "b");
}
ddunbar at frank:tmp$ clang -Wall -fsyntax-only /tmp/t.c
/tmp/t.c:2:15: warning: result of comparison against a string literal is
unspecified (use strcmp instead)
  return ("a" != 
          ~~~ ^~
          strcmp(
1 diagnostic generated.
--

Also, the strcmp is in a somewhat funny place.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list