[clang-tidy] llvm-twine-local ignores parameters
authorNathan James <n.james93@hotmail.co.uk>
Mon, 22 Jun 2020 17:25:44 +0000 (18:25 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Mon, 22 Jun 2020 17:25:45 +0000 (18:25 +0100)
commit9a8b0411448062e7231a0ee26bd14a3d1c097e9e
tree93dd3eae87dd839f695762a5c876d6b72e9a1601
parent37fb860301272d8138d289da5b606115b3fe5a13
[clang-tidy] llvm-twine-local ignores parameters

Ignore paramater declarations of type `::llvm::Twine`, These don't suffer the same use after free risks as local twines.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D82281
clang-tools-extra/clang-tidy/llvm/TwineLocalCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/llvm-twine-local.cpp