================
@@ -359,6 +371,9 @@ struct FunctionInfo : public SymbolInfo {
   // Full qualified name of this function, including namespaces and template
   // specializations.
   SmallString<16> FullName;
+  
+  // Function Prototype
+  SmallString<256> ProtoType;
----------------
ilovepi wrote:

why 256? you realize that allocates a 256 byte buffer in this struct, right? Do 
we expect to use many of them? Do you have a feeling for the typical size of 
the Prototype? like what's the median size in say LLVM? what about 90th 
percentile? I have a feeling there is a better default that won't use so much 
space.

Also, I have a felling the layout will be kind of odd right now. You can try 
adding -Wpadding to the clang-doc build to see if there's a better layout for 
these internal types.

https://github.com/llvm/llvm-project/pull/133161
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to