LLDB's logging infrastructure supports prepending log messages with the name of the file and function that generates the log (see help log enable). Therefore it's unnecessary to include the current __FUNCTION__ in the log message itself. This patch removes __FUNCTION__ from log messages in the Host library.
Details
Details
- Reviewers
bulbazord mib - Group Reviewers
Restricted Project - Commits
- rG7cd1d4231a7c: [lldb] Remove __FUNCTION__ from log messages in lldbHost (NFC)
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The change itself looks fine and is fairly mechanical. Easy to verify.
One thing that I see here is we're treating the result of llvm::StringRef::data() as a c-string which isn't guaranteed to be true. That makes me a little nervous. As frustrating as temporary allocations are, the right thing to do would be something like foo.str().c_str() where foo is a StringRef. If you think it's appropriate, can you change those instances in this patch? If not we can do it in a follow-up.
Comment Actions
LGTM! Are you considering doing it for the rest of the codebase as well ? That would be very nice :)
Comment Actions
Yup, that's the goal. I wanted to gather some initial feedback before I go through the other libs.