[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 27 09:19:11 PDT 2024


================
@@ -56,7 +56,7 @@ class HTMLTag {
   operator bool() = delete;
 
   bool IsSelfClosing() const;
-  llvm::SmallString<16> ToString() const;
+  const char* toString() const;
----------------
ilovepi wrote:

Maybe this should be renamed to `c_str()` or `str()`?

https://github.com/llvm/llvm-project/pull/96921


More information about the cfe-commits mailing list