[PATCH] D18136: boost-use-to-string check
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 27 04:35:18 PDT 2016
alexfh requested changes to this revision.
This revision now requires changes to proceed.
================
Comment at: clang-tidy/boost/BoostTidyModule.cpp:26
@@ -22,3 +25,3 @@
ClangTidyOptions getModuleOptions() override {
ClangTidyOptions Options;
----------------
This method doesn't do anything, please remove it.
================
Comment at: clang-tidy/boost/UseToStringCheck.cpp:37
@@ +36,3 @@
+ isStrictlyInteger()))))))),
+ argumentCountIs(1), unless(hasParent(isInTemplateInstantiation())))
+ .bind("to_string"),
----------------
Why do you need `hasParent()` around `isInTemplateInstantiation()`?
================
Comment at: clang-tidy/boost/UseToStringCheck.cpp:68
@@ +67,3 @@
+ Call->getArg(0)->getExprLoc()),
+ (llvm::Twine("std::to_") + StringType + llvm::Twine("(")).str());
+}
----------------
No need for the second `llvm::Twine`.
================
Comment at: docs/clang-tidy/checks/boost-use-to-string.rst:12
@@ +11,3 @@
+overloads, because it would change the behaviour.
+
+
----------------
Please remove one empty line.
http://reviews.llvm.org/D18136
More information about the cfe-commits
mailing list