[PATCH] D20196: [clang-tidy] Inefficient string operation

Bittner Barni via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 5 04:44:16 PDT 2016


bittnerbarni updated this revision to Diff 59661.
bittnerbarni marked 6 inline comments as done.
bittnerbarni added a comment.

Removed the unnecessary hasDescendant calls and simplified the checker as suggested. Tested on LLVM codebase, with minor improvements in speed (~1%).


http://reviews.llvm.org/D20196

Files:
  clang-tidy/performance/CMakeLists.txt
  clang-tidy/performance/InefficientStringConcatenationCheck.cpp
  clang-tidy/performance/InefficientStringConcatenationCheck.h
  clang-tidy/performance/PerformanceTidyModule.cpp
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/performance-inefficient-string-concatenation.rst
  test/clang-tidy/performance-inefficient-string-concatenation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20196.59661.patch
Type: text/x-patch
Size: 11200 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160605/cc79ad3d/attachment.bin>


More information about the cfe-commits mailing list