[cfe-commits] [Patch] correct scope token location when parsing GNU attributes

Michael Han Michael.Han at autodesk.com
Tue Oct 2 22:03:18 PDT 2012


Hi,

Attached patch correct the source location of scopes when parsing and creating an attribute in GNU syntax: since the GNU syntax attribute does not have scope tokens, we shall use a newly created SourceLocation() instead of reuse the attribute token source location. As a result, when emitting diagnostics the valid of the locations needs to be checked first before used.

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attrloc.patch
Type: application/octet-stream
Size: 1995 bytes
Desc: attrloc.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121003/4beace09/attachment.obj>


More information about the cfe-commits mailing list