arphaman added inline comments.

================
Comment at: lib/Tooling/ASTDiff/ASTDiff.cpp:359
+
+  explicit SNodeId(int Id) : Id(Id){};
+  explicit SNodeId() = default;
----------------
NIT: This ';' is redundant.


================
Comment at: lib/Tooling/ASTDiff/ASTDiff.cpp:363
+  operator int() const { return Id; }
+  SNodeId &operator++() { return ++this->Id, *this; }
+  SNodeId &operator--() { return --this->Id, *this; }
----------------
NIT: You don't need 'this' here or in the 2 methods below.


================
Comment at: lib/Tooling/ASTDiff/ASTDiff.cpp:809
+    NodeId P1 = M.getSrc(P2);
+    assert(P1.isValid());
+    Node &Parent1 = T1.getMutableNode(P1);
----------------
Missing assertion message.


https://reviews.llvm.org/D34329



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

Reply via email to