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

via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 27 10:51:06 PDT 2024


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

I think it be more appropriate to rename it c_str

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


More information about the cfe-commits mailing list