brintos

brintos / llvm-project-archived public Read only

0
0
Text · 22.8 KiB · adf7ab7 Raw
386 lines · cpp
1// RUN: rm -rf %t && mkdir -p %t2// RUN: clang-doc --format=html --output=%t --executor=standalone %s3// RUN: clang-doc --format=md --output=%t --executor=standalone %s4// RUN: clang-doc --format=mustache --output=%t --executor=standalone %s5// RUN: FileCheck %s < %t/index_json.js -check-prefix=JSON-INDEX6// RUN: FileCheck %s < %t/@nonymous_namespace/AnonClass.html -check-prefix=HTML-ANON-CLASS-LINE7// RUN: FileCheck %s < %t/@nonymous_namespace/AnonClass.html -check-prefix=HTML-ANON-CLASS8// RUN: FileCheck %s < %t/@nonymous_namespace/index.html -check-prefix=HTML-ANON-INDEX-LINE9// RUN: FileCheck %s < %t/@nonymous_namespace/index.html -check-prefix=HTML-ANON-INDEX10// RUN: FileCheck %s < %t/AnotherNamespace/ClassInAnotherNamespace.html -check-prefix=HTML-ANOTHER-CLASS-LINE11// RUN: FileCheck %s < %t/AnotherNamespace/ClassInAnotherNamespace.html -check-prefix=HTML-ANOTHER-CLASS12// RUN: FileCheck %s < %t/AnotherNamespace/index.html -check-prefix=HTML-ANOTHER-INDEX-LINE13// RUN: FileCheck %s < %t/AnotherNamespace/index.html -check-prefix=HTML-ANOTHER-INDEX14// RUN: FileCheck %s < %t/PrimaryNamespace/NestedNamespace/ClassInNestedNamespace.html -check-prefix=HTML-NESTED-CLASS-LINE15// RUN: FileCheck %s < %t/PrimaryNamespace/NestedNamespace/ClassInNestedNamespace.html -check-prefix=HTML-NESTED-CLASS16// RUN: FileCheck %s < %t/PrimaryNamespace/NestedNamespace/index.html -check-prefix=HTML-NESTED-INDEX-LINE17// RUN: FileCheck %s < %t/PrimaryNamespace/NestedNamespace/index.html -check-prefix=HTML-NESTED-INDEX18// RUN: FileCheck %s < %t/PrimaryNamespace/index.html -check-prefix=HTML-PRIMARY-INDEX-LINE19// RUN: FileCheck %s < %t/PrimaryNamespace/index.html -check-prefix=HTML-PRIMARY-INDEX20// RUN: FileCheck %s < %t/PrimaryNamespace/ClassInPrimaryNamespace.html -check-prefix=HTML-PRIMARY-CLASS-LINE21// RUN: FileCheck %s < %t/PrimaryNamespace/ClassInPrimaryNamespace.html -check-prefix=HTML-PRIMARY-CLASS22// RUN: FileCheck %s < %t/@nonymous_namespace/AnonClass.md -check-prefix=MD-ANON-CLASS-LINE23// RUN: FileCheck %s < %t/@nonymous_namespace/AnonClass.md -check-prefix=MD-ANON-CLASS24// RUN: FileCheck %s < %t/@nonymous_namespace/index.md -check-prefix=MD-ANON-INDEX-LINE25// RUN: FileCheck %s < %t/@nonymous_namespace/index.md -check-prefix=MD-ANON-INDEX26// RUN: FileCheck %s < %t/AnotherNamespace/ClassInAnotherNamespace.md -check-prefix=MD-ANOTHER-CLASS-LINE27// RUN: FileCheck %s < %t/AnotherNamespace/ClassInAnotherNamespace.md -check-prefix=MD-ANOTHER-CLASS28// RUN: FileCheck %s < %t/AnotherNamespace/index.md -check-prefix=MD-ANOTHER-INDEX-LINE29// RUN: FileCheck %s < %t/AnotherNamespace/index.md -check-prefix=MD-ANOTHER-INDEX30// RUN: FileCheck %s < %t/PrimaryNamespace/NestedNamespace/ClassInNestedNamespace.md -check-prefix=MD-NESTED-CLASS-LINE31// RUN: FileCheck %s < %t/PrimaryNamespace/NestedNamespace/ClassInNestedNamespace.md -check-prefix=MD-NESTED-CLASS32// RUN: FileCheck %s < %t/PrimaryNamespace/NestedNamespace/index.md -check-prefix=MD-NESTED-INDEX-LINE33// RUN: FileCheck %s < %t/PrimaryNamespace/NestedNamespace/index.md -check-prefix=MD-NESTED-INDEX34// RUN: FileCheck %s < %t/PrimaryNamespace/index.md -check-prefix=MD-PRIMARY-INDEX-LINE35// RUN: FileCheck %s < %t/PrimaryNamespace/index.md -check-prefix=MD-PRIMARY-INDEX36// RUN: FileCheck %s < %t/PrimaryNamespace/ClassInPrimaryNamespace.md -check-prefix=MD-PRIMARY-CLASS-LINE37// RUN: FileCheck %s < %t/PrimaryNamespace/ClassInPrimaryNamespace.md -check-prefix=MD-PRIMARY-CLASS38// RUN: FileCheck %s < %t/GlobalNamespace/index.html -check-prefix=HTML-GLOBAL-INDEX39// RUN: FileCheck %s < %t/GlobalNamespace/index.md -check-prefix=MD-GLOBAL-INDEX40// RUN: FileCheck %s < %t/all_files.md -check-prefix=MD-ALL-FILES41// RUN: FileCheck %s < %t/index.md -check-prefix=MD-INDEX42// RUN: FileCheck %s < %t/html/@nonymous_namespace/_ZTVN12_GLOBAL__N_19AnonClassE.html -check-prefix=MUSTACHE-ANON-CLASS-LINE43// RUN: FileCheck %s < %t/html/@nonymous_namespace/_ZTVN12_GLOBAL__N_19AnonClassE.html -check-prefix=MUSTACHE-ANON-CLASS44// RUN: FileCheck %s < %t/html/@nonymous_namespace/index.html -check-prefix=MUSTACHE-ANON-INDEX-LINE45// RUN: FileCheck %s < %t/html/@nonymous_namespace/index.html -check-prefix=MUSTACHE-ANON-INDEX46// RUN: FileCheck %s < %t/html/AnotherNamespace/_ZTVN16AnotherNamespace23ClassInAnotherNamespaceE.html -check-prefix=MUSTACHE-ANOTHER-CLASS-LINE47// RUN: FileCheck %s < %t/html/AnotherNamespace/_ZTVN16AnotherNamespace23ClassInAnotherNamespaceE.html -check-prefix=MUSTACHE-ANOTHER-CLASS48// RUN: FileCheck %s < %t/html/AnotherNamespace/index.html -check-prefix=MUSTACHE-ANOTHER-INDEX-LINE49// RUN: FileCheck %s < %t/html/AnotherNamespace/index.html -check-prefix=MUSTACHE-ANOTHER-INDEX50// RUN: FileCheck %s < %t/html/PrimaryNamespace/NestedNamespace/_ZTVN16PrimaryNamespace15NestedNamespace22ClassInNestedNamespaceE.html -check-prefix=MUSTACHE-NESTED-CLASS-LINE51// RUN: FileCheck %s < %t/html/PrimaryNamespace/NestedNamespace/_ZTVN16PrimaryNamespace15NestedNamespace22ClassInNestedNamespaceE.html -check-prefix=MUSTACHE-NESTED-CLASS52// RUN: FileCheck %s < %t/html/PrimaryNamespace/NestedNamespace/index.html -check-prefix=MUSTACHE-NESTED-INDEX-LINE53// RUN: FileCheck %s < %t/html/PrimaryNamespace/NestedNamespace/index.html -check-prefix=MUSTACHE-NESTED-INDEX54// RUN: FileCheck %s < %t/html/PrimaryNamespace/index.html -check-prefix=MUSTACHE-PRIMARY-INDEX-LINE55// RUN: FileCheck %s < %t/html/PrimaryNamespace/index.html -check-prefix=MUSTACHE-PRIMARY-INDEX56// RUN: FileCheck %s < %t/html/PrimaryNamespace/_ZTVN16PrimaryNamespace23ClassInPrimaryNamespaceE.html -check-prefix=MUSTACHE-PRIMARY-CLASS-LINE57// RUN: FileCheck %s < %t/html/PrimaryNamespace/_ZTVN16PrimaryNamespace23ClassInPrimaryNamespaceE.html -check-prefix=MUSTACHE-PRIMARY-CLASS58 59// COM: FIXME: Add global functions to the namespace template60// COM: FIXME: Add namespaces to the namespace template61 62// Anonymous Namespace63namespace {64void anonFunction() {}65// MD-ANON-INDEX-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp#[[@LINE-1]]*66// HTML-ANON-INDEX-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>67// MUSTACHE-ANON-INDEX-LINE-NOT: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>68 69class AnonClass {};70// MD-ANON-CLASS-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp#[[@LINE-1]]*71// HTML-ANON-CLASS-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>72// MUSTACHE-ANON-CLASS-LINE: <p>Defined at line [[@LINE-3]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>73 74// MD-ANON-CLASS: # class AnonClass75// HTML-ANON-CLASS: <h1>class AnonClass</h1>76// MUSTACHE-ANON-CLASS: <h1 class="hero__title-large">class AnonClass</h1>77} // namespace78 79// MD-ANON-INDEX: # namespace @nonymous_namespace80// MD-ANON-INDEX:  Anonymous Namespace81// MD-ANON-INDEX: ## Records82// MD-ANON-INDEX: * [AnonClass](AnonClass.md)83// MD-ANON-INDEX: ## Functions84// MD-ANON-INDEX: ### anonFunction85// MD-ANON-INDEX: *void anonFunction()*86 87// HTML-ANON-INDEX: <h1>namespace @nonymous_namespace</h1>88// HTML-ANON-INDEX: <p> Anonymous Namespace</p>89// HTML-ANON-INDEX: <h2 id="Records">Records</h2>90// HTML-ANON-INDEX: <a href="AnonClass.html">AnonClass</a>91// HTML-ANON-INDEX: <h2 id="Functions">Functions</h2>92// HTML-ANON-INDEX: <h3 id="{{([0-9A-F]{40})}}">anonFunction</h3>93// HTML-ANON-INDEX: <p>void anonFunction()</p>94 95// MUSTACHE-ANON-INDEX: <h2> @nonymous_namespace</h2>96// MUSTACHE-ANON-INDEX:     <h2>Inner Classes</h2>97// MUSTACHE-ANON-INDEX:         <ul class="class-container">98// MUSTACHE-ANON-INDEX:             <li id="{{([0-9A-F]{40})}}" style="max-height: 40px;">99// MUSTACHE-ANON-INDEX:                 <a href="_ZTVN12_GLOBAL__N_19AnonClassE.html">100// MUSTACHE-ANON-INDEX:                     <pre><code class="language-cpp code-clang-doc">class AnonClass</code></pre>101// MUSTACHE-ANON-INDEX:                 </a>102// MUSTACHE-ANON-INDEX:             </li>103// MUSTACHE-ANON-INDEX-NOT: <h2 id="Functions">Functions</h2>104// MUSTACHE-ANON-INDEX-NOT: <h3 id="{{([0-9A-F]{40})}}">anonFunction</h3>105// MUSTACHE-ANON-INDEX-NOT: <p>void anonFunction()</p>106 107// Primary Namespace108namespace PrimaryNamespace {109// Function in PrimaryNamespace110void functionInPrimaryNamespace() {}111// MD-PRIMARY-INDEX-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp#[[@LINE-1]]*112// HTML-PRIMARY-INDEX-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>113// MUSTACHE-PRIMARY-INDEX-LINE-NOT: <p>Defined at line [[@LINE-3]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>114 115// Class in PrimaryNamespace116class ClassInPrimaryNamespace {};117// MD-PRIMARY-CLASS-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp#[[@LINE-1]]*118// HTML-PRIMARY-CLASS-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>119// MUSTACHE-PRIMARY-CLASS-LINE: <p>Defined at line [[@LINE-3]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>120 121// MD-PRIMARY-CLASS: # class ClassInPrimaryNamespace122// MD-PRIMARY-CLASS: Class in PrimaryNamespace123 124// HTML-PRIMARY-CLASS: <h1>class ClassInPrimaryNamespace</h1>125// HTML-PRIMARY-CLASS: <p> Class in PrimaryNamespace</p>126 127// MUSTACHE-PRIMARY-CLASS: <h1 class="hero__title-large">class ClassInPrimaryNamespace</h1>128 129// Nested namespace130namespace NestedNamespace {131// Function in NestedNamespace132void functionInNestedNamespace() {}133// MD-NESTED-INDEX-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp#[[@LINE-1]]*134// HTML-NESTED-INDEX-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>135// MUSTACHE-NESTED-INDEX-LINE-NOT: <p>Defined at line [[@LINE-3]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>136 137// Class in NestedNamespace138class ClassInNestedNamespace {};139// MD-NESTED-CLASS-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp#[[@LINE-1]]*140// HTML-NESTED-CLASS-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>141// MUSTACHE-NESTED-CLASS-LINE: <p>Defined at line [[@LINE-3]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>142 143// MD-NESTED-CLASS: # class ClassInNestedNamespace144// MD-NESTED-CLASS: Class in NestedNamespace145 146// HTML-NESTED-CLASS: <h1>class ClassInNestedNamespace</h1>147// HTML-NESTED-CLASS: <p> Class in NestedNamespace</p>148 149// MUSTACHE-NESTED-CLASS: <h1 class="hero__title-large">class ClassInNestedNamespace</h1>150} // namespace NestedNamespace151 152// MD-NESTED-INDEX: # namespace NestedNamespace153// MD-NESTED-INDEX: Nested namespace154// MD-NESTED-INDEX: ## Records155// MD-NESTED-INDEX: * [ClassInNestedNamespace](ClassInNestedNamespace.md)156// MD-NESTED-INDEX: ## Functions157// MD-NESTED-INDEX: ### functionInNestedNamespace158// MD-NESTED-INDEX: *void functionInNestedNamespace()*159// MD-NESTED-INDEX: Function in NestedNamespace160 161// HTML-NESTED-INDEX: <h1>namespace NestedNamespace</h1>162// HTML-NESTED-INDEX: <p> Nested namespace</p>163// HTML-NESTED-INDEX: <h2 id="Records">Records</h2>164// HTML-NESTED-INDEX: <a href="ClassInNestedNamespace.html">ClassInNestedNamespace</a>165// HTML-NESTED-INDEX: <h2 id="Functions">Functions</h2>166// HTML-NESTED-INDEX: <h3 id="{{([0-9A-F]{40})}}">functionInNestedNamespace</h3>167// HTML-NESTED-INDEX: <p>void functionInNestedNamespace()</p>168// HTML-NESTED-INDEX: <p> Function in NestedNamespace</p>169 170// MUSTACHE-NESTED-INDEX: <h2> NestedNamespace</h2>171// MUSTACHE-NESTED-INDEX:     <h2>Inner Classes</h2>172// MUSTACHE-NESTED-INDEX:     <ul class="class-container">173// MUSTACHE-NESTED-INDEX:         <li id="{{([0-9A-F]{40})}}" style="max-height: 40px;">174// MUSTACHE-NESTED-INDEX:             <a href="_ZTVN16PrimaryNamespace15NestedNamespace22ClassInNestedNamespaceE.html">175// MUSTACHE-NESTED-INDEX:                 <pre><code class="language-cpp code-clang-doc">class ClassInNestedNamespace</code></pre>176// MUSTACHE-NESTED-INDEX:             </a>177// MUSTACHE-NESTED-INDEX:         </li>178// MUSTACHE-NESTED-INDEX:     </ul>179// MUSTACHE-NESTED-INDEX-NOT: <h2 id="Functions">Functions</h2>180// MUSTACHE-NESTED-INDEX-NOT: <h3 id="{{([0-9A-F]{40})}}">functionInNestedNamespace</h3>181// MUSTACHE-NESTED-INDEX-NOT: <p>void functionInNestedNamespace()</p>182// MUSTACHE-NESTED-INDEX-NOT: <p> Function in NestedNamespace</p>183} // namespace PrimaryNamespace184 185// MD-PRIMARY-INDEX: # namespace PrimaryNamespace186// MD-PRIMARY-INDEX:  Primary Namespace187// MD-PRIMARY-INDEX: ## Namespaces188// MD-PRIMARY-INDEX: * [NestedNamespace](NestedNamespace{{[\/]}}index.md)189// MD-PRIMARY-INDEX: ## Records190// MD-PRIMARY-INDEX: * [ClassInPrimaryNamespace](ClassInPrimaryNamespace.md)191// MD-PRIMARY-INDEX: ## Functions192// MD-PRIMARY-INDEX: ### functionInPrimaryNamespace193// MD-PRIMARY-INDEX: *void functionInPrimaryNamespace()*194// MD-PRIMARY-INDEX:  Function in PrimaryNamespace195 196// HTML-PRIMARY-INDEX: <h1>namespace PrimaryNamespace</h1>197// HTML-PRIMARY-INDEX: <p> Primary Namespace</p>198// HTML-PRIMARY-INDEX: <h2 id="Namespaces">Namespaces</h2>199// HTML-PRIMARY-INDEX: <a href="NestedNamespace{{[\/]}}index.html">NestedNamespace</a>200// HTML-PRIMARY-INDEX: <h2 id="Records">Records</h2>201// HTML-PRIMARY-INDEX: <a href="ClassInPrimaryNamespace.html">ClassInPrimaryNamespace</a>202// HTML-PRIMARY-INDEX: <h2 id="Functions">Functions</h2>203// HTML-PRIMARY-INDEX: <h3 id="{{([0-9A-F]{40})}}">functionInPrimaryNamespace</h3>204// HTML-PRIMARY-INDEX: <p>void functionInPrimaryNamespace()</p>205// HTML-PRIMARY-INDEX: <p> Function in PrimaryNamespace</p>206 207// MUSTACHE-PRIMARY-INDEX: <h2> PrimaryNamespace</h2>208// MUSTACHE-PRIMARY-INDEX-NOT: <h2 id="Namespaces">Namespaces</h2>209// MUSTACHE-PRIMARY-INDEX-NOT: <a href="NestedNamespace{{[\/]}}index.html">NestedNamespace</a>210// MUSTACHE-PRIMARY-INDEX      <h2>Inner Classes</h2>211// MUSTACHE-PRIMARY-INDEX          <ul class="class-container">212// MUSTACHE-PRIMARY-INDEX              <li id="{{([0-9A-F]{40})}}" style="max-height: 40px;">213// MUSTACHE-PRIMARY-INDEX                  <a href="_ZTVN16PrimaryNamespace23ClassInPrimaryNamespaceE.html">214// MUSTACHE-PRIMARY-INDEX                      <pre><code class="language-cpp code-clang-doc">class ClassInPrimaryNamespace</code></pre>215// MUSTACHE-PRIMARY-INDEX                  </a>216// MUSTACHE-PRIMARY-INDEX              </li>217// MUSTACHE-PRIMARY-INDEX          </ul>218// MUSTACHE-PRIMARY-INDEX-NOT: <h2 id="Functions">Functions</h2>219// MUSTACHE-PRIMARY-INDEX-NOT: <h3 id="{{([0-9A-F]{40})}}">functionInPrimaryNamespace</h3>220// MUSTACHE-PRIMARY-INDEX-NOT: <p>void functionInPrimaryNamespace()</p>221// MUSTACHE-PRIMARY-INDEX-NOT: <p> Function in PrimaryNamespace</p>222 223// AnotherNamespace224namespace AnotherNamespace {225// Function in AnotherNamespace226void functionInAnotherNamespace() {}227// MD-ANOTHER-INDEX-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp#[[@LINE-1]]*228// HTML-ANOTHER-INDEX-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>229// MUSTACHE-ANOTHER-INDEX-LINE-NOT: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>230 231// Class in AnotherNamespace232class ClassInAnotherNamespace {};233// MD-ANOTHER-CLASS-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp#[[@LINE-1]]*234// HTML-ANOTHER-CLASS-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>235// MUSTACHE-ANOTHER-CLASS-LINE: <p>Defined at line [[@LINE-3]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}namespace.cpp</p>236 237// MD-ANOTHER-CLASS: # class ClassInAnotherNamespace238// MD-ANOTHER-CLASS:  Class in AnotherNamespace239 240// HTML-ANOTHER-CLASS: <h1>class ClassInAnotherNamespace</h1>241// HTML-ANOTHER-CLASS: <p> Class in AnotherNamespace</p>242 243// MUSTACHE-ANOTHER-CLASS: <h1 class="hero__title-large">class ClassInAnotherNamespace</h1>244 245} // namespace AnotherNamespace246 247// MD-ANOTHER-INDEX: # namespace AnotherNamespace248// MD-ANOTHER-INDEX: AnotherNamespace249// MD-ANOTHER-INDEX: ## Records250// MD-ANOTHER-INDEX: * [ClassInAnotherNamespace](ClassInAnotherNamespace.md)251// MD-ANOTHER-INDEX: ## Functions252// MD-ANOTHER-INDEX: ### functionInAnotherNamespace253// MD-ANOTHER-INDEX: *void functionInAnotherNamespace()*254// MD-ANOTHER-INDEX: Function in AnotherNamespace255 256// HTML-ANOTHER-INDEX: <h1>namespace AnotherNamespace</h1>257// HTML-ANOTHER-INDEX: <p> AnotherNamespace</p>258// HTML-ANOTHER-INDEX: <h2 id="Records">Records</h2>259// HTML-ANOTHER-INDEX: <a href="ClassInAnotherNamespace.html">ClassInAnotherNamespace</a>260// HTML-ANOTHER-INDEX: <h2 id="Functions">Functions</h2>261// HTML-ANOTHER-INDEX: <h3 id="{{([0-9A-F]{40})}}">functionInAnotherNamespace</h3>262// HTML-ANOTHER-INDEX: <p>void functionInAnotherNamespace()</p>263// HTML-ANOTHER-INDEX: <p> Function in AnotherNamespace</p>264 265// MUSTACHE-ANOTHER-INDEX: <h2> AnotherNamespace</h2>266// MUSTACHE-ANOTHER-INDEX:     <h2>Inner Classes</h2>267// MUSTACHE-ANOTHER-INDEX:     <ul class="class-container">268// MUSTACHE-ANOTHER-INDEX:         <li id="{{([0-9A-F]{40})}}" style="max-height: 40px;">269// MUSTACHE-ANOTHER-INDEX:             <a href="_ZTVN16AnotherNamespace23ClassInAnotherNamespaceE.html">270// MUSTACHE-ANOTHER-INDEX:                 <pre><code class="language-cpp code-clang-doc">class ClassInAnotherNamespace</code></pre>271// MUSTACHE-ANOTHER-INDEX:             </a>272// MUSTACHE-ANOTHER-INDEX:         </li>273// MUSTACHE-ANOTHER-INDEX:     </ul>274// MUSTACHE-ANOTHER-INDEX-NOT: <h2 id="Functions">Functions</h2>275// MUSTACHE-ANOTHER-INDEX-NOT: <h3 id="{{([0-9A-F]{40})}}">functionInAnotherNamespace</h3>276// MUSTACHE-ANOTHER-INDEX-NOT: <p>void functionInAnotherNamespace()</p>277// MUSTACHE-ANOTHER-INDEX-NOT: <p> Function in AnotherNamespace</p>278 279// JSON-INDEX: async function LoadIndex() {280// JSON-INDEX-NEXT: return{281// JSON-INDEX-NEXT:   "USR": "{{([0-9A-F]{40})}}",282// JSON-INDEX-NEXT:   "Name": "",283// JSON-INDEX-NEXT:   "RefType": "default",284// JSON-INDEX-NEXT:   "Path": "",285// JSON-INDEX-NEXT:   "Children": [286// JSON-INDEX-NEXT:     {287// JSON-INDEX-NEXT:       "USR": "{{([0-9A-F]{40})}}",288// JSON-INDEX-NEXT:       "Name": "@nonymous_namespace",289// JSON-INDEX-NEXT:       "RefType": "namespace",290// JSON-INDEX-NEXT:       "Path": "@nonymous_namespace",291// JSON-INDEX-NEXT:       "Children": [292// JSON-INDEX-NEXT:         {293// JSON-INDEX-NEXT:           "USR": "{{([0-9A-F]{40})}}",294// JSON-INDEX-NEXT:           "Name": "AnonClass",295// JSON-INDEX-NEXT:           "RefType": "record",296// JSON-INDEX-NEXT:           "Path": "@nonymous_namespace",297// JSON-INDEX-NEXT:           "Children": []298// JSON-INDEX-NEXT:         }299// JSON-INDEX-NEXT:       ]300// JSON-INDEX-NEXT:     },301// JSON-INDEX-NEXT:     {302// JSON-INDEX-NEXT:       "USR": "{{([0-9A-F]{40})}}",303// JSON-INDEX-NEXT:       "Name": "AnotherNamespace",304// JSON-INDEX-NEXT:       "RefType": "namespace",305// JSON-INDEX-NEXT:       "Path": "AnotherNamespace",306// JSON-INDEX-NEXT:       "Children": [307// JSON-INDEX-NEXT:         {308// JSON-INDEX-NEXT:           "USR": "{{([0-9A-F]{40})}}",309// JSON-INDEX-NEXT:           "Name": "ClassInAnotherNamespace",310// JSON-INDEX-NEXT:           "RefType": "record",311// JSON-INDEX-NEXT:           "Path": "AnotherNamespace",312// JSON-INDEX-NEXT:           "Children": []313// JSON-INDEX-NEXT:         }314// JSON-INDEX-NEXT:       ]315// JSON-INDEX-NEXT:     },316// JSON-INDEX-NEXT:     {317// JSON-INDEX-NEXT:       "USR": "{{([0-9A-F]{40})}}",318// JSON-INDEX-NEXT:       "Name": "GlobalNamespace",319// JSON-INDEX-NEXT:       "RefType": "namespace",320// JSON-INDEX-NEXT:       "Path": "GlobalNamespace",321// JSON-INDEX-NEXT:       "Children": []322// JSON-INDEX-NEXT:     },323// JSON-INDEX-NEXT:     {324// JSON-INDEX-NEXT:       "USR": "{{([0-9A-F]{40})}}",325// JSON-INDEX-NEXT:       "Name": "PrimaryNamespace",326// JSON-INDEX-NEXT:       "RefType": "namespace",327// JSON-INDEX-NEXT:       "Path": "PrimaryNamespace",328// JSON-INDEX-NEXT:       "Children": [329// JSON-INDEX-NEXT:         {330// JSON-INDEX-NEXT:           "USR": "{{([0-9A-F]{40})}}",331// JSON-INDEX-NEXT:           "Name": "ClassInPrimaryNamespace",332// JSON-INDEX-NEXT:           "RefType": "record",333// JSON-INDEX-NEXT:           "Path": "PrimaryNamespace",334// JSON-INDEX-NEXT:           "Children": []335// JSON-INDEX-NEXT:         },336// JSON-INDEX-NEXT:         {337// JSON-INDEX-NEXT:           "USR": "{{([0-9A-F]{40})}}",338// JSON-INDEX-NEXT:           "Name": "NestedNamespace",339// JSON-INDEX-NEXT:           "RefType": "namespace",340// JSON-INDEX-NEXT:           "Path": "PrimaryNamespace{{[\/]+}}NestedNamespace",341// JSON-INDEX-NEXT:           "Children": [342// JSON-INDEX-NEXT:             {343// JSON-INDEX-NEXT:               "USR": "{{([0-9A-F]{40})}}",344// JSON-INDEX-NEXT:               "Name": "ClassInNestedNamespace",345// JSON-INDEX-NEXT:               "RefType": "record",346// JSON-INDEX-NEXT:               "Path": "PrimaryNamespace{{[\/]+}}NestedNamespace",347// JSON-INDEX-NEXT:               "Children": []348// JSON-INDEX-NEXT:             }349// JSON-INDEX-NEXT:           ]350// JSON-INDEX-NEXT:         }351// JSON-INDEX-NEXT:       ]352// JSON-INDEX-NEXT:     }353// JSON-INDEX-NEXT:   ]354// JSON-INDEX-NEXT: };355// JSON-INDEX-NEXT: }356 357// HTML-GLOBAL-INDEX: <div id="main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">358// HTML-GLOBAL-INDEX: <h1>Global Namespace</h1>359// HTML-GLOBAL-INDEX: <h2 id="Namespaces">Namespaces</h2>360// HTML-GLOBAL-INDEX: <li>@nonymous_namespace</li>361// HTML-GLOBAL-INDEX: <li>AnotherNamespace</li>362// HTML-GLOBAL-INDEX: <li>PrimaryNamespace</li>363 364// MUSTACHE-GLOBAL-INDEX: <div id="main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">365// MUSTACHE-GLOBAL-INDEX: <h1>Global Namespace</h1>366// MUSTACHE-GLOBAL-INDEX: <h2 id="Namespaces">Namespaces</h2>367// MUSTACHE-GLOBAL-INDEX: <li>@nonymous_namespace</li>368// MUSTACHE-GLOBAL-INDEX: <li>AnotherNamespace</li>369// MUSTACHE-GLOBAL-INDEX: <li>PrimaryNamespace</li>370 371// MD-GLOBAL-INDEX: # Global Namespace372// MD-GLOBAL-INDEX: ## Namespaces373// MD-GLOBAL-INDEX: * [@nonymous_namespace](..{{[\/]}}@nonymous_namespace{{[\/]}}index.md)374// MD-GLOBAL-INDEX: * [AnotherNamespace](..{{[\/]}}AnotherNamespace{{[\/]}}index.md)375// MD-GLOBAL-INDEX: * [PrimaryNamespace](..{{[\/]}}PrimaryNamespace{{[\/]}}index.md)376 377// MD-ALL-FILES: # All Files378// MD-ALL-FILES: ## [@nonymous_namespace](@nonymous_namespace{{[\/]}}index.md)379// MD-ALL-FILES: ## [AnotherNamespace](AnotherNamespace{{[\/]}}index.md)380// MD-ALL-FILES: ## [GlobalNamespace](GlobalNamespace{{[\/]}}index.md)381// MD-ALL-FILES: ## [PrimaryNamespace](PrimaryNamespace{{[\/]}}index.md)382 383// MD-INDEX: #  C/C++ Reference384// MD-INDEX: * Namespace: [@nonymous_namespace](@nonymous_namespace)385// MD-INDEX: * Namespace: [AnotherNamespace](AnotherNamespace)386// MD-INDEX: * Namespace: [PrimaryNamespace](PrimaryNamespace)