brintos

brintos / llvm-project-archived public Read only

0
0
Text · 516 B · e989f7c Raw
18 lines · plain
1.. title:: clang-tidy - abseil-str-cat-append2 3abseil-str-cat-append4=====================5 6Flags uses of ``absl::StrCat()`` to append to a ``std::string``. Suggests7``absl::StrAppend()`` should be used instead.8 9The extra calls cause unnecessary temporary strings to be constructed. Removing10them makes the code smaller and faster.11 12.. code-block:: c++13 14  a = absl::StrCat(a, b); // Use absl::StrAppend(&a, b) instead.15 16Does not diagnose cases where ``absl::StrCat()`` is used as a template17argument for a functor.18