[PATCH] D41740: [clang-tidy] Adding a new bugprone check for streaming objects of type int8_t or uint8_t

Barry Revzin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 10:01:13 PST 2018


BRevzin updated this revision to Diff 128768.
BRevzin added a comment.

Updates based on review comments  - and rebased off of latest so as to get the ReleaseNotes right.  Added options so that the user can provide the list of stream types and int typedef types, as desired, defaulting to just `basic_ostream` and `int8_t`/`uint8_t`.


https://reviews.llvm.org/D41740

Files:
  clang-tidy/bugprone/BugproneTidyModule.cpp
  clang-tidy/bugprone/CMakeLists.txt
  clang-tidy/bugprone/StreamInt8Check.cpp
  clang-tidy/bugprone/StreamInt8Check.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/bugprone-stream-int8.rst
  docs/clang-tidy/checks/list.rst
  test/clang-tidy/bugprone-stream-int8.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41740.128768.patch
Type: text/x-patch
Size: 10091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180105/3028d752/attachment.bin>


More information about the cfe-commits mailing list