[cfe-dev] Suggestion for C++ migration tool: tr1 removal

Manuel Klimek klimek at google.com
Mon Mar 4 10:43:38 PST 2013


On Mon, Mar 4, 2013 at 5:43 PM, Marshall Clow <mclow.lists at gmail.com> wrote:

> On Mar 3, 2013, at 9:55 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>
> > On Fri, Mar 1, 2013 at 12:13 AM, Dmitri Gribenko <gribozavr at gmail.com>
> wrote:
> >> On Fri, Mar 1, 2013 at 12:06 AM, Marshall Clow <mclow.lists at gmail.com>
> wrote:
> >>> I think it would be great if the c++11 migration tool "migrated" away
> from using tr1 features in favor of using the ones in std.
> >>
> >> Sounds good!  If you are not going to work on it in immediate future,
> >> please put this text in
> >> http://clang.llvm.org/docs/ClangTools.html#ideas-for-new-tools
> >
> > I went ahead and committed this as r176423, to ensure that it does not
> get lost.
>
> So … how would you use the rewriting framework to change include file
> names?
>
> For example,
> change:         #include <tr1/unordered_map>
> to:                     #include <unordered_map>
>
> Or the more general - how do you change preprocessor directives?
>

We currently search for the text, and create replacements based on that.

Cheers,
/Manuel


>
> -- Marshall
>
> Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>
>
> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is
> promptly moderated down to (-1, Flamebait).
>         -- Yu Suzuki
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130304/5756eee7/attachment.html>


More information about the cfe-dev mailing list