[PATCH] D124918: [clang-tidy] Add a new check for non-trivial unused variables.
    Eugene Zelenko via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed May  4 08:07:02 PDT 2022
    
    
  
Eugene.Zelenko added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/performance/UnusedNoSideEffectCheck.cpp:135
+    // or class, and that there are no side effects on `this`.
+    if (auto *Callee = dyn_cast<MemberExpr>(Call->getCallee())) {
+      markSideEffectFree(Callee);
----------------
`const auto *`. Same in other similar places.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124918/new/
https://reviews.llvm.org/D124918
    
    
More information about the cfe-commits
mailing list