[PATCH] D145313: [clang-tidy] Make readability-container-size-empty check using <string> header
Mike Crowe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 4 13:11:19 PST 2023
mikecrowe created this revision.
mikecrowe added a reviewer: carlosgalvezp.
Herald added a subscriber: xazax.hun.
Herald added a project: All.
mikecrowe requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Improve the generic <string> header by adding the size() method so that
it can be used to replace the custom implementation in the
readability-container-size-empty check.
This requires fixing an incorrect comparison of a std::wstring with a
char string literal.
Unfortunately, removing the custom basic_string implementation means
fixing the line numbers for many of the checks.
Depends on D145312 <https://reviews.llvm.org/D145312>
https://reviews.llvm.org/D145313
Files:
clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/string
clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145313.502389.patch
Type: text/x-patch
Size: 16943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230304/b4c02ee2/attachment-0001.bin>
More information about the cfe-commits
mailing list