[PATCH] D25065: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace.
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 4 05:21:54 PDT 2016
ioeric added inline comments.
> hokein wrote in ChangeNamespace.cpp:187
> I think the statement doesn't compile here, since `consume_front` return a `bool`. It should be `if (DeclName.consume_front((NsName + "::")))`?
>
> Looks like we can also put this judge into the above `while` statement?
Note that `str()` is called on `(NsName + "::")` instead of `consume_front`. But you are right, we can put the check into the while loop.
https://reviews.llvm.org/D25065
More information about the cfe-commits
mailing list