[cfe-dev] Adding -add-override functionality to cpp11-migrate tool
Dmitri Gribenko
gribozavr at gmail.com
Tue Feb 5 10:23:43 PST 2013
On Tue, Feb 5, 2013 at 7:44 PM, Philip Dunstan <phil at philipdunstan.com> wrote:
> I haven't modified yet how the insertion point for the override keyword is
> calculated. Dmitri suggested FunctionTypeLoc::getRParenLoc() but I don't
> think that this will work if there is a trailing const keyword or deferred
> return type.
Could you please add a test with a trailing return type anyway?
class A {
public:
virtual int h();
};
class B {
public:
auto h() -> int;
};
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-dev
mailing list