[clang] [docs] Remove TOCs from Clang docs to prepare for Furo migration (PR #214868)
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 24 20:55:18 PDT 2026
https://github.com/rnk updated https://github.com/llvm/llvm-project/pull/214868
>From 3ad1da563c0c448e4098d0e1ebd0553b2b0ccad7 Mon Sep 17 00:00:00 2001
From: Reid Kleckner <rkleckner at nvidia.com>
Date: Fri, 14 Aug 2026 02:02:09 +0000
Subject: [PATCH] [clang][docs] Remove page-local contents directives
---
clang/Maintainers.md | 3 ---
clang/docs/AMDGPUSupport.md | 3 ---
clang/docs/AddressSanitizer.md | 3 ---
clang/docs/AllocToken.md | 3 ---
clang/docs/AutomaticReferenceCounting.md | 3 ---
clang/docs/Block-ABI-Apple.md | 3 ---
clang/docs/BlockLanguageSpec.md | 3 ---
clang/docs/BoundsSafety.md | 3 ---
clang/docs/BoundsSafetyAdoptionGuide.md | 3 ---
clang/docs/BoundsSafetyImplPlans.md | 3 ---
clang/docs/CIR/ABILowering.md | 3 ---
clang/docs/CIR/CleanupAndEHDesign.md | 3 ---
clang/docs/CIR/CodeDuplication.md | 3 ---
clang/docs/CXXTypeAwareAllocators.md | 3 ---
clang/docs/ClangLinkerWrapper.md | 3 ---
clang/docs/ClangNVLinkWrapper.md | 3 ---
clang/docs/ClangOffloadBundler.md | 3 ---
clang/docs/ClangSYCLLinker.md | 3 ---
clang/docs/ClangTransformerTutorial.md | 3 ---
clang/docs/ConstantInterpreter.md | 3 ---
clang/docs/ControlFlowIntegrity.md | 3 ---
clang/docs/DataFlowSanitizer.md | 3 ---
clang/docs/DebuggingCoroutines.md | 3 ---
clang/docs/DriverInternals.md | 10 ----------
clang/docs/FAQ.md | 3 ---
clang/docs/FunctionEffectAnalysis.md | 4 ----
clang/docs/HIPSupport.md | 3 ---
clang/docs/HLSL/AvailabilityDiagnostics.md | 3 ---
clang/docs/HLSL/EntryFunctions.md | 3 ---
clang/docs/HLSL/ExpectedDifferences.md | 3 ---
clang/docs/HLSL/FunctionCalls.md | 3 ---
clang/docs/HLSL/HLSLIRReference.md | 3 ---
clang/docs/HLSL/HLSLSupport.md | 3 ---
clang/docs/HLSL/ResourceTypes.md | 3 ---
clang/docs/InternalsManual.md | 3 ---
clang/docs/LLVMExceptionHandlingCodeGen.rst | 3 ---
clang/docs/LanguageExtensions.md | 4 ----
clang/docs/LeakSanitizer.md | 3 ---
clang/docs/LibASTImporter.md | 3 ---
clang/docs/LifetimeSafety.md | 3 ---
clang/docs/MatrixTypes.rst | 3 ---
clang/docs/MemorySanitizer.md | 3 ---
clang/docs/MisExpect.md | 2 --
clang/docs/Modules.md | 3 ---
clang/docs/OffloadingDesign.rst | 3 ---
clang/docs/OpenCLSupport.md | 3 ---
clang/docs/OpenMPSupport.md | 3 ---
clang/docs/OverflowBehaviorTypes.md | 3 ---
clang/docs/PCHInternals.rst | 3 ---
clang/docs/PointerAuthentication.md | 3 ---
clang/docs/RISCVSupport.md | 3 ---
clang/docs/RealtimeSanitizer.md | 3 ---
clang/docs/ReleaseNotes.md | 4 ----
clang/docs/SYCLSupport.md | 3 ---
clang/docs/SafeBuffers.md | 3 ---
clang/docs/SafeStack.md | 3 ---
clang/docs/SanitizerCoverage.md | 3 ---
clang/docs/SanitizerSpecialCaseList.md | 3 ---
clang/docs/SanitizerStats.md | 3 ---
clang/docs/ShadowCallStack.md | 3 ---
clang/docs/SourceBasedCodeCoverage.md | 3 ---
clang/docs/StandardCPlusPlusModules.md | 3 ---
clang/docs/StructureProtection.md | 3 ---
clang/docs/ThinLTO.md | 3 ---
clang/docs/Toolchain.md | 4 ----
clang/docs/TypeSanitizer.md | 3 ---
clang/docs/UndefinedBehaviorSanitizer.md | 3 ---
clang/docs/UsersManual.md | 3 ---
clang/docs/WarningSuppressionMappings.md | 3 ---
clang/docs/analyzer/checkers.md | 3 ---
clang/docs/analyzer/developer-docs/DebugChecks.md | 3 ---
clang/docs/analyzer/user-docs/Annotations.md | 3 ---
clang/docs/analyzer/user-docs/CrossTranslationUnit.md | 3 ---
clang/docs/analyzer/user-docs/FAQ.md | 3 ---
.../analyzer/user-docs/TaintAnalysisConfiguration.md | 3 ---
clang/docs/analyzer/user-docs/UsingWithXCode.md | 3 ---
clang/include/clang/Basic/AttrDocs.td | 3 ---
clang/include/clang/Basic/BuiltinsAMDGPUDocs.td | 4 ----
clang/include/clang/Basic/DiagnosticDocs.td | 2 --
clang/include/clang/Options/ClangOptionDocs.td | 2 --
80 files changed, 249 deletions(-)
diff --git a/clang/Maintainers.md b/clang/Maintainers.md
index 9fbc75e7492c8..575445e4ba32a 100644
--- a/clang/Maintainers.md
+++ b/clang/Maintainers.md
@@ -5,9 +5,6 @@ This file is a list of the
for Clang. The list of current Clang Area Team members can be found
[here](https://github.com/llvm/llvm-project/blob/main/clang/AreaTeamMembers.txt).
-```{contents} Table of Contents
-:depth: 2
-```
# Active Maintainers
diff --git a/clang/docs/AMDGPUSupport.md b/clang/docs/AMDGPUSupport.md
index 3306242d9d7e6..0edcc72688434 100644
--- a/clang/docs/AMDGPUSupport.md
+++ b/clang/docs/AMDGPUSupport.md
@@ -1,6 +1,3 @@
-```{contents}
-:local: true
-```
# AMDGPU Support
diff --git a/clang/docs/AddressSanitizer.md b/clang/docs/AddressSanitizer.md
index 160c63dce2d97..fc3f5958c8da8 100644
--- a/clang/docs/AddressSanitizer.md
+++ b/clang/docs/AddressSanitizer.md
@@ -1,8 +1,5 @@
# AddressSanitizer
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/AllocToken.md b/clang/docs/AllocToken.md
index 7083d7d655641..b3a72ed480097 100644
--- a/clang/docs/AllocToken.md
+++ b/clang/docs/AllocToken.md
@@ -1,8 +1,5 @@
# Allocation Tokens
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/AutomaticReferenceCounting.md b/clang/docs/AutomaticReferenceCounting.md
index 5e09af834e3a3..abec99a5e333f 100644
--- a/clang/docs/AutomaticReferenceCounting.md
+++ b/clang/docs/AutomaticReferenceCounting.md
@@ -65,9 +65,6 @@
# Objective-C Automatic Reference Counting (ARC)
-```{contents}
-:local: true
-```
(arc.meta)=
diff --git a/clang/docs/Block-ABI-Apple.md b/clang/docs/Block-ABI-Apple.md
index e30ff246a8ed1..b1a4c8bc12a33 100644
--- a/clang/docs/Block-ABI-Apple.md
+++ b/clang/docs/Block-ABI-Apple.md
@@ -1,8 +1,5 @@
# Block Implementation Specification
-```{contents}
-:local: true
-```
## History
diff --git a/clang/docs/BlockLanguageSpec.md b/clang/docs/BlockLanguageSpec.md
index f424f0a9f7d81..389baa35dad8a 100644
--- a/clang/docs/BlockLanguageSpec.md
+++ b/clang/docs/BlockLanguageSpec.md
@@ -3,9 +3,6 @@
# Language Specification for Blocks
-```{contents}
-:local: true
-```
## Revisions
diff --git a/clang/docs/BoundsSafety.md b/clang/docs/BoundsSafety.md
index e9ef248a4f7c1..bdf88d9db9d5c 100644
--- a/clang/docs/BoundsSafety.md
+++ b/clang/docs/BoundsSafety.md
@@ -1,8 +1,5 @@
# `-fbounds-safety`: Enforcing bounds safety for C
-```{contents}
-:local:
-```
## Overview
diff --git a/clang/docs/BoundsSafetyAdoptionGuide.md b/clang/docs/BoundsSafetyAdoptionGuide.md
index f7a2d3532d4c6..875a42f39281a 100644
--- a/clang/docs/BoundsSafetyAdoptionGuide.md
+++ b/clang/docs/BoundsSafetyAdoptionGuide.md
@@ -1,8 +1,5 @@
# Adoption Guide for `-fbounds-safety`
-```{contents}
-:local: true
-```
## Where to get `-fbounds-safety`
diff --git a/clang/docs/BoundsSafetyImplPlans.md b/clang/docs/BoundsSafetyImplPlans.md
index 5acc8032c006d..c7aaa846d4eb5 100644
--- a/clang/docs/BoundsSafetyImplPlans.md
+++ b/clang/docs/BoundsSafetyImplPlans.md
@@ -1,8 +1,5 @@
# Implementation plans for `-fbounds-safety`
-```{contents}
-:local: true
-```
(bounds-safety-current-upstream-status)=
## Current status of `-fbounds-safety` support in upstream Clang
diff --git a/clang/docs/CIR/ABILowering.md b/clang/docs/CIR/ABILowering.md
index a3ebe52f1d1f6..4ea284af2dfb6 100644
--- a/clang/docs/CIR/ABILowering.md
+++ b/clang/docs/CIR/ABILowering.md
@@ -1,8 +1,5 @@
# ClangIR ABI Lowering Design Document
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/CIR/CleanupAndEHDesign.md b/clang/docs/CIR/CleanupAndEHDesign.md
index 092568f04b869..52e7cd13d1d9b 100644
--- a/clang/docs/CIR/CleanupAndEHDesign.md
+++ b/clang/docs/CIR/CleanupAndEHDesign.md
@@ -1,8 +1,5 @@
# ClangIR Cleanup and Exception Handling Design
-```{contents}
-:local: true
-```
## Overview
diff --git a/clang/docs/CIR/CodeDuplication.md b/clang/docs/CIR/CodeDuplication.md
index aa22a790cd6da..c4ec84849b0fb 100644
--- a/clang/docs/CIR/CodeDuplication.md
+++ b/clang/docs/CIR/CodeDuplication.md
@@ -1,8 +1,5 @@
# ClangIR Code Duplication Roadmap
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/CXXTypeAwareAllocators.md b/clang/docs/CXXTypeAwareAllocators.md
index fabaca7b534ef..20251cd59ac2a 100644
--- a/clang/docs/CXXTypeAwareAllocators.md
+++ b/clang/docs/CXXTypeAwareAllocators.md
@@ -1,8 +1,5 @@
# C++ Type Aware Allocators
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/ClangLinkerWrapper.md b/clang/docs/ClangLinkerWrapper.md
index 55836af76075f..081bfce2ea359 100644
--- a/clang/docs/ClangLinkerWrapper.md
+++ b/clang/docs/ClangLinkerWrapper.md
@@ -1,8 +1,5 @@
# Clang Linker Wrapper
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/ClangNVLinkWrapper.md b/clang/docs/ClangNVLinkWrapper.md
index 2b0f4e5bcff4b..a8c43019a7f6b 100644
--- a/clang/docs/ClangNVLinkWrapper.md
+++ b/clang/docs/ClangNVLinkWrapper.md
@@ -1,8 +1,5 @@
# Clang nvlink Wrapper
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/ClangOffloadBundler.md b/clang/docs/ClangOffloadBundler.md
index b56a9c105cc2b..0dd93849eb275 100644
--- a/clang/docs/ClangOffloadBundler.md
+++ b/clang/docs/ClangOffloadBundler.md
@@ -1,8 +1,5 @@
# Clang Offload Bundler
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/ClangSYCLLinker.md b/clang/docs/ClangSYCLLinker.md
index 1f890d09c7aa0..b4f5e751b03bb 100644
--- a/clang/docs/ClangSYCLLinker.md
+++ b/clang/docs/ClangSYCLLinker.md
@@ -1,8 +1,5 @@
# Clang SYCL Linker
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/ClangTransformerTutorial.md b/clang/docs/ClangTransformerTutorial.md
index 669df80b90708..eba7c5e6b6085 100644
--- a/clang/docs/ClangTransformerTutorial.md
+++ b/clang/docs/ClangTransformerTutorial.md
@@ -2,9 +2,6 @@
A tutorial on how to write a source-to-source translation tool using Clang Transformer.
-```{contents}
-:local:
-```
## What is Clang Transformer?
diff --git a/clang/docs/ConstantInterpreter.md b/clang/docs/ConstantInterpreter.md
index 1a2d3d0845a26..1127a19f13f87 100644
--- a/clang/docs/ConstantInterpreter.md
+++ b/clang/docs/ConstantInterpreter.md
@@ -1,8 +1,5 @@
# Constant Interpreter
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/ControlFlowIntegrity.md b/clang/docs/ControlFlowIntegrity.md
index d8627aa791b7b..045b70a4e23b3 100644
--- a/clang/docs/ControlFlowIntegrity.md
+++ b/clang/docs/ControlFlowIntegrity.md
@@ -6,9 +6,6 @@
ControlFlowIntegrityDesign
```
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/DataFlowSanitizer.md b/clang/docs/DataFlowSanitizer.md
index 6a143e0bdb8c5..75d63e4018ec9 100644
--- a/clang/docs/DataFlowSanitizer.md
+++ b/clang/docs/DataFlowSanitizer.md
@@ -6,9 +6,6 @@
DataFlowSanitizerDesign
```
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/DebuggingCoroutines.md b/clang/docs/DebuggingCoroutines.md
index a9a2ba3a8ea32..03ea897cb0475 100644
--- a/clang/docs/DebuggingCoroutines.md
+++ b/clang/docs/DebuggingCoroutines.md
@@ -1,8 +1,5 @@
# Debugging C++ Coroutines
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/DriverInternals.md b/clang/docs/DriverInternals.md
index 15a353009da5e..3951e2056c23b 100644
--- a/clang/docs/DriverInternals.md
+++ b/clang/docs/DriverInternals.md
@@ -1,8 +1,5 @@
# Driver Design & Internals
-```{contents}
-:local:
-```
## Introduction
@@ -19,9 +16,6 @@ interface which is compatible with the gcc driver.
Although the driver is part of and driven by the Clang project, it is
logically a separate tool which shares many of the same goals as Clang:
-```{contents} Features
-:local:
-```
### GCC Compatibility
@@ -66,10 +60,6 @@ monolithic task.
## Internal Design and Implementation
-```{contents}
-:depth: 1
-:local:
-```
### Internals Introduction
diff --git a/clang/docs/FAQ.md b/clang/docs/FAQ.md
index 47be96fa36e43..a1c513996ed7e 100644
--- a/clang/docs/FAQ.md
+++ b/clang/docs/FAQ.md
@@ -1,8 +1,5 @@
# Frequently Asked Questions (FAQ)
-```{contents}
-:local: true
-```
## Driver
diff --git a/clang/docs/FunctionEffectAnalysis.md b/clang/docs/FunctionEffectAnalysis.md
index 02ff38563a77c..81c914d2d5a3e 100644
--- a/clang/docs/FunctionEffectAnalysis.md
+++ b/clang/docs/FunctionEffectAnalysis.md
@@ -1,9 +1,5 @@
# Function Effect Analysis
-```{contents}
-:depth: 3
-:local:
-```
## Introduction
diff --git a/clang/docs/HIPSupport.md b/clang/docs/HIPSupport.md
index 8980a27c55474..a260d2e6999e9 100644
--- a/clang/docs/HIPSupport.md
+++ b/clang/docs/HIPSupport.md
@@ -15,9 +15,6 @@
```{role} good
```
-```{contents}
-:local:
-```
# HIP Support
diff --git a/clang/docs/HLSL/AvailabilityDiagnostics.md b/clang/docs/HLSL/AvailabilityDiagnostics.md
index 77c4e40de8435..4b2f87e0f40b6 100644
--- a/clang/docs/HLSL/AvailabilityDiagnostics.md
+++ b/clang/docs/HLSL/AvailabilityDiagnostics.md
@@ -1,8 +1,5 @@
# HLSL Availability Diagnostics
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/HLSL/EntryFunctions.md b/clang/docs/HLSL/EntryFunctions.md
index 706aa6bf4f007..865b0017cbcd9 100644
--- a/clang/docs/HLSL/EntryFunctions.md
+++ b/clang/docs/HLSL/EntryFunctions.md
@@ -1,8 +1,5 @@
# HLSL Entry Functions
-```{contents}
-:local: true
-```
## Usage
diff --git a/clang/docs/HLSL/ExpectedDifferences.md b/clang/docs/HLSL/ExpectedDifferences.md
index ce04b2f1b15e3..9f5ac6fd2f499 100644
--- a/clang/docs/HLSL/ExpectedDifferences.md
+++ b/clang/docs/HLSL/ExpectedDifferences.md
@@ -1,8 +1,5 @@
# Expected Differences vs DXC and FXC
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/HLSL/FunctionCalls.md b/clang/docs/HLSL/FunctionCalls.md
index 462a566dba361..4c60ecaa39af9 100644
--- a/clang/docs/HLSL/FunctionCalls.md
+++ b/clang/docs/HLSL/FunctionCalls.md
@@ -1,8 +1,5 @@
# HLSL Function Calls
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/HLSL/HLSLIRReference.md b/clang/docs/HLSL/HLSLIRReference.md
index 1e8c8c1013819..1938ffbde66be 100644
--- a/clang/docs/HLSL/HLSLIRReference.md
+++ b/clang/docs/HLSL/HLSLIRReference.md
@@ -1,8 +1,5 @@
# HLSL IR Reference
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/HLSL/HLSLSupport.md b/clang/docs/HLSL/HLSLSupport.md
index d9f3cdab458c9..3056ae3ed386d 100644
--- a/clang/docs/HLSL/HLSLSupport.md
+++ b/clang/docs/HLSL/HLSLSupport.md
@@ -1,8 +1,5 @@
# HLSL Support
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/HLSL/ResourceTypes.md b/clang/docs/HLSL/ResourceTypes.md
index a7c7e68f2a84f..86898b093fa65 100644
--- a/clang/docs/HLSL/ResourceTypes.md
+++ b/clang/docs/HLSL/ResourceTypes.md
@@ -1,8 +1,5 @@
# HLSL Resource Types
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/InternalsManual.md b/clang/docs/InternalsManual.md
index 98e5261e30215..0d9ee745927aa 100644
--- a/clang/docs/InternalsManual.md
+++ b/clang/docs/InternalsManual.md
@@ -1,8 +1,5 @@
# "Clang" CFE Internals Manual
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/LLVMExceptionHandlingCodeGen.rst b/clang/docs/LLVMExceptionHandlingCodeGen.rst
index bb93ab5d115b8..c606956ba50f3 100644
--- a/clang/docs/LLVMExceptionHandlingCodeGen.rst
+++ b/clang/docs/LLVMExceptionHandlingCodeGen.rst
@@ -2,9 +2,6 @@
LLVM IR Generation for EH and Cleanups
========================================
-.. contents::
- :local:
-
Overview
========
diff --git a/clang/docs/LanguageExtensions.md b/clang/docs/LanguageExtensions.md
index 5e7f147f23259..1bdc0020a122f 100644
--- a/clang/docs/LanguageExtensions.md
+++ b/clang/docs/LanguageExtensions.md
@@ -1,9 +1,5 @@
# Clang Language Extensions
-```{contents}
-:depth: 1
-:local: true
-```
```{toctree}
:hidden: true
diff --git a/clang/docs/LeakSanitizer.md b/clang/docs/LeakSanitizer.md
index 816c976c0e231..00e9626c9e42d 100644
--- a/clang/docs/LeakSanitizer.md
+++ b/clang/docs/LeakSanitizer.md
@@ -1,8 +1,5 @@
# LeakSanitizer
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/LibASTImporter.md b/clang/docs/LibASTImporter.md
index 611460fd3d553..2ccb05ba33b1c 100644
--- a/clang/docs/LibASTImporter.md
+++ b/clang/docs/LibASTImporter.md
@@ -8,9 +8,6 @@ to the Clang AST <IntroductionToTheClangAST>` if you want to learn more
about how the AST is structured.
Knowledge about {doc}`matching the Clang AST <LibASTMatchers>` and the [reference for the matchers](https://clang.llvm.org/docs/LibASTMatchersReference.html) are also useful.
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/LifetimeSafety.md b/clang/docs/LifetimeSafety.md
index e41d618c029bd..5b643feb4224b 100644
--- a/clang/docs/LifetimeSafety.md
+++ b/clang/docs/LifetimeSafety.md
@@ -1,8 +1,5 @@
# Lifetime Safety Analysis
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/MatrixTypes.rst b/clang/docs/MatrixTypes.rst
index 2bfe037065145..e35adb596fef3 100644
--- a/clang/docs/MatrixTypes.rst
+++ b/clang/docs/MatrixTypes.rst
@@ -2,9 +2,6 @@
Matrix Types
==================
-.. contents::
- :local:
-
.. _matrixtypes:
Clang provides a C/C++ language extension that allows users to directly express
diff --git a/clang/docs/MemorySanitizer.md b/clang/docs/MemorySanitizer.md
index c6d5d337952de..fdc7b7e0935f0 100644
--- a/clang/docs/MemorySanitizer.md
+++ b/clang/docs/MemorySanitizer.md
@@ -1,8 +1,5 @@
# MemorySanitizer
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/MisExpect.md b/clang/docs/MisExpect.md
index 277fc86e3241d..c8d1eed081f92 100644
--- a/clang/docs/MisExpect.md
+++ b/clang/docs/MisExpect.md
@@ -1,7 +1,5 @@
# Misexpect
-```{contents}
-```
```{toctree}
:maxdepth: 1
diff --git a/clang/docs/Modules.md b/clang/docs/Modules.md
index e4db0628de16d..234124cc22183 100644
--- a/clang/docs/Modules.md
+++ b/clang/docs/Modules.md
@@ -1,8 +1,5 @@
# Modules
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/OffloadingDesign.rst b/clang/docs/OffloadingDesign.rst
index 13bb924a77ad0..2545ea843184e 100644
--- a/clang/docs/OffloadingDesign.rst
+++ b/clang/docs/OffloadingDesign.rst
@@ -2,9 +2,6 @@
Offloading Design & Internals
=============================
-.. contents::
- :local:
-
Introduction
============
diff --git a/clang/docs/OpenCLSupport.md b/clang/docs/OpenCLSupport.md
index 22014604c22c5..f72258743ec22 100644
--- a/clang/docs/OpenCLSupport.md
+++ b/clang/docs/OpenCLSupport.md
@@ -6,9 +6,6 @@
</style>
```
-```{contents}
-:local:
-```
# OpenCL Support
diff --git a/clang/docs/OpenMPSupport.md b/clang/docs/OpenMPSupport.md
index 840cc5ef0fecd..43a361b1e40f4 100644
--- a/clang/docs/OpenMPSupport.md
+++ b/clang/docs/OpenMPSupport.md
@@ -15,9 +15,6 @@
```{role} good
```
-```{contents}
-:local:
-```
# OpenMP Support
diff --git a/clang/docs/OverflowBehaviorTypes.md b/clang/docs/OverflowBehaviorTypes.md
index 0429e6593c883..f8323e4c3eb65 100644
--- a/clang/docs/OverflowBehaviorTypes.md
+++ b/clang/docs/OverflowBehaviorTypes.md
@@ -1,8 +1,5 @@
# OverflowBehaviorTypes
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/PCHInternals.rst b/clang/docs/PCHInternals.rst
index 8e76fb98abfd1..4cb06ec4e4503 100644
--- a/clang/docs/PCHInternals.rst
+++ b/clang/docs/PCHInternals.rst
@@ -2,9 +2,6 @@
Precompiled Header and Modules Internals
========================================
-.. contents::
- :local:
-
This document describes the design and implementation of Clang's precompiled
headers (PCH) and modules. If you are interested in the end-user view, please
see the :ref:`User's Manual <usersmanual-precompiled-headers>`.
diff --git a/clang/docs/PointerAuthentication.md b/clang/docs/PointerAuthentication.md
index 375c76c2d3785..8a77d0178430a 100644
--- a/clang/docs/PointerAuthentication.md
+++ b/clang/docs/PointerAuthentication.md
@@ -1,8 +1,5 @@
# Pointer Authentication
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/RISCVSupport.md b/clang/docs/RISCVSupport.md
index 084f5629c2cff..c812aa9a39a9c 100644
--- a/clang/docs/RISCVSupport.md
+++ b/clang/docs/RISCVSupport.md
@@ -1,8 +1,5 @@
# RISC-V Support
-```{contents}
-:local: true
-```
## Intrinsic Detection Macros
diff --git a/clang/docs/RealtimeSanitizer.md b/clang/docs/RealtimeSanitizer.md
index ee77ed7c4ab29..a333090b86000 100644
--- a/clang/docs/RealtimeSanitizer.md
+++ b/clang/docs/RealtimeSanitizer.md
@@ -1,8 +1,5 @@
# RealtimeSanitizer
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/ReleaseNotes.md b/clang/docs/ReleaseNotes.md
index 54e3325a84e19..ada4d4da517e5 100644
--- a/clang/docs/ReleaseNotes.md
+++ b/clang/docs/ReleaseNotes.md
@@ -12,10 +12,6 @@ myst:
{#clang-release-releasenotestitle}
# Clang {{ (('(In-Progress) ' if env.app.tags.has('PreRelease') else '') ~ 'Release Notes') if env.config.project == 'Clang' else '|ReleaseNotesTitle|' }}
-```{contents}
-:depth: 2
-:local:
-```
Written by the [LLVM Team](https://llvm.org/)
diff --git a/clang/docs/SYCLSupport.md b/clang/docs/SYCLSupport.md
index f97d1853980b1..9eabfd57e55f1 100644
--- a/clang/docs/SYCLSupport.md
+++ b/clang/docs/SYCLSupport.md
@@ -1,8 +1,5 @@
# SYCL Compiler and Runtime architecture design
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/SafeBuffers.md b/clang/docs/SafeBuffers.md
index 844ca7f7618a4..cc7d74ed37efb 100644
--- a/clang/docs/SafeBuffers.md
+++ b/clang/docs/SafeBuffers.md
@@ -1,8 +1,5 @@
# C++ Safe Buffers
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/SafeStack.md b/clang/docs/SafeStack.md
index f93464eea9993..ef3c53f40816c 100644
--- a/clang/docs/SafeStack.md
+++ b/clang/docs/SafeStack.md
@@ -1,8 +1,5 @@
# SafeStack
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/SanitizerCoverage.md b/clang/docs/SanitizerCoverage.md
index f859838616b49..5630d46900f17 100644
--- a/clang/docs/SanitizerCoverage.md
+++ b/clang/docs/SanitizerCoverage.md
@@ -1,8 +1,5 @@
# SanitizerCoverage
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/SanitizerSpecialCaseList.md b/clang/docs/SanitizerSpecialCaseList.md
index 989a73d15a886..881b65aae23b5 100644
--- a/clang/docs/SanitizerSpecialCaseList.md
+++ b/clang/docs/SanitizerSpecialCaseList.md
@@ -1,8 +1,5 @@
# Sanitizer special case list
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/SanitizerStats.md b/clang/docs/SanitizerStats.md
index 12a1262c9fdf1..5cec4945e777b 100644
--- a/clang/docs/SanitizerStats.md
+++ b/clang/docs/SanitizerStats.md
@@ -1,8 +1,5 @@
# SanitizerStats
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/ShadowCallStack.md b/clang/docs/ShadowCallStack.md
index 9505fbe28be04..6b98c6fffa2a0 100644
--- a/clang/docs/ShadowCallStack.md
+++ b/clang/docs/ShadowCallStack.md
@@ -1,8 +1,5 @@
# ShadowCallStack
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/SourceBasedCodeCoverage.md b/clang/docs/SourceBasedCodeCoverage.md
index aa1da1e4673ff..8d43c5cfa360c 100644
--- a/clang/docs/SourceBasedCodeCoverage.md
+++ b/clang/docs/SourceBasedCodeCoverage.md
@@ -1,8 +1,5 @@
# Source-based Code Coverage
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/StandardCPlusPlusModules.md b/clang/docs/StandardCPlusPlusModules.md
index e9a1c332fe8a2..79f0dfc6a73df 100644
--- a/clang/docs/StandardCPlusPlusModules.md
+++ b/clang/docs/StandardCPlusPlusModules.md
@@ -1,8 +1,5 @@
# Standard C++ Modules
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/StructureProtection.md b/clang/docs/StructureProtection.md
index 9b0d79f7e39ba..16b0c8c47411c 100644
--- a/clang/docs/StructureProtection.md
+++ b/clang/docs/StructureProtection.md
@@ -1,8 +1,5 @@
# Structure Protection
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/ThinLTO.md b/clang/docs/ThinLTO.md
index 104492377ffea..4487b348c0e92 100644
--- a/clang/docs/ThinLTO.md
+++ b/clang/docs/ThinLTO.md
@@ -1,8 +1,5 @@
# ThinLTO
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/Toolchain.md b/clang/docs/Toolchain.md
index 2456cfcbd58bc..8ed3c5515132e 100644
--- a/clang/docs/Toolchain.md
+++ b/clang/docs/Toolchain.md
@@ -1,9 +1,5 @@
# Assembling a Complete Toolchain
-```{contents}
-:depth: 2
-:local: true
-```
## Introduction
diff --git a/clang/docs/TypeSanitizer.md b/clang/docs/TypeSanitizer.md
index 39f6194dc8e76..28a1300dd0292 100644
--- a/clang/docs/TypeSanitizer.md
+++ b/clang/docs/TypeSanitizer.md
@@ -1,8 +1,5 @@
# TypeSanitizer
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/UndefinedBehaviorSanitizer.md b/clang/docs/UndefinedBehaviorSanitizer.md
index 25587c6e8cb3c..25fdb741c6a2b 100644
--- a/clang/docs/UndefinedBehaviorSanitizer.md
+++ b/clang/docs/UndefinedBehaviorSanitizer.md
@@ -1,8 +1,5 @@
# UndefinedBehaviorSanitizer
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/UsersManual.md b/clang/docs/UsersManual.md
index 40834746e1218..a6c11683f5395 100644
--- a/clang/docs/UsersManual.md
+++ b/clang/docs/UsersManual.md
@@ -1,8 +1,5 @@
# Clang Compiler User's Manual
-```{contents}
-:local:
-```
## Introduction
diff --git a/clang/docs/WarningSuppressionMappings.md b/clang/docs/WarningSuppressionMappings.md
index 345b7ce5002fc..2c6ce42f7c668 100644
--- a/clang/docs/WarningSuppressionMappings.md
+++ b/clang/docs/WarningSuppressionMappings.md
@@ -1,8 +1,5 @@
# Warning suppression mappings
-```{contents}
-:local: true
-```
## Introduction
diff --git a/clang/docs/analyzer/checkers.md b/clang/docs/analyzer/checkers.md
index 3b54c3a359c3f..e297103c632b3 100644
--- a/clang/docs/analyzer/checkers.md
+++ b/clang/docs/analyzer/checkers.md
@@ -10,9 +10,6 @@ These checkers are under development and are switched off by default. They may c
The {ref}`debug-checkers` package contains checkers for analyzer developers for debugging purposes.
-```{contents} Table of Contents
-:depth: 4
-```
(default-checkers)=
diff --git a/clang/docs/analyzer/developer-docs/DebugChecks.md b/clang/docs/analyzer/developer-docs/DebugChecks.md
index b89cb91626157..83d896e6c521e 100644
--- a/clang/docs/analyzer/developer-docs/DebugChecks.md
+++ b/clang/docs/analyzer/developer-docs/DebugChecks.md
@@ -1,8 +1,5 @@
# Debug Checks
-```{contents}
-:local: true
-```
The analyzer contains a number of checkers which can aid in debugging. Enable
them by using the "-analyzer-checker=" flag, followed by the name of the
diff --git a/clang/docs/analyzer/user-docs/Annotations.md b/clang/docs/analyzer/user-docs/Annotations.md
index 383eeb6caba1b..ce2f42fa1920f 100644
--- a/clang/docs/analyzer/user-docs/Annotations.md
+++ b/clang/docs/analyzer/user-docs/Annotations.md
@@ -18,9 +18,6 @@ Note that attributes that are labeled **Clang-specific** are not
recognized by GCC. Their use can be conditioned using preprocessor macros
(examples included on this page).
-```{contents}
-:local: true
-```
## General Purpose Annotations
diff --git a/clang/docs/analyzer/user-docs/CrossTranslationUnit.md b/clang/docs/analyzer/user-docs/CrossTranslationUnit.md
index a8ac851547c0f..e1bfb25fe593e 100644
--- a/clang/docs/analyzer/user-docs/CrossTranslationUnit.md
+++ b/clang/docs/analyzer/user-docs/CrossTranslationUnit.md
@@ -4,9 +4,6 @@ Normally, static analysis works in the boundary of one translation unit (TU).
However, with additional steps and configuration we can enable the analysis to inline the definition of a function from
another TU.
-```{contents}
-:local: true
-```
## Overview
diff --git a/clang/docs/analyzer/user-docs/FAQ.md b/clang/docs/analyzer/user-docs/FAQ.md
index 8412d8a834442..111fe62f71daf 100644
--- a/clang/docs/analyzer/user-docs/FAQ.md
+++ b/clang/docs/analyzer/user-docs/FAQ.md
@@ -1,8 +1,5 @@
# FAQ and How to Deal with Common False Positives
-```{contents}
-:local: true
-```
## Custom Assertions
diff --git a/clang/docs/analyzer/user-docs/TaintAnalysisConfiguration.md b/clang/docs/analyzer/user-docs/TaintAnalysisConfiguration.md
index 552ba87f996b4..dcceb5d85f901 100644
--- a/clang/docs/analyzer/user-docs/TaintAnalysisConfiguration.md
+++ b/clang/docs/analyzer/user-docs/TaintAnalysisConfiguration.md
@@ -9,9 +9,6 @@ The checker also provides a configuration interface for extending the default se
by providing a configuration file to the in [YAML](http://llvm.org/docs/YamlIO.html#introduction-to-yaml) format.
This documentation describes the syntax of the configuration file and gives the informal semantics of the configuration options.
-```{contents}
-:local: true
-```
(clangsa-taint-configuration-overview)=
diff --git a/clang/docs/analyzer/user-docs/UsingWithXCode.md b/clang/docs/analyzer/user-docs/UsingWithXCode.md
index 77461e922212f..f4a28ba19c940 100644
--- a/clang/docs/analyzer/user-docs/UsingWithXCode.md
+++ b/clang/docs/analyzer/user-docs/UsingWithXCode.md
@@ -1,8 +1,5 @@
# Running the analyzer within Xcode
-```{contents}
-:local: true
-```
Since Xcode 3.2, users have been able to run the static analyzer [directly within Xcode](https://developer.apple.com/library/ios/recipes/xcode_help-source_editor/chapters/Analyze.html#//apple_ref/doc/uid/TP40009975-CH4-SW1).
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 3052dd6c77ab1..6b78dbe482479 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -32,9 +32,6 @@ def GlobalDocumentation {
# Attributes in Clang
-```{contents}
-:local: true
-```
```{program} clang
```
diff --git a/clang/include/clang/Basic/BuiltinsAMDGPUDocs.td b/clang/include/clang/Basic/BuiltinsAMDGPUDocs.td
index a835f0e010fdc..254c0924a69e2 100644
--- a/clang/include/clang/Basic/BuiltinsAMDGPUDocs.td
+++ b/clang/include/clang/Basic/BuiltinsAMDGPUDocs.td
@@ -27,10 +27,6 @@ def GlobalDocumentation {
AMDGPU Builtins
===============
-.. contents::
- :local:
- :depth: 2
-
This document describes the AMDGPU target-specific builtins available in Clang.
Most of these builtins provide direct access to AMDGPU hardware instructions
and intrinsics.
diff --git a/clang/include/clang/Basic/DiagnosticDocs.td b/clang/include/clang/Basic/DiagnosticDocs.td
index 8c024b5cad740..dfc431def71de 100644
--- a/clang/include/clang/Basic/DiagnosticDocs.td
+++ b/clang/include/clang/Basic/DiagnosticDocs.td
@@ -68,8 +68,6 @@ def GlobalDocumentation {
=========================
Diagnostic flags in Clang
=========================
-.. contents::
- :local:
Introduction
============
diff --git a/clang/include/clang/Options/ClangOptionDocs.td b/clang/include/clang/Options/ClangOptionDocs.td
index dea6a7ccb12c9..917d9773bdb2d 100644
--- a/clang/include/clang/Options/ClangOptionDocs.td
+++ b/clang/include/clang/Options/ClangOptionDocs.td
@@ -16,8 +16,6 @@ def GlobalDocumentation {
=====================================
Clang command line argument reference
=====================================
-.. contents::
- :local:
Introduction
============
More information about the cfe-commits
mailing list