Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
{{>Comments}}
</div>
{{/Description}}
<p>Defined at line {{Location.LineNumber}} of file {{Location.Filename}}</p>
{{#Location}}
<p>Defined at line {{LineNumber}} of file {{Filename}}</p>
{{/Location}}
</div>
1 change: 0 additions & 1 deletion clang-tools-extra/test/clang-doc/json/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ struct MyClass {
// HTML-NEXT: <div>
// HTML-NEXT: <div id="{{([0-9A-F]{40})}}" class="delimiter-container">
// HTML-NEXT: <pre><code class="language-cpp code-clang-doc">int protectedMethod ()</code></pre>
// HTML-NEXT: <p>Defined at line of file </p>
// HTML-NEXT: </div>
// HTML-NEXT: </div>
// HTML-NEXT: </section>
Expand Down
2 changes: 0 additions & 2 deletions clang-tools-extra/test/clang-doc/templates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ void ParamPackFunction(T... args);

// HTML: <pre><code class="language-cpp code-clang-doc">template &lt;class... T&gt;</code></pre>
// HTML-NEXT: <pre><code class="language-cpp code-clang-doc">void ParamPackFunction (T... args)</code></pre>
// COM: FIXME: Omit defined line if not defined, or emit declaration line.
// HTML-NEXT: <p>Defined at line of file </p>
// HTML-NEXT: </div>

template <typename T, int U = 1>
Expand Down