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

Could you add the following tests?

  struct Point { int x, y; } point, *pointPtr;
  typedef struct Point { int x, y; } PointTy, *PointPtr;
  typedef struct { int x, y; } PointTy, *PointPtr;



================
Comment at: clang/lib/Tooling/Syntax/BuildTree.cpp:278
+
+    const auto *TD = llvm::dyn_cast<T>(D);
+    if (TD == nullptr) {
----------------
I think this cast should not be necessary -- `D` is already a `const T*`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76922/new/

https://reviews.llvm.org/D76922



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

Reply via email to