1.. title:: clang-tidy - llvm-twine-local
2
3llvm-twine-local
4================
5
6
7Looks for local ``Twine`` variables which are prone to use after frees and
8should be generally avoided.
9
10.. code-block:: c++
11
12  static Twine Moo = Twine("bark") + "bah";
13
14  // becomes
15
16  static std::string Moo = (Twine("bark") + "bah").str();
17