[LLVMbugs] [Bug 5617] New: Inconsistency when reporting macro location

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Nov 25 15:50:43 PST 2009


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

           Summary: Inconsistency when reporting macro location
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mikhail.strelnikov at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Here clang says CL macro located in "<built-in>:114:15" (not clear what user
needs to fix):

$ echo "int foo() { return CL(1); }" | clang-cc "-DCL(a)=?"
<stdin>:1:20: error: expected expression
int foo() { return CL(1); }
                   ^
<built-in>:114:15: note: instantiated from:
#define CL(a) ?
              ^
1 diagnostic generated.



But here it says CL comes from "<command line>:1:12":

$ echo "int foo() { return CL(1); }" | clang-cc "-DCL(@)=?"
In file included from <built-in>:112:
<command line>:1:12: error: invalid token in macro parameter list
#define CL(@) ?
           ^
1 diagnostic generated.


I think consistency here could be important for IDE (it could open project (or
file) settings when clicked on error with '<command line>' location).


-- 
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