[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-commits
Subject: Re: [PATCH] Fix source range of destructor name
From: Olivier Goffart <ogoffart () kde ! org>
Date: 2014-01-15 22:06:12
Message-ID: 8130693.OD3GFdY9R0 () finn
[Download RAW message or body]
On Wednesday 15 January 2014 21:55:05 Richard Smith wrote:
> On Wed Jan 15 2014 at 1:51:41 PM, Justin Bogner <mail@justinbogner.com>
>
> wrote:
> > Olivier Goffart <ogoffart@kde.org> writes:
> > > From d131af55d2dc2cb6b2f7242697eb44d2e5d042da Mon Sep 17 00:00:00 2001
> > > From: Olivier Goffart <ogoffart@woboq.com>
> > > Date: Wed, 15 Jan 2014 19:45:12 +0100
> > > Subject: [PATCH] Fix source range of the destructor name.
> > >
> > > The problem is that the destructor's DeclarationNameInfo do not have
> > > a TypeSourceInfo because Sema::GetNameForDeclarator requires the
> > > ParsedType to be a LocInfoType.
> > >
> > > Setting a proper TypeSourceInfo to the destructor changes the way it
> > > it printed (from '~Foo' to '~struct Foo'. Hence the change in
> > > DeclarationName.cpp which also fix a bug when printing operator names.
> > >
> > > http://llvm.org/bugs/show_bug.cgi?id=15125
> >
> > Please add a test with this. Some minor comments below.
Thanks for the comments.
Any hint on how the test should be?
Is there already existing tests which tests source locations?
Thanks
--
Olivier
_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic