[cfe-commits] Patch to correct start location of FieldDecls in template instantiations

Daniel Jasper djasper at google.com
Tue May 22 12:18:22 PDT 2012


Hello,

I have noticed that the start location of FieldDecls is different in
template instantiations and in the primary template (the instantiations
loose the location of leading qualifiers). The reason is that the location
of qualifiers is currently not tracked in the TypeLocs. However, it makes
sense to use the primary template's inner start location making the two
FieldDecls have the same code range independent of the TypeLoc
implementation.

Please find the corresponding patch attached.

Kind regards,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120522/eeaab55e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FieldDeclLocPatch
Type: application/octet-stream
Size: 759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120522/eeaab55e/attachment.obj>


More information about the cfe-commits mailing list