[all-commits] [llvm/llvm-project] ccc0b6: [clang] Avoid 'raw_string_ostream::str' (NFC)
Youngsuk Kim via All-commits
all-commits at lists.llvm.org
Fri Jul 5 04:45:55 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ccc0b66d6971b64175b4e99c6d5baaa2830c4208
https://github.com/llvm/llvm-project/commit/ccc0b66d6971b64175b4e99c6d5baaa2830c4208
Author: Youngsuk Kim <youngsuk.kim at hpe.com>
Date: 2024-07-05 (Fri, 05 Jul 2024)
Changed paths:
M clang/lib/AST/JSONNodeDumper.cpp
M clang/lib/Driver/ToolChains/Darwin.cpp
M clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
M clang/lib/Sema/SemaCodeComplete.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()`.
p.s. also remove some unneeded/dead code.
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