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

Youngsuk Kim via All-commits all-commits at lists.llvm.org
Thu Jul 4 20:00:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e211744b82a72e08c137f75b1c671713e2891af
      https://github.com/llvm/llvm-project/commit/9e211744b82a72e08c137f75b1c671713e2891af
  Author: Youngsuk Kim <youngsuk.kim at hpe.com>
  Date:   2024-07-04 (Thu, 04 Jul 2024)

  Changed paths:
    M clang/lib/InstallAPI/DiagnosticBuilderWrappers.cpp
    M clang/unittests/Frontend/CompilerInstanceTest.cpp
    M clang/unittests/Tooling/LexicallyOrderedRecursiveASTVisitorTest.cpp
    M clang/utils/TableGen/ClangAttrEmitter.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 item 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