Remove unnecessary const&s; NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 23 May 2019 02:52:39 +0000 (02:52 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 23 May 2019 02:52:39 +0000 (02:52 +0000)
commit3d68a38be8d28e25160ff90ff9f35bee61173186
treee0e940da6c215f21fabdec46721f8c2598a1f83f
parenta86c889f051267b69621d15848deaae3928bca90
Remove unnecessary const&s; NFC

It's uncommon to rely on temporary lifetime extension when having a
regular, non-`const&` value behaves identically. Since `Twine::str`
and `buildFixMsgForStringFlag` both return regular `std::string`s,
there's seemingly no point in having `const&` here.

llvm-svn: 361457
clang-tools-extra/clang-tidy/android/CloexecAcceptCheck.cpp
clang-tools-extra/clang-tidy/android/CloexecCheck.cpp
clang-tools-extra/clang-tidy/android/CloexecDupCheck.cpp