[LLVMbugs] [Bug 14952] SourceRange for global declaration is wrong

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 15 17:06:46 PST 2013


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

Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|                            |INVALID

--- Comment #3 from Eli Friedman <sharparrow1 at yahoo.com> 2013-01-15 19:06:46 CST ---
The end of a source range points at the beginning of the last token
in that range.The source range for the declaration should be:

static int x = 12;
           ^^^^^^

This is represented by the range where begin=1:12,end=1:16.  The range
for the entire declaration statement is begin=1:1,end=1:18.

Please reopen with more details if something still isn't working how
you think it should.

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