gribozavr2 marked an inline comment as done.
gribozavr2 added inline comments.


================
Comment at: clang/include/clang/AST/RecursiveASTVisitor.h:649
+  case BO_##NAME:                                                              
\
+    if (isSameMethod(&RecursiveASTVisitor::TraverseBin##NAME,                  
\
+                     &Derived::TraverseBin##NAME)) {                           
\
----------------
eduucaldas wrote:
> There's only one place that call PostVisitStmt. Could we pull this 
> conditional there? It is repeated in every macro. It would make this function 
> much simpler, and make clear at call site what is being done
Unfortunately, we can't, because every call to `isSameMethod` has different 
arguments.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82787



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

Reply via email to