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

Reka Kovacs via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 12 12:00:49 PDT 2017


rnkovacs updated this revision to Diff 106268.
rnkovacs added a comment.
Herald added a subscriber: baloghadamsoftware.

- Added `char[]` exception along with a test case. There are no more false positives on LLVM.
- Simplified fix-its by using `clang::tooling::fixit` functions.


https://reviews.llvm.org/D32700

Files:
  clang-tidy/CMakeLists.txt
  clang-tidy/bugprone/BugproneTidyModule.cpp
  clang-tidy/bugprone/CMakeLists.txt
  clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp
  clang-tidy/bugprone/SuspiciousMemsetUsageCheck.h
  clang-tidy/google/CMakeLists.txt
  clang-tidy/google/GoogleTidyModule.cpp
  clang-tidy/google/MemsetZeroLengthCheck.cpp
  clang-tidy/google/MemsetZeroLengthCheck.h
  clang-tidy/tool/CMakeLists.txt
  clang-tidy/tool/ClangTidyMain.cpp
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/bugprone-suspicious-memset-usage.rst
  docs/clang-tidy/checks/google-runtime-memset.rst
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/index.rst
  test/clang-tidy/bugprone-suspicious-memset-usage.cpp
  test/clang-tidy/google-runtime-memset-zero-length.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32700.106268.patch
Type: text/x-patch
Size: 27369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170712/3a11499d/attachment-0001.bin>


More information about the cfe-commits mailing list