alexfh added inline comments.

================
Comment at: clang-tidy/readability/RedundantStringCStrCheck.cpp:92
@@ -91,3 +91,3 @@
           argumentCountIs(1),
-          hasDeclaration(cxxMethodDecl(hasName(StringConstructor)))),
+          hasDeclaration(cxxMethodDecl(matchesName(StringConstructor)))),
       cxxConstructExpr(
----------------
`hasName("basic_string")` should be enough. Same for `c_str`.


http://reviews.llvm.org/D18412



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

Reply via email to