[clang] Correct confusing header in HLSLDocs (PR #100017)

Greg Roth via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 16:52:43 PDT 2024


https://github.com/pow2clk created https://github.com/llvm/llvm-project/pull/100017

Because AvailabilityDiagnostics.rst mistakenly overlined the "Examples" section, it was included in the generated HLSLDocs page. By demoting it to a subheader, it shouldn't show up as a top-level HLSLDocs page.

>From f325499de6336807b0d56696356a3e11c7a26ac3 Mon Sep 17 00:00:00 2001
From: Greg Roth <grroth at microsoft.com>
Date: Mon, 22 Jul 2024 17:39:47 -0600
Subject: [PATCH] Correct confusing header in HLSLDocs

Because AvailabilityDiagnostics.rst mistakenly overlined the "Examples"
section, it was included in the generated HLSLDocs page.
By demoting it to a subheader, it shouldn't show up as a top-level
HLSLDocs page.
---
 clang/docs/HLSL/AvailabilityDiagnostics.rst | 1 -
 1 file changed, 1 deletion(-)

diff --git a/clang/docs/HLSL/AvailabilityDiagnostics.rst b/clang/docs/HLSL/AvailabilityDiagnostics.rst
index bb9d02f21dde6..7ce82c1946b87 100644
--- a/clang/docs/HLSL/AvailabilityDiagnostics.rst
+++ b/clang/docs/HLSL/AvailabilityDiagnostics.rst
@@ -52,7 +52,6 @@ If the compilation target is a shader library, only availability based on shader
 
 As a result, availability based on specific shader stage will only be diagnosed in code that is reachable from a shader entry point or library export function. It also means that function bodies might be scanned multiple time. When that happens, care should be taken not to produce duplicated diagnostics.
 
-========
 Examples
 ========
 



More information about the cfe-commits mailing list