[PATCH] D12759: [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stlcontainers.
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 08:54:52 PDT 2015
alexfh updated this revision to Diff 34451.
alexfh marked 3 inline comments as done.
alexfh added a comment.
Don't complain on the ARRAYSIZE(<array of containers>) pattern (where
sizeof(container) is used as a denominator).
http://reviews.llvm.org/D12759
Files:
clang-tidy/misc/CMakeLists.txt
clang-tidy/misc/MiscTidyModule.cpp
clang-tidy/misc/SizeofContainerCheck.cpp
clang-tidy/misc/SizeofContainerCheck.h
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/misc-sizeof-container.rst
test/clang-tidy/misc-sizeof-container.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12759.34451.patch
Type: text/x-patch
Size: 9603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150910/a4c8ba27/attachment.bin>
More information about the cfe-commits
mailing list