[LLVMbugs] [Bug 9647] New: extent of MacroDefinition cursor is wrong

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 7 15:42:20 PDT 2011


           Summary: extent of MacroDefinition cursor is wrong
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: stefan at seefeld.name
                CC: llvmbugs at cs.uiuc.edu

There are actually two issues:

1) For normal (C, C++) declarators it has been decided to report the extent
start as the first token of the declaration specifier.
I would argue that for macro definitions, the extent start should fall on the
'#' token / character.

2) For a macro definition "#define FOO() ", the range end is reported to not
include the parens. When I change it to "#define FOO () " (i.e. insert a
whitespace), the parens are included, too.

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