[all-commits] [llvm/llvm-project] 84d7f2: [flang] Tidy uses of raw_string_ostream (NFC)

Youngsuk Kim via All-commits all-commits at lists.llvm.org
Wed Sep 18 11:28:39 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84d7f294c485e36947b412cbfa69ad706ce6c9f0
      https://github.com/llvm/llvm-project/commit/84d7f294c485e36947b412cbfa69ad706ce6c9f0
  Author: Youngsuk Kim <youngsuk.kim at hpe.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/lib/Optimizer/Dialect/FIRType.cpp
    M flang/lib/Parser/parsing.cpp

  Log Message:
  -----------
  [flang] Tidy uses of raw_string_ostream (NFC)

As specified in the docs,
1) raw_string_ostream is always unbuffered and
2) the underlying buffer may be used directly

( 65b13610a5226b84889b923bae884ba395ad084d for further reference )

Avoid unneeded calls to raw_string_ostream::str(), to avoid excess indirection.



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