ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.

Lg with two nits.



================
Comment at: clang-move/ClangMove.cpp:145
+  void run(const MatchFinder::MatchResult &Result) override {
+    auto *SM = &Result.Context->getSourceManager();
+    if (const auto *FD =
----------------
Maybe just inline this variable since this is only used once.


================
Comment at: clang-move/ClangMove.cpp:146
+    auto *SM = &Result.Context->getSourceManager();
+    if (const auto *FD =
+            Result.Nodes.getNodeAs<clang::FunctionDecl>("function")) {
----------------
I'd `assert(FD)` instead.


https://reviews.llvm.org/D26665



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to