Debian Codegraph @

llvm-project/clang-tools-extra/docs/clang-tidy/checks/llvm/twine-local.rst

raw
1 .. title:: clang-tidy - llvm-twine-local
2
3 llvm-twine-local
4 ================
5
6
7 Looks for local ``Twine`` variables which are prone to use after frees and
8 should 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();