arphaman added inline comments.

================
Comment at: lib/Tooling/ASTDiff/ASTDiff.cpp:371
+  std::string ContextPrefix;
+  if (auto *Namespace = dyn_cast<NamespaceDecl>(Context))
+    ContextPrefix = Namespace->getQualifiedNameAsString();
----------------
You don't need to check both `NamespaceDecl` and `TagDecl`, since you can just 
do one if with a `NamedDecl`.


https://reviews.llvm.org/D36187



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D36187: [cla... Alex Lorenz via Phabricator via cfe-commits

Reply via email to