From: Nathan James Date: Tue, 10 Mar 2020 12:50:58 +0000 (+0000) Subject: [NFC] Tweak OptionsUtils X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fc5be06694fe3cbe9d2b60179c93a74d7083764;p=platform%2Fupstream%2Fllvm.git [NFC] Tweak OptionsUtils --- diff --git a/clang-tools-extra/clang-tidy/utils/OptionsUtils.cpp b/clang-tools-extra/clang-tidy/utils/OptionsUtils.cpp index 8a7f1c30..25677fa 100644 --- a/clang-tools-extra/clang-tidy/utils/OptionsUtils.cpp +++ b/clang-tools-extra/clang-tidy/utils/OptionsUtils.cpp @@ -22,13 +22,13 @@ std::vector parseStringList(StringRef Option) { for (StringRef &Name : Names) { Name = Name.trim(); if (!Name.empty()) - Result.push_back(std::string(Name)); + Result.emplace_back(Name); } return Result; } std::string serializeStringList(ArrayRef Strings) { - return llvm::join(Strings.begin(), Strings.end(), StringsDelimiter); + return llvm::join(Strings, StringsDelimiter); } } // namespace options