[all-commits] [llvm/llvm-project] ac84ad: [clang] Avoid 'raw_string_ostream::str' (NFC)

Youngsuk Kim via All-commits all-commits at lists.llvm.org
Sun Jun 30 08:09:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac84ada9a169a72ad136ef05c2c194f594f24a37
      https://github.com/llvm/llvm-project/commit/ac84ada9a169a72ad136ef05c2c194f594f24a37
  Author: Youngsuk Kim <youngsuk.kim at hpe.com>
  Date:   2024-06-30 (Sun, 30 Jun 2024)

  Changed paths:
    M clang/lib/Tooling/Transformer/Stencil.cpp
    M clang/unittests/AST/MatchVerifier.h
    M clang/unittests/Interpreter/InterpreterTest.cpp
    M clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp
    M clang/unittests/Tooling/ReplacementsYamlTest.cpp

  Log Message:
  -----------
  [clang] Avoid 'raw_string_ostream::str' (NFC)

Since `raw_string_ostream` doesn't own the string buffer, it is
desirable (in terms of memory safety) for users to directly reference
the string buffer rather than use `raw_string_ostream::str()`.

Work towards TODO comment to remove `raw_string_ostream::str()`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list