MyDeveloperDay added inline comments.
================
Comment at: clang-tidy/abseil/WrapUniqueCheck.cpp:54
+ const auto *facExpr = Result.Nodes.getNodeAs<CXXMemberCallExpr>("facCons");
+ const auto *callExpr = Result.Nodes.getNodeAs<CallExpr>("callExpr");
+
----------------
I'm not sure how expensive getNodeAs is... or if the convention is to do them
all at the top of the function
but couldn't some of these getNodeAs go inside the scope where they are used
if (facExpr){
const auto *callExpr = ....
================
Comment at: clang-tidy/abseil/WrapUniqueCheck.cpp:59
+ const auto *FC_Call = Result.Nodes.getNodeAs<CallExpr>("FC_call");
+
+ if (facExpr) {
----------------
same with the 2 above they are only used in the if (cons) scope
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57435/new/
https://reviews.llvm.org/D57435
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits