[PATCH] D18136: boost-use-to-string check
Piotr Padlewski via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 14 10:59:14 PDT 2016
Prazek added inline comments.
================
Comment at: test/clang-tidy/boost-use-to-string.cpp:76-81
@@ +75,8 @@
+// CHECK-FIXES: fun(std::to_string(f));
+ fun(boost::lexical_cast<std::string>(g));
+// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use std::to_string instead of boost::lexical_cast<std::string> [boost-use-to-string]
+// CHECK-FIXES: fun(std::to_string(g));
+ fun(boost::lexical_cast<std::string>(h));
+// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use std::to_string instead of boost::lexical_cast<std::string> [boost-use-to-string]
+// CHECK-FIXES: fun(std::to_string(h));
+ fun(boost::lexical_cast<std::string>(i));
----------------
LegalizeAdulthood wrote:
> Do we know that the semantics are the same for floating-point types?
I will check it.
http://reviews.llvm.org/D18136
More information about the cfe-commits
mailing list