[all-commits] [llvm/llvm-project] 46a2ab: [clang-doc][nfc] Avoid constructing SmallString in...
Paul Kirth via All-commits
all-commits at lists.llvm.org
Mon Jul 8 16:30:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 46a2abb91cb6cfac9b807ae2055cc5f1743405e4
https://github.com/llvm/llvm-project/commit/46a2abb91cb6cfac9b807ae2055cc5f1743405e4
Author: Paul Kirth <paulkirth at google.com>
Date: 2024-07-08 (Mon, 08 Jul 2024)
Changed paths:
M clang-tools-extra/clang-doc/HTMLGenerator.cpp
Log Message:
-----------
[clang-doc][nfc] Avoid constructing SmallString in ToString method (#96921)
This patch updates the return type of HTMLTag::toString from
SmallString<16> to StringRef, since this API only returns string
literals. As a result, there is no need to construct a full heap
allocated or owned string.
Additionally, this patch renames ToString to toString to match the LLVM
style guide.
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