gribozavr2 added inline comments.

================
Comment at: clang/include/clang/Tooling/Syntax/Tree.h:172-174
   /// Find the first node with a corresponding role.
   Node *findChild(NodeRole R);
+  const Node *findChild(NodeRole R) const;
----------------
eduucaldas wrote:
> I think that makes sense, since all the functions used by `findChild` are 
> public anyways.
> 
> WDYT Dmitri? Now that the API is being used I realize its surface ^^. Perhaps 
> we should pour some thought into that in the future :) 
> 
I think it makes sense. Const-correctness often creates this type of API 
duplication.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88553

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

Reply via email to