llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-tools-extra Author: Samrudh Nelli (SamrudhNelli) <details> <summary>Changes</summary> fixes #<!-- -->170733 --- Patch is 68.31 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/181330.diff 1 Files Affected: - (modified) clang-tools-extra/test/clang-doc/basic-project.mustache.test (+558-543) ``````````diff diff --git a/clang-tools-extra/test/clang-doc/basic-project.mustache.test b/clang-tools-extra/test/clang-doc/basic-project.mustache.test index 4c882ef2e8384..c7991101ecdca 100644 --- a/clang-tools-extra/test/clang-doc/basic-project.mustache.test +++ b/clang-tools-extra/test/clang-doc/basic-project.mustache.test @@ -8,557 +8,572 @@ // RUN: FileCheck %s -input-file=%t/docs/html/GlobalNamespace/_ZTV6Circle.html -check-prefix=HTML-CIRCLE HTML-SHAPE: <html lang="en-US"> -HTML-SHAPE: <head> -HTML-SHAPE: <meta charset="utf-8"/> -HTML-SHAPE: <title>Shape</title> -HTML-SHAPE: <link rel="stylesheet" type="text/css" href="../clang-doc-mustache.css"/> -HTML-SHAPE: <script src="../mustache-index.js"></script> -HTML-SHAPE: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"> -HTML-SHAPE: <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> -HTML-SHAPE: <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/cpp.min.js"></script> -HTML-SHAPE: </head> -HTML-SHAPE: <body> -HTML-SHAPE: <nav class="navbar"> -HTML-SHAPE: <div class="navbar__container"> -HTML-SHAPE: <div class="navbar__logo"> -HTML-SHAPE: </div> -HTML-SHAPE: <div class="navbar__menu"> -HTML-SHAPE: <ul class="navbar__links"> -HTML-SHAPE: <li class="navbar__item"> -HTML-SHAPE: <a href="../index.html" class="navbar__link">Home</a> -HTML-SHAPE: </li> -HTML-SHAPE: </ul> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: <div class="navbar-breadcrumb-container"> -HTML-SHAPE: <a href="./index.html"><div class="navbar-breadcrumb-item">Global Namespace</div></a> -HTML-SHAPE: </div> -HTML-SHAPE: </nav> -HTML-SHAPE: <main> -HTML-SHAPE: <div class="container"> -HTML-SHAPE: <div class="sidebar"> -HTML-SHAPE: <h2>class Shape</h2> -HTML-SHAPE: <ul> -HTML-SHAPE: <li> -HTML-SHAPE: <details open> -HTML-SHAPE: <summary class="sidebar-section"> -HTML-SHAPE: <a class="sidebar-item" href="#PublicMethods">Public Methods</a> -HTML-SHAPE: </summary> -HTML-SHAPE: <ul> -HTML-SHAPE: <li class="sidebar-item-container"> -HTML-SHAPE: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">area</a> -HTML-SHAPE: </li> -HTML-SHAPE: <li class="sidebar-item-container"> -HTML-SHAPE: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">perimeter</a> -HTML-SHAPE: </li> -HTML-SHAPE: <li class="sidebar-item-container"> -HTML-SHAPE: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">~Shape</a> -HTML-SHAPE: </li> -HTML-SHAPE: </ul> -HTML-SHAPE: </details> -HTML-SHAPE: </li> -HTML-SHAPE: </ul> -HTML-SHAPE: </div> -HTML-SHAPE: <div class="resizer" id="resizer"></div> -HTML-SHAPE: <div class="content"> -HTML-SHAPE: <section class="hero section-container"> -HTML-SHAPE: <div class="hero__title"> -HTML-SHAPE: <h1 class="hero__title-large">class Shape</h1> -HTML-SHAPE: <div class="doc-card"> -HTML-SHAPE: <div class="nested-delimiter-container"> -HTML-SHAPE: <p> Abstract base class for shapes.</p> -HTML-SHAPE: </div> -HTML-SHAPE: <div class="nested-delimiter-container"> -HTML-SHAPE: <p> Provides a common interface for different types of shapes.</p> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: </section> -HTML-SHAPE: <section id="PublicMethods" class="section-container"> -HTML-SHAPE: <h2>Public Methods</h2> -HTML-SHAPE: <div id="{{([0-9A-F]{40})}}" class="delimiter-container"> -HTML-SHAPE: <pre><code class="language-cpp code-clang-doc">double area ()</code></pre> -HTML-SHAPE: <div class="doc-card"> -HTML-SHAPE: <div class="nested-delimiter-container"> -HTML-SHAPE: <p> Calculates the area of the shape.</p> -HTML-SHAPE: </div> -HTML-SHAPE: <div class="nested-delimiter-container"> -HTML-SHAPE: <h3>Returns</h3> -HTML-SHAPE: <p> double The area of the shape.</p> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: <div id="{{([0-9A-F]{40})}}" class="delimiter-container"> -HTML-SHAPE: <pre><code class="language-cpp code-clang-doc">double perimeter ()</code></pre> -HTML-SHAPE: <div class="doc-card"> -HTML-SHAPE: <div class="nested-delimiter-container"> -HTML-SHAPE: <p> Calculates the perimeter of the shape.</p> -HTML-SHAPE: </div> -HTML-SHAPE: <div class="nested-delimiter-container"> -HTML-SHAPE: <h3>Returns</h3> -HTML-SHAPE: <p> double The perimeter of the shape.</p> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: <div id="{{([0-9A-F]{40})}}" class="delimiter-container"> -HTML-SHAPE: <pre><code class="language-cpp code-clang-doc">void ~Shape ()</code></pre> -HTML-SHAPE: <div class="doc-card"> -HTML-SHAPE: <div class="nested-delimiter-container"> -HTML-SHAPE: <p> Virtual destructor.</p> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: </section> -HTML-SHAPE: </div> -HTML-SHAPE: </div> -HTML-SHAPE: </main> -HTML-SHAPE: </body> -HTML-SHAPE: </html> +HTML-SHAPE-NEXT: <head> +HTML-SHAPE-NEXT: <meta charset="utf-8"/> +HTML-SHAPE-NEXT: <title>Shape</title> +HTML-SHAPE-NEXT: <link rel="stylesheet" type="text/css" href="../clang-doc-mustache.css"/> +HTML-SHAPE-NEXT: <script src="../mustache-index.js"></script> +HTML-SHAPE-NEXT: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"> +HTML-SHAPE-NEXT: <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> +HTML-SHAPE-NEXT: <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/cpp.min.js"></script> +HTML-SHAPE-NEXT: </head> +HTML-SHAPE-NEXT: <body> +HTML-SHAPE-NEXT: <header> +HTML-SHAPE-NEXT: <nav class="navbar"> +HTML-SHAPE-NEXT: <div class="navbar__container"> +HTML-SHAPE-NEXT: <div class="navbar__logo"> +HTML-SHAPE-NEXT: {{^ +$}} +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: <div class="navbar__menu"> +HTML-SHAPE-NEXT: <ul class="navbar__links"> +HTML-SHAPE-NEXT: <li class="navbar__item"> +HTML-SHAPE-NEXT: <a href="../index.html" class="navbar__link">Home</a> +HTML-SHAPE-NEXT: </li> +HTML-SHAPE-NEXT: </ul> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: <div class="navbar-breadcrumb-container"> +HTML-SHAPE-NEXT: <a href="./index.html"><div class="navbar-breadcrumb-item">Global Namespace</div></a> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </nav> +HTML-SHAPE-NEXT: </header> +HTML-SHAPE-NEXT: <main> +HTML-SHAPE-NEXT: <div class="container"> +HTML-SHAPE-NEXT: <div class="sidebar"> +HTML-SHAPE-NEXT: <h2>class Shape</h2> +HTML-SHAPE-NEXT: <ul> +HTML-SHAPE-NEXT: <li> +HTML-SHAPE-NEXT: <details open> +HTML-SHAPE-NEXT: <summary class="sidebar-section"> +HTML-SHAPE-NEXT: <a class="sidebar-item" href="#PublicMethods">Public Methods</a> +HTML-SHAPE-NEXT: </summary> +HTML-SHAPE-NEXT: <ul> +HTML-SHAPE-NEXT: <li class="sidebar-item-container"> +HTML-SHAPE-NEXT: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">area</a> +HTML-SHAPE-NEXT: </li> +HTML-SHAPE-NEXT: <li class="sidebar-item-container"> +HTML-SHAPE-NEXT: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">perimeter</a> +HTML-SHAPE-NEXT: </li> +HTML-SHAPE-NEXT: <li class="sidebar-item-container"> +HTML-SHAPE-NEXT: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">~Shape</a> +HTML-SHAPE-NEXT: </li> +HTML-SHAPE-NEXT: </ul> +HTML-SHAPE-NEXT: </details> +HTML-SHAPE-NEXT: </li> +HTML-SHAPE-NEXT: </ul> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: <div class="resizer" id="resizer"></div> +HTML-SHAPE-NEXT: <div class="content"> +HTML-SHAPE-NEXT: <section class="hero section-container"> +HTML-SHAPE-NEXT: <div class="hero__title"> +HTML-SHAPE-NEXT: <h1 class="hero__title-large">class Shape</h1> +HTML-SHAPE: <div class="doc-card"> +HTML-SHAPE-NEXT: <div class="nested-delimiter-container"> +HTML-SHAPE-NEXT: <p> Abstract base class for shapes.</p> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: <div class="nested-delimiter-container"> +HTML-SHAPE-NEXT: <p> Provides a common interface for different types of shapes.</p> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </section> +HTML-SHAPE-NEXT: <section id="PublicMethods" class="section-container"> +HTML-SHAPE-NEXT: <h2>Public Methods</h2> +HTML-SHAPE-NEXT: <div id="{{([0-9A-F]{40})}}" class="delimiter-container"> +HTML-SHAPE-NEXT: <pre><code class="language-cpp code-clang-doc">double area ()</code></pre> +HTML-SHAPE-NEXT: <div class="doc-card"> +HTML-SHAPE-NEXT: <div class="nested-delimiter-container"> +HTML-SHAPE-NEXT: <p> Calculates the area of the shape.</p> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: <div class="nested-delimiter-container"> +HTML-SHAPE-NEXT: <h3>Returns</h3> +HTML-SHAPE-NEXT: <p> double The area of the shape.</p> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: <div id="{{([0-9A-F]{40})}}" class="delimiter-container"> +HTML-SHAPE-NEXT: <pre><code class="language-cpp code-clang-doc">double perimeter ()</code></pre> +HTML-SHAPE-NEXT: <div class="doc-card"> +HTML-SHAPE-NEXT: <div class="nested-delimiter-container"> +HTML-SHAPE-NEXT: <p> Calculates the perimeter of the shape.</p> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: <div class="nested-delimiter-container"> +HTML-SHAPE-NEXT: <h3>Returns</h3> +HTML-SHAPE-NEXT: <p> double The perimeter of the shape.</p> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: <div id="{{([0-9A-F]{40})}}" class="delimiter-container"> +HTML-SHAPE-NEXT: <pre><code class="language-cpp code-clang-doc">void ~Shape ()</code></pre> +HTML-SHAPE-NEXT: <div class="doc-card"> +HTML-SHAPE-NEXT: <div class="nested-delimiter-container"> +HTML-SHAPE-NEXT: <p> Virtual destructor.</p> +HTML-SHAPE-NEXT: </div> +HTML-SHAPE-NEXT: </div> + HTML-CALC: <!DOCTYPE html> -HTML-CALC: <html lang="en-US"> -HTML-CALC: <head> -HTML-CALC: <meta charset="utf-8"/> -HTML-CALC: <title>Calculator</title> -HTML-CALC: <link rel="stylesheet" type="text/css" href="../clang-doc-mustache.css"/> -HTML-CALC: <script src="../mustache-index.js"></script> -HTML-CALC: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"> -HTML-CALC: <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> -HTML-CALC: <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/cpp.min.js"></script> -HTML-CALC: </head> -HTML-CALC: <body> -HTML-CALC: <nav class="navbar"> -HTML-CALC: <div class="navbar__container"> -HTML-CALC: <div class="navbar__logo"> -HTML-CALC: </div> -HTML-CALC: <div class="navbar__menu"> -HTML-CALC: <ul class="navbar__links"> -HTML-CALC: <li class="navbar__item"> -HTML-CALC: <a href="../index.html" class="navbar__link">Home</a> -HTML-CALC: </li> -HTML-CALC: </ul> -HTML-CALC: </div> -HTML-CALC: </div> -HTML-CALC: <div class="navbar-breadcrumb-container"> -HTML-CALC: <a href="./index.html"><div class="navbar-breadcrumb-item">Global Namespace</div></a> -HTML-CALC: </div> -HTML-CALC: </nav> -HTML-CALC: <main> -HTML-CALC: <div class="container"> -HTML-CALC: <div class="sidebar"> -HTML-CALC: <h2>class Calculator</h2> -HTML-CALC: <ul> -HTML-CALC: <li> -HTML-CALC: <details open> -HTML-CALC: <summary class="sidebar-section"> -HTML-CALC: <a class="sidebar-item" href="#PublicMembers">Public Members</a> -HTML-CALC: </summary> -HTML-CALC: <ul> -HTML-CALC: <li class="sidebar-item-container"> -HTML-CALC: <a class="sidebar-item" href="#public_val">public_val</a> -HTML-CALC: </li> -HTML-CALC: <li class="sidebar-item-container"> -HTML-CALC: <a class="sidebar-item" href="#static_val">static_val</a> -HTML-CALC: </li> -HTML-CALC: </ul> -HTML-CALC: </details> -HTML-CALC: </li> -HTML-CALC: <li> -HTML-CALC: <details open> -HTML-CALC: <summary class="sidebar-section"> -HTML-CALC: <a class="sidebar-item" href="#PublicMethods">Public Methods</a> -HTML-CALC: </summary> -HTML-CALC: <ul> -HTML-CALC: <li class="sidebar-item-container"> -HTML-CALC: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">add</a> -HTML-CALC: </li> -HTML-CALC: <li class="sidebar-item-container"> -HTML-CALC: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">subtract</a> -HTML-CALC: </li> -HTML-CALC: <li class="sidebar-item-container"> -HTML-CALC: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">multiply</a> -HTML-CALC: </li> -HTML-CALC: <li class="sidebar-item-container"> -HTML-CALC: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">divide</a> -HTML-CALC: </li> -HTML-CALC: <li class="sidebar-item-container"> -HTML-CALC: <a class="sidebar-item" href="#{{([0-9A-F]{40})}}">mod</a> -HTML-CALC: </li> -HTML-CALC: </ul> -HTML-CALC: </details> -HTML-CALC: </li> -HTML-CALC: </ul> -HTML-CALC: </div> -HTML-CALC: <div class="resizer" id="resizer"></div> -HTML-CALC: <div class="content"> -HTML-CALC: <section class="hero section-container"> -HTML-CALC: <div class="hero__title"> -HTML-CALC: <h1 class="hero__title-large">class Calculator</h1> -HTML-CALC: <div class="doc-card"> -HTML-CALC: <div class="nested-delimiter-container"> -HTML-CALC: <p> A simple calculator class.</p> -HTML-CALC: </div> -HTML-CALC: <div class="nested-delimiter-container"> -HTML-CALC: <p> Provides basic arithmetic operations.</p> -HTML-CALC: </div> -HTML-CALC: </div> -HTML-CALC: </div> -HTML-CALC: </section> -HTML-CALC: <section id="PublicMembers" class="section-container"> -HTML-CALC: <h2>Public Members</h2> -HTML-CALC: <div> -HTML-CALC: <div id="public_val" class="delimiter-container"> -HTML-CALC: <pre><code class="language-cpp code-clang-doc" >int public_val</code></pre> -HTML-CALC: </div> -HTML-CALC: <div id="static_val" class="delimiter-container"> -HTML-CALC: <pre><code class="language-cpp code-clang-doc" >static const int static_val</code></pre> -HTML-CALC: </div> -HTML-CALC: </div> -HTML-CALC: </section> -HTML-CALC: <section id="PublicMethods" class="section-container"> -HTML-CALC: <h2>Public Methods</h2> -HTML-CALC: <div id="{{([0-9A-F]{40})}}" class="delimiter-container"> -HTML-CALC: <pre><code class="language-cpp code-clang-doc">int add (int a, int b)</code></pre> -HTML-CALC: <div class="doc-card"> -HTML-CALC: <div class="nested-delimiter-container"> -HTML-CALC: <p> Adds two integers.</p> -HTML-CALC: </div> -HTML-CALC: <div class="nested-delimiter-container"> -HTML-CALC: <h3>Parameters</h3> -HTML-CALC: <div> -HTML-CALC: <b>a</b> First integer. -HTML-CALC: </div> -HTML-CALC: <div> -HTML-CALC: <b>b</b> Second integer. -HTML-CALC: </div> -HTML-CALC: </div> ... [truncated] `````````` </details> https://github.com/llvm/llvm-project/pull/181330 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
