Skip to content
Commit 7532d3e9 authored by Alexander Kornienko's avatar Alexander Kornienko
Browse files

[clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stl

containers.

Summary:
sizeof(some_std_string) is likely to be an error. This check finds this
pattern and suggests using .size() instead.

Reviewers: djasper, klimek, aaron.ballman

Subscribers: aaron.ballman, cfe-commits

Differential Revision: http://reviews.llvm.org/D12759

llvm-svn: 247297
parent e3b1f2b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment