[LLVMbugs] [Bug 2583] New: Source location not tracked for nested macros

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jul 22 14:31:22 PDT 2008


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

           Summary: Source location not tracked for nested macros
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: richard at imendio.com
                CC: llvmbugs at cs.uiuc.edu


Constructs such as

  FOO(BAR(m)->abc)

result in error messages like:

FOO(BAR(m)->abc);
^~~
macro.c:18:15: error: no member named 'abc'

while it could ideally be:

  FOO(BAR(m)->abc);
         ~~~~~~  ^

Using macros like this might seem useless but is a very common pattern in
GObject based code (the object system used in GTK+/GNOME). In addition to just
giving clearer error message, it would be useful for a refactoring tool for
GTK+ I'm working on, which would work much better if there was more location
information available for nested macros.


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