[all-commits] [llvm/llvm-project] 1e1874: [ObjectYAML] Remove redundant .str().c_str() (NFC)...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sat Nov 8 10:16:54 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1e18747353266e332d4d0f793838c81c0e84ea2e
https://github.com/llvm/llvm-project/commit/1e18747353266e332d4d0f793838c81c0e84ea2e
Author: Kazu Hirata <kazu at google.com>
Date: 2025-11-08 (Sat, 08 Nov 2025)
Changed paths:
M llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp
M llvm/lib/ObjectYAML/DXContainerYAML.cpp
Log Message:
-----------
[ObjectYAML] Remove redundant .str().c_str() (NFC) (#167154)
We can drop .str().c_str() here because all of the following are of
type StringRef:
- E.Name
- the second parameter of llvm::yaml::IO::enumCase
- the second parameter of llvm::yaml::IO::bitSetCase
Identified with readability-redundant-string-cstr.
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