[clang] Correct confusing header in HLSLDocs (PR #100017)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 16:58:06 PDT 2024
https://github.com/pow2clk updated https://github.com/llvm/llvm-project/pull/100017
>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 1/2] 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
========
>From 9351ea72d247c8f5db513e3ea18116e4df9aad93 Mon Sep 17 00:00:00 2001
From: Greg Roth <grroth at microsoft.com>
Date: Mon, 22 Jul 2024 17:57:35 -0600
Subject: [PATCH 2/2] Add another case with multiple top-level headers
ExpectedDifference sections were bleeding into the top page too
---
clang/docs/HLSL/ExpectedDifferences.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/docs/HLSL/ExpectedDifferences.rst b/clang/docs/HLSL/ExpectedDifferences.rst
index a29b6348e0b8e..4782eb3cda754 100644
--- a/clang/docs/HLSL/ExpectedDifferences.rst
+++ b/clang/docs/HLSL/ExpectedDifferences.rst
@@ -1,4 +1,4 @@
-
+===================================
Expected Differences vs DXC and FXC
===================================
More information about the cfe-commits
mailing list