hokein added inline comments.
================ Comment at: change-namespace/ChangeNamespace.cpp:233 + const DeclContext *DeclCtx, SourceLocation Loc) { + return SM.isBeforeInTranslationUnit(SM.getSpellingLoc(D->getLocation()), + SM.getSpellingLoc(Loc)) && ---------------- I will create two variables for `SM.getSpellingLoc(D->getLocation())` and `SM.getSpellingLoc(Loc)` to avoid redundant function call. ================ Comment at: change-namespace/ChangeNamespace.cpp:569 + StringRef FromDeclNameRef = FromDeclName; + if (FromDeclNameRef.consume_front(UsingNamespace->getNominatedNamespace() + ->getQualifiedNameAsString())) { ---------------- Shouldn't we check whether the using namespace decl is visible here? https://reviews.llvm.org/D25771 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits