-
Notifications
You must be signed in to change notification settings - Fork 14k
[clang-doc] add tags to Mustache namespace template #142045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// RUN: rm -rf %t && mkdir -p %t | ||
// RUN: clang-doc --format=mustache --output=%t --executor=standalone %s | ||
// RUN: FileCheck %s < %t/GlobalNamespace/index.html | ||
|
||
enum Color { | ||
RED, | ||
BLUE, | ||
GREEN | ||
}; | ||
|
||
class Foo; | ||
|
||
// CHECK: <li class="sidebar-section"> | ||
// CHECK-NEXT: <a class="sidebar-item" href="#Enums">Enums</a> | ||
// CHECK-NEXT: </li> | ||
// CHECK-NEXT: <ul> | ||
// CHECK-NEXT: <li class="sidebar-item-container"> | ||
// CHECK-NEXT: <a class="sidebar-item" href="#{{[0-9A-F]*}}">enum Color</a> | ||
// CHECK-NEXT: </li> | ||
// CHECK-NEXT: </ul> | ||
// CHECK: <li class="sidebar-section"> | ||
// CHECK-NEXT: <a class="sidebar-item" href="#Classes">Inner Classes</a> | ||
// CHECK-NEXT: </li> | ||
// CHECK-NEXT: <ul> | ||
// CHECK-NEXT: <li class="sidebar-item-container"> | ||
// CHECK-NEXT: <a class="sidebar-item" href="#{{[0-9A-F]*}}">Foo</a> | ||
// CHECK-NEXT: </li> | ||
// CHECK-NEXT: </ul> | ||
|
||
// CHECK: <section id="Enums" class="section-container"> | ||
// CHECK-NEXT: <h2>Enumerations</h2> | ||
// CHECK-NEXT: <div> | ||
// CHECK-NEXT: <div id="{{[0-9A-F]*}}" class="delimiter-container"> | ||
// CHECK-NEXT: <div> | ||
// CHECK-NEXT: <pre> | ||
// CHECK-NEXT: <code class="language-cpp code-clang-doc"> | ||
// CHECK-NEXT: enum Color | ||
// CHECK-NEXT: </code> | ||
// CHECK-NEXT: </pre> | ||
// CHECK-NEXT: </div> | ||
// CHECK-NEXT: <table class="table-wrapper"> | ||
// CHECK-NEXT: <tbody> | ||
// CHECK-NEXT: <tr> | ||
// CHECK-NEXT: <th>Name</th> | ||
// CHECK-NEXT: <th>Value</th> | ||
// CHECK: </tr> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the tag not line up becacuse you deleted There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I forgot to adjust the spacing after deleting We do emit a lot of strange indentation though. I turned these into |
||
// CHECK-NEXT: <tr> | ||
// CHECK-NEXT: <td>RED</td> | ||
// CHECK-NEXT: <td>0</td> | ||
// CHECK: </tr> | ||
// CHECK-NEXT: <tr> | ||
// CHECK-NEXT: <td>BLUE</td> | ||
// CHECK-NEXT: <td>1</td> | ||
// CHECK: </tr> | ||
// CHECK-NEXT: <tr> | ||
// CHECK-NEXT: <td>GREEN</td> | ||
// CHECK-NEXT: <td>2</td> | ||
// CHECK: </tr> | ||
// CHECK-NEXT: </tbody> | ||
// CHECK-NEXT: </table> | ||
// CHECK-NEXT: <div> | ||
// CHECK-NEXT: Defined at line 5 of file {{.*}}/mustache-index.cpp | ||
// CHECK-NEXT: </div> | ||
// CHECK-NEXT: </div> | ||
// CHECK-NEXT: </div> | ||
// CHECK-NEXT: </section> | ||
// CHECK: <section id="Classes" class="section-container"> | ||
// CHECK-NEXT: <h2>Inner Classes</h2> | ||
// CHECK-NEXT: <ul class="class-container"> | ||
// CHECK-NEXT: <li id="{{[0-9A-F]*}}" style="max-height: 40px;"> | ||
// CHECK-NEXT: <a href="Foo.html"><pre><code class="language-cpp code-clang-doc" >class Foo</code></pre></a> | ||
// CHECK-NEXT: </li> | ||
// CHECK-NEXT: </ul> | ||
// CHECK-NEXT: </section> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// RUN: rm -rf %t && mkdir -p %t | ||
// RUN: clang-doc --format=mustache --output=%t --executor=standalone %s | ||
// RUN: FileCheck %s < %t/MyNamespace/index.html | ||
|
||
namespace MyNamespace { | ||
class Foo; | ||
} | ||
|
||
// CHECK: <ul class="class-container"> | ||
// CHECK-NEXT: <li id="{{[0-9A-F]*}}" style="max-height: 40px;"> | ||
// CHECK-NEXT: <a href="Foo.html"><pre><code class="language-cpp code-clang-doc" >class Foo</code></pre></a> | ||
// CHECK-NEXT: </li> | ||
// CHECK-NEXT: </ul> | ||
ilovepi marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.