Introduce the abseil-redundant-strcat-calls check.
authorAaron Ballman <aaron@aaronballman.com>
Wed, 29 Aug 2018 11:29:07 +0000 (11:29 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 29 Aug 2018 11:29:07 +0000 (11:29 +0000)
commitca5f775dbef8fa07d0fd4935e247e8865e324a6e
tree2974fe43d0b376e61bab481a647255a187e7bcf4
parent09cc7af85a95eef2ada5433142174f9c9be317d5
Introduce the abseil-redundant-strcat-calls check.

This flags redundant calls to absl::StrCat where the result is being passed to another call to absl::StrCat or absl::StrAppend. Patch by Hugo Gonzalez and Samuel Benzaquen.

llvm-svn: 340918
clang-tools-extra/clang-tidy/abseil/AbseilTidyModule.cpp
clang-tools-extra/clang-tidy/abseil/CMakeLists.txt
clang-tools-extra/clang-tidy/abseil/RedundantStrcatCallsCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/abseil/RedundantStrcatCallsCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/abseil-redundant-strcat-calls.cpp [new file with mode: 0644]