http://llvm.org/bugs/show_bug.cgi?id=9647
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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs