[PATCH] D32700: [clang-tidy] Add bugprone-suspicious-memset-usage check.

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 12 08:36:13 PDT 2017


alexfh added inline comments.


================
Comment at: clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp:127-130
+    SourceRange LHSRange = FillChar->getSourceRange();
+    SourceRange RHSRange = ByteCount->getSourceRange();
+    StringRef RHSString = getAsString(Result, RHSRange);
+    StringRef LHSString = getAsString(Result, LHSRange);
----------------
It looks like this can be replaced with `clang::tooling::fixit::getText()` or even `createReplacement`.


https://reviews.llvm.org/D32700





More information about the cfe-commits mailing list