[PATCH] D24893: [clang-tidy] make readability-redundant-smartptr-get report get() usage in conditions
    Alexander Kornienko via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sat Sep 24 19:54:45 PDT 2016
    
    
  
alexfh added inline comments.
================
Comment at: clang-tidy/readability/RedundantSmartptrGetCheck.cpp:64
@@ -63,3 +63,3 @@
   const auto IsAKnownSmartptr = recordDecl(
       anyOf(hasName("::std::unique_ptr"), hasName("::std::shared_ptr")));
 
----------------
BTW, this can be done using hasAnyName.
https://reviews.llvm.org/D24893
    
    
More information about the cfe-commits
mailing list