[all-commits] [llvm/llvm-project] 777180: [ADT] Make StringRef's std::string conversion oper...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Tue Jan 28 14:49:33 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 777180a32b61070a10dd330b4f038bf24e916af1
      https://github.com/llvm/llvm-project/commit/777180a32b61070a10dd330b4f038bf24e916af1
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2020-01-28 (Tue, 28 Jan 2020)

  Changed paths:
    M clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
    M clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
    M clang-tools-extra/clangd/unittests/FuzzyMatchTests.cpp
    M clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
    M clang-tools-extra/clangd/unittests/SourceCodeTests.cpp
    M clang-tools-extra/clangd/unittests/XRefsTests.cpp
    M lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
    M lldb/unittests/Utility/EventTest.cpp
    M lldb/unittests/Utility/ScalarTest.cpp
    M lldb/unittests/tools/lldb-server/tests/MessageObjects.cpp
    M lldb/unittests/tools/lldb-server/tests/TestBase.cpp
    M lldb/unittests/tools/lldb-server/tests/TestBase.h
    M llvm/include/llvm/ADT/StringRef.h

  Log Message:
  -----------
  [ADT] Make StringRef's std::string conversion operator explicit

This has the same behavior as converting std::string_view to
std::string. This is an expensive conversion, so explicit conversions
are helpful for avoiding unneccessary string copies.




More information about the All-commits mailing list