[clang-tools-extra] [clang-doc]: Enable horizontal wrapping on longer function definitions (PR #181417)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 13 15:59:46 PST 2026
================
@@ -10,8 +10,7 @@
<pre><code class="language-cpp code-clang-doc">template <{{#Parameters}}{{Param}}{{^End}}, {{/End}}{{/Parameters}}></code></pre>
{{/Template}}
{{! Function Prototype }}
- <pre><code class="language-cpp code-clang-doc">{{ReturnType.QualName}} {{Name}}{{#Template}}{{#Specialization}}<{{#Parameters}}{{Param}}{{^End}}, {{/End}}{{/Parameters}}>{{/Specialization}}{{/Template}} ({{#Params}}{{Type.QualName}} {{Name}}{{^End}}, {{/End}}{{/Params}})</code></pre>
- {{! Function Comments }}
+ <pre><code class="nohighlight code-clang-doc"><span class="hljs-type">{{ReturnType.QualName}}</span> <span class="hljs-title">{{Name}}</span> ({{#IsLong}}<span class="params-vertical">{{#Params}}<span class="param"><span class="hljs-type">{{Type.QualName}}</span> {{Name}},</span>{{/Params}}</span>{{/IsLong}}{{^IsLong}}{{#Params}}<span class="hljs-type">{{Type.QualName}}</span> {{Name}}{{^End}}, {{/End}}{{/Params}}{{/IsLong}})</code></pre>
----------------
ilovepi wrote:
I don't think we should use custom highlighting.
https://github.com/llvm/llvm-project/pull/181417
More information about the cfe-commits
mailing list